added the biggest_daddy function

This commit is contained in:
2021-08-10 23:13:09 -05:00
parent 2442d508cd
commit a5c1c1748a
2 changed files with 14 additions and 2 deletions

View File

@@ -52,6 +52,9 @@ class RoboPage(discord.Client):
async with self.data.lock:
await message.reply(self.data.worst_offsenses(user=m.group('name'), days=14))
elif 'biggest daddy' in message.content:
await message.reply(self.data.biggest_daddy(days=14))
for joke in self.jokes:
if (scan_res := joke.scan(message)):
print(f'{joke.__class__.__name__} detected:\n{message.content}\n{scan_res}')
@@ -68,7 +71,6 @@ if __name__ == '__main__':
async def on_ready():
# print(len(list(client.get_all_members())))
await client.handle_ready()
print(client.data.cancellation_totals(14))
@client.event
@@ -80,7 +82,6 @@ if __name__ == '__main__':
async def on_raw_reaction_add(payload):
LOGGER.info(payload)
await client.data.update_reaction(payload=payload, client=client)
LOGGER.info(f'Leaderboard:\n{str(client.data.cancellation_totals(14)["total"].apply(int))}')
@client.event