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
Comments
hotnewtop
PattanAhmed (1404)

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

NateIsCool (2)

Unfortunately I am using .js.
@PattanAhmed

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?

RYANTADIPARTHI (6019)

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