generalized the cancellation totaling into emoji totaling functions

This commit is contained in:
2021-08-10 22:47:06 -05:00
parent 5745c55f9d
commit 2442d508cd
2 changed files with 18 additions and 20 deletions

View File

@@ -46,7 +46,7 @@ class RoboPage(discord.Client):
if message.author != self.user:
if 'most cancelled' in message.content:
await message.reply(self.data.cancellation_leaderboard(14))
await message.reply(self.data.cancellation_leaderboard(days=14))
elif (m := re.search('top cancelled (?P<name>\w+)', message.content)) is not None:
async with self.data.lock: