summaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-15 17:10:51 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-15 17:10:51 +0200
commit4bd55e56b17a3b59b5a291b1bef66c74e3c6c608 (patch)
treef32ce46b0b87a58fdfb0104df06d8c6773390774 /bot.js
parent795126408fc717a11d832f412470597377d71449 (diff)
downloaddiscordbot-4bd55e56b17a3b59b5a291b1bef66c74e3c6c608.tar.gz
discordbot-4bd55e56b17a3b59b5a291b1bef66c74e3c6c608.zip
remove my token
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot.js b/bot.js
index bb2e9b2..91eeca6 100644
--- a/bot.js
+++ b/bot.js
@@ -11,7 +11,7 @@ const sqlite = require("sqlite"),
commandPrefix: "?"
});
-const DISCORDTOKEN = process.env.DISCORDTOKEN || "Mjg5ODM2OTAwOTg5MDA5OTIw.C6SLKA.j8UETpPHztDV45xicf11hwpwNK8";
+const DISCORD_TOKEN = process.env.DISCORD_TOKEN;
client
.on("error", console.error)
@@ -66,7 +66,7 @@ client.registry
.registerCommandsIn(path.join(__dirname, 'commands'));
-client.login(DISCORDTOKEN);
+client.login(DISCORD_TOKEN);
process.on("unhandledRejection", err => {
console.error("Uncaught Promise Error: \n" + err.stack);