mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Added brawlhalla integration
This commit is contained in:
parent
84d954c305
commit
0e972cc792
1 changed files with 7 additions and 0 deletions
7
main.py
7
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:
|
||||
|
|
Loading…
Reference in a new issue