Skip to content

Commit

Permalink
Remove variable even_hours
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalk0 committed Nov 19, 2023
1 parent 4ba72f8 commit 9cacc1f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@


async def tasks_list(client: ChouetteBot):
# Hours for the loop
even_hours = [time(0), time(2), time(4), time(6), time(8), time(10),
time(12), time(14), time(16), time(18), time(20), time(22)]

# Loop to send message every 2 hours for pokeroll
@tasks.loop(time=even_hours)
@tasks.loop(time=[time(t) for t in range(0, 24, 2)])
async def poke_ping():
guild = client.get_guild(int(client.config['GUILD_ID']))
dresseurs = guild.get_role(int(client.config['POKE_ROLE']))
Expand Down

0 comments on commit 9cacc1f

Please sign in to comment.