From ec43c7b9e82637b54ec69d073df1ec0ba9b153a2 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Thu, 19 Sep 2024 01:39:22 +0100 Subject: [PATCH] im logging you strawberry --- app/modules/memetera_counter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/modules/memetera_counter.py b/app/modules/memetera_counter.py index 1230641..c5f2b8d 100644 --- a/app/modules/memetera_counter.py +++ b/app/modules/memetera_counter.py @@ -46,6 +46,7 @@ class MemeteraCounter(niobot.NioBot): for word, regex in self.WORDS.items(): word_count = len(regex.findall(lower_body)) if word_count: + self.log.info("June said %r %d times in %s!", word, word_count, event.event_id) counts.setdefault(word, 0) counts[word] += word_count @@ -55,6 +56,7 @@ class MemeteraCounter(niobot.NioBot): stored = stored or 0 stored += count await self.bot.redis.set(key, count) + self.log.info("June has now said %r %d times", word, stored) @niobot.command(name="june-word-count", hidden=True) async def june_word_count(