aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-01-05 14:19:48 -0500
committerAndrew Lee <alee14498@protonmail.com>2020-01-05 14:19:48 -0500
commit0f2233a529d80b242732bd40ebaecf3fbb56cecf (patch)
tree8ebcae6c1445c8e8d590eb6643fb82053909bd54
parent671f0bd1f997ae2c798703e1700b92a9dcc79acb (diff)
downloadAleeBot-0f2233a529d80b242732bd40ebaecf3fbb56cecf.tar.gz
AleeBot-0f2233a529d80b242732bd40ebaecf3fbb56cecf.tar.bz2
AleeBot-0f2233a529d80b242732bd40ebaecf3fbb56cecf.zip
removed eslint and fixes
-rw-r--r--.eslintrc.js17
-rw-r--r--CONTRIBUTING.md2
-rw-r--r--bot_discord.js3
-rw-r--r--commands/invite.js2
-rw-r--r--package.json4
5 files changed, 6 insertions, 22 deletions
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"
}
}