Change DiscordToken to DISCORD_TOKEN
This commit is contained in:
parent
9b7722120d
commit
96b86099a5
1 changed files with 2 additions and 2 deletions
4
bot.js
4
bot.js
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue