diff --git a/.gitignore b/.gitignore index 0a28e0b..efbb922 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ old.py node_modules out .env -players.json \ No newline at end of file +players.json +output.log diff --git a/package.json b/package.json index f323169..ea36868 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/bot.ts b/src/bot.ts index 13972e4..de899eb 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -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(); }); } @@ -120,4 +120,4 @@ export class UEMEloBot extends Client { process.exit(0); }); } -} \ No newline at end of file +}