Ask coding questions

← Back to all posts
How to keep alive my discord bot?My code is coding by java.
TWDannychao4024 (0)

I use uptimerobot to keep alive my discord bot, but I can't find my server link to key in URL line.
I key in the url : https://Test-Discord-robot.TWDannychao4024.repl.co, but it's status is still display "Down".

Comments
hotnewtop
bezimienny2 (0)

const express = require('express');
const app = express();
app.use(express.static('public'));

const https = require('https');
app.get("/", (request, response) => {
response.sendStatus(200);
});
app.listen(3000);
setInterval(() => {
https.get('');//repl
}, 1);

Coder100 (18939)

You will need to get an HTTP server.
Read this but make sure the IP is 0.0.0.0 and not 127.0.0.1

RYANTADIPARTHI (6047)

you need a Http server. Try hosting it somewhere.

DynamicSquid (5029)

Use mat1's pinger. I think all you need to do is to enter the URL