From 0bb17050ec3a2e4421d81a26e34f9e810a696018 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Mon, 30 May 2022 17:42:18 -0700 Subject: [PATCH] Add a couple of debug log messages to wordbot when a new round is started/finished Signed-off-by: Alek Ratzloff --- plugins/wordbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/wordbot.py b/plugins/wordbot.py index 1daa8c9..3aaba5a 100644 --- a/plugins/wordbot.py +++ b/plugins/wordbot.py @@ -282,6 +282,7 @@ class Wordbot(Plugin): pass def start_round(self, channel: str, allow_early_end: bool = False): + log.debug("Starting new wordbot round for %s", channel) # Choose words for new round with open(self.words_path) as fp: words = [word.strip() for word in fp] @@ -290,6 +291,7 @@ class Wordbot(Plugin): self.db.start_round(channel, self.duration, words, allow_early_end) def end_round(self, conn: IrcProtocol, channel: str): + log.debug("Ending wordbot round for %s", channel) # Sort the scores scores = sorted(self.db.scores(channel).items(), key=lambda value: -value[1]) # Add their ordering