diff options
| author | 2020-05-16 18:19:18 +0300 | |
|---|---|---|
| committer | 2020-05-16 18:19:18 +0300 | |
| commit | 613b00a5ec060f409d5838cb1a648d9770cecfde (patch) | |
| tree | 744aaec18eaafdc37bbc462901fa25e343eed6fe | |
| parent | Stats: Added stats for eval role uses (Helpers/Developers) (diff) | |
Stats: Added stats for eval channel using (Help/Bot commands/Topical)
| -rw-r--r-- | bot/cogs/snekbox.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/cogs/snekbox.py b/bot/cogs/snekbox.py index 04c0a5ae1..1d240d8d8 100644 --- a/bot/cogs/snekbox.py +++ b/bot/cogs/snekbox.py @@ -303,6 +303,13 @@ class Snekbox(Cog): else: self.bot.stats.incr("evals.roles.developers") + if ctx.channel.category_id == Categories.help_in_use: + self.bot.stats.incr("evals.channels.help") + elif ctx.channel.id == Channels.bot_commands: + self.bot.stats.incr("evals.channels.bot_commands") + else: + self.bot.stats.incr("evals.channels.topical") + log.info(f"Received code from {ctx.author} for evaluation:\n{code}") while True: |