1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Added brawlhalla integration

This commit is contained in:
Steffo 2016-08-17 20:26:20 +02:00
parent 84d954c305
commit 0e972cc792

View file

@ -193,6 +193,9 @@ async def brawlhalla_update_mmr(timeout):
break break
finally: finally:
await asyncio.sleep(1) await asyncio.sleep(1)
await asyncio.sleep(timeout)
else:
await asyncio.sleep(1)
# Send a new event to both Discord and Telegram # Send a new event to both Discord and Telegram
async def send_event(eventmsg: str, player: str, **kwargs): async def send_event(eventmsg: str, player: str, **kwargs):
@ -226,6 +229,10 @@ print("[League] Added rank change check to the queue.")
loop.create_task(league_level_up(300)) loop.create_task(league_level_up(300))
print("[League] Added level change check to the queue.") print("[League] Added level change check to the queue.")
loop.create_task(brawlhalla_update_mmr(300))
print("[Brawlhalla] Added mmr change check to the queue.")
try: try:
loop.run_until_complete(d_client.start(token)) loop.run_until_complete(d_client.start(token))
except KeyboardInterrupt: except KeyboardInterrupt: