mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-30 17:57:49 +01:00
Update server js
This commit is contained in:
@@ -11,13 +11,6 @@ const CronJob = require('cron').CronJob;
|
||||
|
||||
var activeGames = {};
|
||||
|
||||
const job = new CronJob('* * 2 * * *', function() {
|
||||
activeGames = activeGames.filter((game) => game.state !== "ended");
|
||||
console.log("Games pruned at: " + (new Date()).toDateString());
|
||||
});
|
||||
console.log("cron job created");
|
||||
job.start();
|
||||
|
||||
app.set('port', 5000);
|
||||
app.use('/static', express.static(__dirname + '/static')); // Routing
|
||||
app.use('/assets', express.static(__dirname + '/assets')); // Routing
|
||||
|
||||
Reference in New Issue
Block a user