Change DiscordToken to DISCORD_TOKEN

This commit is contained in:
Dominik Korsa 2019-01-01 20:32:12 +01:00
parent 9b7722120d
commit 96b86099a5

4
bot.js
View file

@ -29,7 +29,7 @@ fs.readdir('./commands/', (err, files) => {
});
});
if (!process.env.DiscordToken) {
if (!process.env.DISCORD_TOKEN) {
throw new Error('Token not provided');
}
client.login(process.env.DiscordToken);
client.login(process.env.DISCORD_TOKEN);