From 0e972cc79241fe1ac475b04a93fdca2f1e7f8411 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 17 Aug 2016 20:26:20 +0200 Subject: [PATCH] Added brawlhalla integration --- main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.py b/main.py index 0a465086..fe6bd7b8 100644 --- a/main.py +++ b/main.py @@ -193,6 +193,9 @@ async def brawlhalla_update_mmr(timeout): break finally: await asyncio.sleep(1) + await asyncio.sleep(timeout) + else: + await asyncio.sleep(1) # Send a new event to both Discord and Telegram 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)) 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: loop.run_until_complete(d_client.start(token)) except KeyboardInterrupt: