Add nick to wordbot score message

Whoever scored a point gets a notification for such.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-05-30 20:43:48 -07:00
parent 98f8dc12bd
commit 741bd85ff7

View File

@@ -238,7 +238,9 @@ class Wordbot(Plugin):
matches = parts & self.db.unmatched_words(channel) matches = parts & self.db.unmatched_words(channel)
for word in matches: for word in matches:
self.send_to( self.send_to(
conn, channel, f"Congrats! '{word}' is good for 1 point." conn,
channel,
f"{who.nick}: Congrats! '{word}' is good for 1 point.",
) )
self.db.add_score(channel, who.nick, word, line) self.db.add_score(channel, who.nick, word, line)