fix(example): use dotenv

This commit is contained in:
DevAndromeda 2021-08-08 11:46:09 +05:45
parent 0eac8c6b8a
commit d7ea23a474
No known key found for this signature in database
GPG key ID: FA40E3EC5CB6DCD6
4 changed files with 7 additions and 4 deletions

1
.gitignore vendored
View file

@ -13,3 +13,4 @@ yarn*.log
example/test
example/music-bot/node_modules
example/music-bot/package-lock.json
example/music-bot/.env

View file

@ -1,3 +1,3 @@
module.exports = {
token: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
token: process.env.DISCORD_TOKEN
};

View file

@ -1,3 +1,4 @@
require("dotenv").config();
const { Client, GuildMember } = require("discord.js");
const config = require("./config");
const { Player, QueryType, QueueRepeatMode } = require("discord-player");

View file

@ -10,7 +10,8 @@
"license": "MIT",
"dependencies": {
"@discordjs/opus": "^0.5.3",
"discord-player": "^5.0.0-dev.39f503a.1625470163",
"discord.js": "^13.0.1"
"discord-player": "^5.0.0",
"discord.js": "^13.0.1",
"dotenv": "^10.0.0"
}
}