Ask coding questions

← Back to all posts
How do you make your Discord bot online 24/7
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
AlexGamer6
ranveersoni1
bigboyyyyyyyy69
NateIsCool
Comments
hotnewtop
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!

NateIsCool

Unfortunately I am using .js.
@PattanAhmed

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!

NateIsCool
PattanAhmed
NateIsCool

Thanks for the [email protected]

PattanAhmed

@NateIsCool Welcome!
Happy to help you!

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?

RYANTADIPARTHI

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

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.

NateIsCool

I’m using .js

staticvoidliam7

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