Files
vinci/util/web/webserver.ts
2022-11-27 16:50:37 +01:00

14 lines
413 B
TypeScript

import express from 'express'
export default function webserver() {
const app = express()
app.get('/', function (req, res) {
res.send(
'<p>This is the monitoring server for the Vinci discord bot!</p><br><p>If you see this, the bot is up and running.</p>'
);
});
app.listen(process.env.PORT || 7272, () =>
console.log('The webserver is listening')
);
}