Skip to content

Commit

Permalink
Merge pull request #13 from NeverScapeAlone/v1.1.2-alpha
Browse files Browse the repository at this point in the history
v1.1.2-alpha
  • Loading branch information
Ferrariic authored Jul 13, 2022
2 parents f1926ba + 0cb30e3 commit 56d74c7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ async def on_ready():
)
logger.info(f"{client.user} has connected to Discord!")
manage_channels.start()
run_queues.start()


@client.event
Expand Down Expand Up @@ -69,6 +70,7 @@ async def run_active_queues():
else:
for activity in response:
count = response[activity]
activity = activity.replace("_", " ").title()
embed.add_field(name=activity, value=count, inline=False)

if len(messages) > 0:
Expand All @@ -80,10 +82,13 @@ async def run_active_queues():
return


@tasks.loop(seconds=5)
async def manage_channels():
@tasks.loop(seconds=10)
async def run_queues():
await run_active_queues()


@tasks.loop(seconds=5)
async def manage_channels():
route = (
config.BASE
+ f"V1/discord/get-active-matches?token={config.DISCORD_ROUTE_TOKEN}"
Expand Down

0 comments on commit 56d74c7

Please sign in to comment.