Skip to content
This repository was archived by the owner on Oct 18, 2020. It is now read-only.

Commit 4935355

Browse files
committed
don't check activity if top 8
1 parent 4b810ea commit 4935355

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

bot.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -990,18 +990,18 @@ async def launch_matches(guild, bracket):
990990
else:
991991
gaming_channel_annonce += ":three: Vous devez jouer ce set en **BO3** *(best of three)*.\n"
992992

993+
scheduler.add_job(
994+
check_channel_activity,
995+
id = f'check activity of set {gaming_channel.name}',
996+
args = [gaming_channel, player1, player2],
997+
run_date = datetime.datetime.now() + datetime.timedelta(minutes=15)
998+
)
999+
9931000
if is_queued_for_stream(match["suggested_play_order"]):
9941001
gaming_channel_annonce += ":tv: **Vous jouerez on stream**. Dès que ce sera votre tour, je vous communiquerai les codes d'accès."
9951002

9961003
await gaming_channel.send(gaming_channel_annonce)
9971004

998-
scheduler.add_job(
999-
check_channel_activity,
1000-
id = f'check activity of set {gaming_channel.name}',
1001-
args = [gaming_channel, player1, player2],
1002-
run_date = datetime.datetime.now() + datetime.timedelta(minutes=15)
1003-
)
1004-
10051005
on_stream = "(**on stream**) :tv:" if is_queued_for_stream(match["suggested_play_order"]) else ""
10061006
top_8 = "(**top 8**) :fire:" if is_top8(match["round"]) else ""
10071007

0 commit comments

Comments
 (0)