diff --git a/.gitignore b/.gitignore index c63d6fa..3c5f5b6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ node_modules/ .DS_Store test.sh .vscode -tmp \ No newline at end of file +tmp +.env diff --git a/package-lock.json b/package-lock.json index 5d9917d..3196c82 100644 --- a/package-lock.json +++ b/package-lock.json @@ -213,6 +213,11 @@ } } }, + "dotenv": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", + "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==" + }, "end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", @@ -496,9 +501,9 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node-fetch": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz", - "integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==" + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" }, "node-rest-client": { "version": "3.1.0", @@ -886,9 +891,9 @@ }, "dependencies": { "bl": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.0.2.tgz", - "integrity": "sha512-j4OH8f6Qg2bGuWfRiltT2HYGx0e1QcBTrK9KAHNMwMZdQnDZFk0ZSYIpADjYCB3U12nicC5tVJwSIhwOWjb4RQ==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.0.3.tgz", + "integrity": "sha512-fs4G6/Hu4/EE+F75J8DuN/0IpQqNjAdC7aEQv7Qt8MHGUH7Ckv2MwTEEeN9QehD0pfIDkMI1bkHYkKy7xHyKIg==", "requires": { "buffer": "^5.5.0", "inherits": "^2.0.4", diff --git a/package.json b/package.json index 0608a0a..b20a367 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "@rocket.chat/sdk": "^0.2.9-2", "async-exit-hook": "^2.0.1", "discord.js": "12.1.1", + "dotenv": "^8.2.0", "mongodb": "^3.5.5", "pg": "^7.4.0", "puppeteer": "^3.2.0", diff --git a/src/main.js b/src/main.js index ffddb2c..0e302fd 100755 --- a/src/main.js +++ b/src/main.js @@ -1,3 +1,4 @@ +require("dotenv").config(); require('./util'); global.config = require('./config'); if (config.testmode) console.log('TEST MODE');