How can I make a discordpy bot update/restart itself without stopping the Flask server
I want to make a command something like
[prefix]restart so that my bot doesn't go offline with every little update I make.
Make a command only you can use called restart. Then use await client/bot.logout... If you are hosting using repl it will automatically restart