Ask coding questions

← Back to all posts
How do you make your Discord bot online 24/7
NateIsCool (2)

This problem occurs when I leave the tab. I am trying to make my Discord bot worldwide but with this issue everyone’s going to be pissed.

Answered by PattanAhmed (1404) [earned 5 cycles]
View Answer
PattanAhmed (1404)

@NateIsCool Hi,
I assume you are making your Discord bot with Python.
If so, Follow this tutorial right here:-

It will help you how to make your discord bot go online for 24/7 even if you close the tab.

If it didn't work, try to DM me on Discord at:- PattanAhmed#0593

That's it

Hope this helps!

NateIsCool (2)

Unfortunately I am using .js.

Silverwolf7 (0)

@PattanAhmed I've tried this, but for some reason my bot isn't showing up as online and isn't responding to my commands. any help?


You can either host it somewhere, or use HTTP servers to do the job for you.

programmeruser (604)

You'll need to create an HTTP server so that repl will keep your repl unning after you close your browser tab, and use a pinger to ping that.

LiamDonohue (294)

Express server if on node.js, or just ping it

windows: ping -t urlname
linux: ping urlname