From a3919a80a908a2c36f35b201809ececa7fde13e3 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 18 Apr 2022 15:38:01 +0200 Subject: [PATCH] Ajout du fichier .env --- .gitignore | 3 +++ example.env | 1 + package-lock.json | 16 +++++++++++++++- package.json | 3 ++- 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 example.env diff --git a/.gitignore b/.gitignore index c093d3c..bd6fa88 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ # Dependency directories node_modules/ + +# Environment variables +.env diff --git a/example.env b/example.env new file mode 100644 index 0000000..8417d18 --- /dev/null +++ b/example.env @@ -0,0 +1 @@ +DISCORD_TOKEN=your-token-goes-here diff --git a/package-lock.json b/package-lock.json index 07904c4..57fdb0b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,8 @@ "version": "0.0.1", "license": "GPL-3.0-only", "dependencies": { - "discord.js": "^13.6.0" + "discord.js": "^13.6.0", + "dotenv": "^16.0.0" }, "devDependencies": { "eslint": "^8.13.0" @@ -368,6 +369,14 @@ "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": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -1418,6 +1427,11 @@ "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": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", diff --git a/package.json b/package.json index c137c29..423c367 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "author": "La confrérie du Kassoulait", "license": "GPL-3.0-only", "dependencies": { - "discord.js": "^13.6.0" + "discord.js": "^13.6.0", + "dotenv": "^16.0.0" }, "devDependencies": { "eslint": "^8.13.0"