Your bot's web panel
Your bot can serve a website (dashboard, API…). In Settings → Web panel, enable it and set the port: your bot gets a PORT variable and an HTTPS address.
JavaScript (express)
const express = require('express');
const app = express();
app.get('/', (req, res) => res.send('My bot is online!'));
app.listen(process.env.PORT || 3000);💡
Listen on the
PORT variable, not on a fixed port.