fix(example): use dotenv
This commit is contained in:
parent
0eac8c6b8a
commit
d7ea23a474
4 changed files with 7 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -13,3 +13,4 @@ yarn*.log
|
|||
example/test
|
||||
example/music-bot/node_modules
|
||||
example/music-bot/package-lock.json
|
||||
example/music-bot/.env
|
|
@ -1,3 +1,3 @@
|
|||
module.exports = {
|
||||
token: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
|
||||
token: process.env.DISCORD_TOKEN
|
||||
};
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
require("dotenv").config();
|
||||
const { Client, GuildMember } = require("discord.js");
|
||||
const config = require("./config");
|
||||
const { Player, QueryType, QueueRepeatMode } = require("discord-player");
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue