1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Improved the reply time

Maybe.
This commit is contained in:
Steffo 2017-03-14 14:10:12 +01:00
parent 5da6d7f778
commit d0be259f35

View file

@ -40,6 +40,8 @@ class Bot:
for u in self.updates:
loop.create_task(self.parse_update(u))
self.updates = list()
# Wait 1 second between two requests, allowing the parsing of updates.
loop.run_until_complete(asyncio.sleep(1))
async def update_bot_data(self):
"""Update self.user_data with the latest information from /getMe."""