greatly simplified emoji tracking
This commit is contained in:
12
robopage.py
12
robopage.py
@@ -79,7 +79,7 @@ if __name__ == '__main__':
|
||||
async def on_ready():
|
||||
# print(len(list(client.get_all_members())))
|
||||
await client.handle_ready()
|
||||
print('\n'.join(client.data.reactions.index.get_level_values(1).drop_duplicates().sort_values()))
|
||||
# print('\n'.join(client.data.reactions.index.get_level_values(1).drop_duplicates().sort_values()))
|
||||
|
||||
|
||||
@client.event
|
||||
@@ -90,19 +90,13 @@ if __name__ == '__main__':
|
||||
@client.event
|
||||
async def on_raw_reaction_add(payload):
|
||||
LOGGER.info(payload)
|
||||
try:
|
||||
await client.data.update_reaction(payload=payload, client=client)
|
||||
except AttributeError as e:
|
||||
LOGGER.info(f'Robopage not initialized yet')
|
||||
await client.data.update_reaction(payload=payload, client=client)
|
||||
|
||||
|
||||
@client.event
|
||||
async def on_raw_reaction_remove(payload):
|
||||
LOGGER.info(payload)
|
||||
try:
|
||||
await client.data.update_reaction(payload=payload, client=client)
|
||||
except AttributeError as e:
|
||||
LOGGER.info(f'Robopage not initialized yet')
|
||||
await client.data.update_reaction(payload=payload, client=client)
|
||||
|
||||
|
||||
client.run()
|
||||
|
||||
Reference in New Issue
Block a user