Skip to content
← Back to Community
How do you make your Discord bot online 24/7
Profile icon
NateIsCool

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 [earned 5 cycles]
View Answer
Voters
Profile icon
ssoilure
Profile icon
siamboi605
Profile icon
NateIsCool
Profile icon
Maiky6085
Profile icon
gtfxbackup
Profile icon
di0rr
Profile icon
Khezia-ZakyZaky
Profile icon
TawnyARMY
Profile icon
kingman1
Profile icon
Sulok
Comments
hotnewtop
Profile icon
PattanAhmed

@NateIsCool Hi,
I assume you are making your Discord bot with Python.
If so, Follow this tutorial right here:-
https://www.codementor.io/@garethdwyer/building-a-discord-bot-with-python-and-repl-it-miblcwejz#keeping-our-bot-alive

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
Thanks!

Hope this helps!

Profile icon
NateIsCool

Unfortunately I am using .js.
@PattanAhmed

Profile icon
PattanAhmed

@NateIsCool That's not bad either.
Here is the tutorial for that too:-
https://www.codementor.io/@garethdwyer/building-a-discord-bot-with-node-js-and-repl-it-mm46r1u8y#keeping-our-bot-alive

Try that out.
and tell me the results!

Profile icon
NateIsCool
Profile icon
PattanAhmed
Profile icon
NateIsCool

Thanks for the [email protected]

Profile icon
PattanAhmed

@NateIsCool Welcome!
Happy to help you!

Profile icon
Silverwolf7

@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?

Profile icon
Henry343

@PattanAhmed Website Error 404

Profile icon
RYANTADIPARTHI

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

Profile icon
programmeruser

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.

Profile icon
NateIsCool

I’m using .js

Profile icon
khlylblyz

GG

Profile icon
staticvoidliam7

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

windows: ping -t urlname linux: ping urlname