Skip to content
Sign upLog in
← Back to Community

node.js Discord Bot running 24/7

Profile icon
NightmareTaken

What code do I need to use to be able to use uptime robot with node.js on replit for my discord bot?

Voters
Profile icon
VinodTripathi1
Profile icon
dansbisnis
Profile icon
DiscordZero
Profile icon
EdwinJilson
Profile icon
FreeFire139
Profile icon
ArifRifai2
Profile icon
A2-MOTIVATION-F
Profile icon
gunugti333
Profile icon
JazIanX
Profile icon
NightmareTaken
Comments
hotnewtop
Profile icon
Coder100

To host in node.js, try this tutorial.

Profile icon
RYANTADIPARTHI

host it somewhere, or get http servers.

Profile icon
SixBeeps

You need to start an HTTP server one way or another, then link UTR to the auto-generated link for that server.

Profile icon
NightmareTaken

what would be the code to run that server?

@SixBeeps

Profile icon
SixBeeps

@NightmareTaken
You could do it with Express:

const express = require('express'); const app = express(); app.get('/', (req, res) => { res.send('Hello Express app!') }); app.listen(3000, () => { console.log('server started'); });
Profile icon
NightmareTaken

@SixBeeps
Do I need to name the file anything special?

Profile icon
SixBeeps

@NightmareTaken
This should be in your index file.