aboutsummaryrefslogtreecommitdiff
path: root/bot_discord.js
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-11-11 21:19:01 -0500
committerAlee <alee14498@gmail.com>2018-11-11 21:19:01 -0500
commit33b5905e04184778afcb2e39509bc1a1f57b4558 (patch)
tree444252aeab0ca642793622fa84b3e2b3db547857 /bot_discord.js
parentaf2061dcad2193ac88e3b2d65bc17cbbb14db953 (diff)
downloadAleeBot-33b5905e04184778afcb2e39509bc1a1f57b4558.tar.gz
AleeBot-33b5905e04184778afcb2e39509bc1a1f57b4558.tar.bz2
AleeBot-33b5905e04184778afcb2e39509bc1a1f57b4558.zip
More changes
Diffstat (limited to 'bot_discord.js')
-rw-r--r--bot_discord.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/bot_discord.js b/bot_discord.js
index 3b6f0fa..cdff499 100644
--- a/bot_discord.js
+++ b/bot_discord.js
@@ -1,5 +1,5 @@
/****************************************
- *
+ *
* AleeBot: Made for discord servers
* Copyright (C) 2018 AleeCorp
*
@@ -15,7 +15,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
+ *
* *************************************/
const Discord = require('discord.js');
const moment = require('moment');
@@ -67,12 +67,12 @@ if (process.argv.indexOf("--beta") == -1) {
console.log('[X] Login failed. The token that you put in is invalid, please put in a new one...'.red);
process.exit(0);
});
-
+
} else {
client.login(api.abbtoken).catch(function() {
console.log('[X] Login failed. The token that you put in is invalid, please put in a new one...'.red);
process.exit(0);
- });
+ });
}
client.commands = new Discord.Collection();
@@ -200,7 +200,7 @@ client.on('ready', () => {
setInterval(() => {
dbl.postStats(client.guilds.size, client.shards.Id, client.shards.total);
}, 1800000);
- db.createWebview('password', 3000);
+ db.createWebview('password', 4000);
client.user.setPresence({
status: 'online',
afk: false,
@@ -237,7 +237,7 @@ dbl.on('error', e => {
client.on('message', (msg) => {
if (msg.author.bot) return;
-
+
if (msg.mentions != null && msg.mentions.users != null) {
if (msg.mentions.users.has("282547024547545109")){
if (msg.content.toLowerCase().includes("hello") || (msg.content.toLowerCase().includes("hi"))) {
@@ -278,7 +278,7 @@ client.on('message', (msg) => {
}
let prefix = prefixes[msg.guild.id].prefixes
-
+
if (!msg.content.startsWith(prefix)) return;
const args = msg.content.slice(prefix.length).trim().split(/ +/g);
@@ -324,4 +324,4 @@ 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);
-}); \ No newline at end of file
+});