mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-06 01:07:00 +00:00
14 lines
495 B
JavaScript
14 lines
495 B
JavaScript
const express = require('express');
|
|
const app = express();
|
|
|
|
// use the express-static middleware
|
|
app.use(express.static("public"))
|
|
|
|
// define the first route
|
|
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>")
|
|
})
|
|
|
|
// start the server listening for requests
|
|
app.listen(process.env.PORT || 7272,
|
|
() => console.log("The webserver is listening on port " + process.env.PORT || 3000)); |