mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-19 11:27:03 -04:00
remove express server
This commit is contained in:
parent
8958f9b5f5
commit
2efb72240f
1 changed files with 1 additions and 13 deletions
12
index.js
12
index.js
|
@ -16,15 +16,3 @@ const manager = new ClusterManager(client, token, {
|
|||
await manager.run();
|
||||
console.log(`v2 | ready. took ${(Date.now() - time) / 1000}.`)
|
||||
})();
|
||||
|
||||
// TODO: if i decide that this is necessary for something else, move it to a dedicated directory
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
|
||||
app.get("*", function (request, response) {
|
||||
response.send(`🧪 v2 @ ${Date.now()}`);
|
||||
});
|
||||
|
||||
var listener = app.listen(process.env.PORT, function () {
|
||||
console.log(`v2 | web server live on port ${listener.address().port}.`);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue