fix sleep
This commit is contained in:
parent
2d81b2f81a
commit
31be129a9e
1 changed files with 2 additions and 2 deletions
|
@ -166,7 +166,7 @@ def main():
|
||||||
async def kron():
|
async def kron():
|
||||||
kron_choice = random.choice(["kaamelott","slap","kaamelott",False])
|
kron_choice = random.choice(["kaamelott","slap","kaamelott",False])
|
||||||
if kron_choice:
|
if kron_choice:
|
||||||
sleep(random.choice(range(3550)))
|
#sleep(random.choice(range(3550)))
|
||||||
for channel in bot.get_all_channels():
|
for channel in bot.get_all_channels():
|
||||||
if channel.name == "général":
|
if channel.name == "général":
|
||||||
current_chan = channel
|
current_chan = channel
|
||||||
|
@ -185,7 +185,7 @@ def main():
|
||||||
for channel in bot.get_all_channels():
|
for channel in bot.get_all_channels():
|
||||||
if channel.name == "général":
|
if channel.name == "général":
|
||||||
current_chan = channel
|
current_chan = channel
|
||||||
sleep(random.choice(range(350)))
|
#sleep(random.choice(range(350)))
|
||||||
ctx = await bot.get_context(current_chan.last_message)
|
ctx = await bot.get_context(current_chan.last_message)
|
||||||
ctx.message.content = ""
|
ctx.message.content = ""
|
||||||
joke = bot.get_command('joke')
|
joke = bot.get_command('joke')
|
||||||
|
|
Loading…
Reference in a new issue