Closed theAbdoSabbagh closed 2 years ago
If you had input() in the bot on_ready for a long time, the bot will restart after the input() takes input
@client.listen('on_ready') async def on_ready(): print("Bot online") input() # wait for 10 minutes or so
The bot shouldn't go down.
The bot goes down.
There isn't a traceback, the bot just restarts
Isn't a bug. input() is blocking.
input()
I didn't know bots would shutdown cuz of something blocking tbh
Summary
If you had input() in the bot on_ready for a long time, the bot will restart after the input() takes input
Reproduction Steps
Code
Expected Results
The bot shouldn't go down.
Actual Results
The bot goes down.
System Information
Checklist
Additional Information
There isn't a traceback, the bot just restarts