Skip to content
← Back to Community
uptimerobot
Profile icon
ben1389

How do I keep my bot always running? I'm making a Discord Bot right now!

Voters
Profile icon
15-83-Pham-Gia
Profile icon
TilakSorte
Profile icon
HA35
Profile icon
PixelGM
Profile icon
seanlnge
Comments
hotnewtop
Profile icon
Coder100

Hello! To do this, just add this to your code:

require("http").createServer((_, res) => res.end("Alive!")).listen(8080)

Now, just use uptimerobot to ping that page!

Profile icon
MrTechy11

@Coder100 What's the page though?