aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-05-16 17:00:25 +0300
committerGravatar ks129 <[email protected]>2020-05-16 17:00:25 +0300
commit1a6abaac12eb2e6ab0d26065108fe1cce9a7be45 (patch)
treeca3b0ad2066b661fb323b3a0e82e703418cbc138
parentStats: Create guild boost stat collection (diff)
Stats: Added codeblock correction stats
-rw-r--r--bot/cogs/bot.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py
index a6929b431..67ff8f95d 100644
--- a/bot/cogs/bot.py
+++ b/bot/cogs/bot.py
@@ -326,6 +326,8 @@ class BotCog(Cog, name="Bot"):
log.trace("The code consists only of expressions, not sending instructions")
if howto != "":
+ # Increase amount of codeblock correction in stats
+ self.bot.stats.incr("codeblock_corrections")
howto_embed = Embed(description=howto)
bot_message = await msg.channel.send(f"Hey {msg.author.mention}!", embed=howto_embed)
self.codeblock_message_ids[msg.id] = bot_message.id