diff --git a/package-lock.json b/package-lock.json index f5646d8..e6ca788 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "iq-bot", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1487,6 +1487,12 @@ "dev": true, "optional": true }, + "dotenv": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", + "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==", + "dev": true + }, "duplexer3": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", diff --git a/package.json b/package.json index 699f516..7895117 100644 --- a/package.json +++ b/package.json @@ -29,9 +29,13 @@ "publishers": [ { "name": "@electron-forge/publisher-github", - "platforms": ["win32"], + "platforms": [ + "win32" + ], "config": { - "platforms": ["win32"], + "platforms": [ + "win32" + ], "repository": { "owner": "thearturca", "name": "iq-bot" @@ -70,6 +74,7 @@ "@electron-forge/maker-squirrel": "^6.0.0-beta.54", "@electron-forge/maker-zip": "^6.0.0-beta.54", "@electron-forge/publisher-github": "^6.0.0-beta.54", + "dotenv": "^8.2.0", "electron": "11.2.0" } } diff --git a/src/index.html b/src/index.html index 5b82c05..8ca8d54 100644 --- a/src/index.html +++ b/src/index.html @@ -105,7 +105,7 @@

Команды

- Команды, вызываемые через “!command” + Команды, вызываемые с помощью “!command”

diff --git a/src/main.js b/src/main.js index 1bca55c..70650ec 100644 --- a/src/main.js +++ b/src/main.js @@ -11,10 +11,12 @@ if (!fs.existsSync(dir2)){ fs.mkdirSync(dir2); } -if (require('electron-squirrel-startup')) return app.quit(); + const axios = require('axios'); const { app, BrowserWindow, Menu, Tray, ipcMain } = require('electron'); + +if (require('electron-squirrel-startup')) return app.quit(); const url = require('url'); const path = require('path'); const low = require('lowdb');