Skip to content
Sign upLog in
← Back to Community
Restart Repl Command for Discord
Profile icon
io212b75

I made a discord bot using python.

Currently i set up uptimerobot to make the bot alive.

I wanted a command that restarts the repl when i type that command because streaming audio on a repl that is awake for a long time gives bad/choppy audio

How can i do it?

Is there a way to restart the repl without visiting the repl?

Voters
Profile icon
io212b75
Comments
hotnewtop
Profile icon
Killenemy45

Use client.stop

Profile icon
CosmicBear

No. But what you could do is set up a new file that runs the code in a different file and have that new file re-run the bot.

Profile icon
io212b75