added logging to file, update every 20min instead of 30min

main
Benjamin Kraft 4 months ago
parent 8619bcf47e
commit 11b6939335
  1. 1
      .gitignore
  2. 2
      package.json
  3. 2
      src/bot.ts

1
.gitignore vendored

@ -4,3 +4,4 @@ node_modules
out
.env
players.json
output.log

@ -5,7 +5,7 @@
"main": "out/index.js",
"scripts": {
"build": "tsc",
"start": "node out/index.js",
"start": "node out/index.js 2>&1 | tee output.log",
"deploy-commands": "node out/deploy-commands.js"
},
"repository": {

@ -18,7 +18,7 @@ export class UEMEloBot extends Client {
this.commands = commands;
const token = await this.login();
console.log(`Discord Token: ${token}`);
setInterval(this.updatePlayers.bind(this), 30 * 60 * 1000);
setInterval(this.updatePlayers.bind(this), 20 * 60 * 1000);
await this.updatePlayers();
});
}

Loading…
Cancel
Save