From 33b5905e04184778afcb2e39509bc1a1f57b4558 Mon Sep 17 00:00:00 2001 From: Alee Date: Sun, 11 Nov 2018 21:19:01 -0500 Subject: More changes --- bot_discord.js | 16 ++++++++-------- commands/help.js | 8 ++++---- 2 files changed, 12 insertions(+), 12 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 . - * + * * *************************************/ 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 +}); diff --git a/commands/help.js b/commands/help.js index a3400b7..dd4a85f 100644 --- a/commands/help.js +++ b/commands/help.js @@ -1,5 +1,5 @@ /**************************************** - * + * * Help: Command for AleeBot * 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 . - * + * * *************************************/ const Discord = require('discord.js'); const fs = require('fs'); @@ -41,10 +41,10 @@ module.exports.run = async (client, message) => { if (!message.guild.member(client.user).hasPermission('EMBED_LINKS')) return message.reply('ERROR: AleeBot doesn\'t have the permission to send embed links please enable them to use the full help.'); const embed = new Discord.RichEmbed() .setAuthor('AleeBot ' + require('../storage/settings.json').abVersion + ` Help and on ${client.guilds.size} servers`, client.user.avatarURL) - .setDescription('Every command you input into AleeBot is `' + prefix + '`\n\nATTENTION ALL: ALEEBOT WILL NO LONGER RECIEVE UPDATES AFTER 2.11.4.') + .setDescription('Every command you input into AleeBot is `' + prefix + '`\n\nATTENTION ALL: ALEEBOT WILL BE CONTINUING BUT ALEE WON\'T BE DEVELOPING IT MUCH...') .setColor('#1fd619') .setFooter('AleeCorp Copyright 2018, Licensed with GPL-3.0'); - + categories.forEach(function(x) { let cat = ''; commands.forEach(function(command) { -- cgit v1.2.3