From 0f2233a529d80b242732bd40ebaecf3fbb56cecf Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 5 Jan 2020 14:19:48 -0500 Subject: removed eslint and fixes --- .eslintrc.js | 17 ----------------- CONTRIBUTING.md | 2 +- bot_discord.js | 3 ++- commands/invite.js | 2 +- package.json | 4 ++-- 5 files changed, 6 insertions(+), 22 deletions(-) delete mode 100644 .eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index edadc67..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1,17 +0,0 @@ -module.exports = { - "env": { - "browser": true, - "es6": true - }, - "extends": "eslint:recommended", - "globals": { - "Atomics": "readonly", - "SharedArrayBuffer": "readonly" - }, - "parserOptions": { - "ecmaVersion": 2018, - "sourceType": "module" - }, - "rules": { - } -}; \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 576f325..473704a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -41,7 +41,7 @@ exports.help = { # Testing the bot First get NodeJS then clone this repo then do `npm install` or `yarn install` in the AleeBot folder. Now add a file called `tokens.json` then copy and paste this follow code. -``` +```json { "abtoken": "token" } diff --git a/bot_discord.js b/bot_discord.js index e8d18e1..4a9b109 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -210,7 +210,7 @@ client.on('ready', () => { }); }, 200000); client.user.setStatus('online'); - //client.channels.find('id', '606602551634296968').send("**AleeBot Status:** AleeBot has started."); + client.channels.find('id', '606602551634296968').send("**AleeBot Status:** AleeBot has started."); rl.prompt(); }); @@ -324,4 +324,5 @@ client.on('reconnecting', function() { client.on('disconnect', function() { log("[X] AleeBot has disconnected from Discord and will not attempt to reconnect.".red); console.log("At this point, you'll need to restart AleeBot.".red); + process.exit(0); }); diff --git a/commands/invite.js b/commands/invite.js index b0d3ec3..38094b4 100644 --- a/commands/invite.js +++ b/commands/invite.js @@ -25,7 +25,7 @@ module.exports.run = async (client, message) => { title: "Invite Command", fields: [{ name: "Invite AleeBot", - value: "[Invite AleeBot to your server.](https://discordapp.com/api/oauth2/authorize?client_id=282547024547545109&permissions=2080375863&scope=bot)" + value: "[Invite AleeBot to your server.](https://top.gg/bot/282547024547545109)" }, { name: "Join the Alee Productions Community", diff --git a/package.json b/package.json index d5fea3a..9631ca5 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "src/bot.js", "scripts": { "start": "node bot_discord.js", - "dev": "node bot_discord.js --beta" + "dev": "nodemon bot_discord.js --beta" }, "repository": { "type": "git", @@ -32,6 +32,6 @@ "ytdl-core": "^0.20.4" }, "devDependencies": { - "eslint": "^6.8.0" + "nodemon": "^2.0.2" } } -- cgit v1.2.3