Ajout du fichier .env

This commit is contained in:
Mylloon 2022-04-18 15:38:01 +02:00
parent a756892061
commit a3919a80a9
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
4 changed files with 21 additions and 2 deletions

3
.gitignore vendored
View file

@ -1,2 +1,5 @@
# Dependency directories # Dependency directories
node_modules/ node_modules/
# Environment variables
.env

1
example.env Normal file
View file

@ -0,0 +1 @@
DISCORD_TOKEN=your-token-goes-here

16
package-lock.json generated
View file

@ -9,7 +9,8 @@
"version": "0.0.1", "version": "0.0.1",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"dependencies": { "dependencies": {
"discord.js": "^13.6.0" "discord.js": "^13.6.0",
"dotenv": "^16.0.0"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.13.0" "eslint": "^8.13.0"
@ -368,6 +369,14 @@
"node": ">=6.0.0" "node": ">=6.0.0"
} }
}, },
"node_modules/dotenv": {
"version": "16.0.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.0.tgz",
"integrity": "sha512-qD9WU0MPM4SWLPJy/r2Be+2WgQj8plChsyrCNQzW/0WjvcJQiKQJ9mH3ZgB3fxbUUxgc/11ZJ0Fi5KiimWGz2Q==",
"engines": {
"node": ">=12"
}
},
"node_modules/escape-string-regexp": { "node_modules/escape-string-regexp": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
@ -1418,6 +1427,11 @@
"esutils": "^2.0.2" "esutils": "^2.0.2"
} }
}, },
"dotenv": {
"version": "16.0.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.0.tgz",
"integrity": "sha512-qD9WU0MPM4SWLPJy/r2Be+2WgQj8plChsyrCNQzW/0WjvcJQiKQJ9mH3ZgB3fxbUUxgc/11ZJ0Fi5KiimWGz2Q=="
},
"escape-string-regexp": { "escape-string-regexp": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",

View file

@ -13,7 +13,8 @@
"author": "La confrérie du Kassoulait", "author": "La confrérie du Kassoulait",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"dependencies": { "dependencies": {
"discord.js": "^13.6.0" "discord.js": "^13.6.0",
"dotenv": "^16.0.0"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.13.0" "eslint": "^8.13.0"