Skip to content
How can I make a discordpy bot update/restart itself without stopping the Flask server
Profile icon
SpaceFire

I want to make a command something like [prefix]restart so that my bot doesn't go offline with every little update I make.

You are viewing a single comment. View All
Profile icon
JoshuaGottfried

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

Profile icon
SpaceFire

@JoshuaGottfried
this does log my bot out which is half the job but does not reactivate it

Profile icon
JoshuaGottfried

@SpaceFire
Hmmmmmm. Could you send me the code via Discord? Nuggets#0001

Profile icon
SpaceFire