fix kron function

This commit is contained in:
Milka64 2023-12-27 08:37:20 +01:00
parent ccde0ff81d
commit 82c5c6501c

View file

@ -322,7 +322,7 @@ class Texte(commands.Cog):
@tasks.loop(seconds=3600) @tasks.loop(seconds=3600)
async def kron(self): async def kron(self):
kron_choice = random.choice([self.kaamelott, self.slap, self.kamoulox, self.contrepeterie, schizo, None, None, None, None, None, None]) kron_choice = random.choice([self.kaamelott, self.slap, self.kamoulox, self.contrepeterie, self.schizo, None, None, None, None, None, None])
if kron_choice != None: if kron_choice != None:
await asyncio.sleep(random.choice(range(3550))) await asyncio.sleep(random.choice(range(3550)))
for channel in self.bot.get_all_channels(): for channel in self.bot.get_all_channels():