From dcec0212db88a775967f975c9c1d32dec7f63ec8 Mon Sep 17 00:00:00 2001 From: Alee Date: Thu, 2 Jan 2020 14:46:06 -0500 Subject: Beta (#20) * 2.12.0 Beta * 2020 changes and tweaked some stuff * remove lock * more copyright update * Service status, updating readme files * readme changes * readme changes x2 * 2.12.0 release --- bot_discord.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bot_discord.js') diff --git a/bot_discord.js b/bot_discord.js index 405cd4c..e0f94a1 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -1,7 +1,7 @@ /**************************************** * * AleeBot: Made for discord servers - * Copyright (C) 2018 AleeCorp + * Copyright (C) 2017-2020 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,7 +27,6 @@ const client = new Discord.Client({ }); const settings = require('./storage/settings.json') const fs = require('fs'); -const db = require('quick.db'); const api = require('./tokens.json'); const dbl = new DBL(api.dbltoken, client); const active = new Map(); @@ -45,7 +44,7 @@ const rl = readline.createInterface({ prompt: '> '.gray }); -console.log(`AleeBot ${settings.abVersion}: Copyright (C) 2018 AleeCorp`.gray); +console.log(`AleeBot ${settings.abVersion}: Copyright (C) 2017-2020 Alee Productions`.gray); console.log('This program comes with ABSOLUTELY NO WARRANTY; for details type `show w\'.'.gray); console.log ('This is free software, and you are welcome to redistribute it'.gray); console.log ('under certain conditions; type `show c\' for details.\n'.gray) @@ -161,6 +160,7 @@ rl.on('line', function(cmd){ break; case "exit": console.log('[i] AleeBot will now exit!'.blue) + client.destroy(); process.exit(0); break; case "help": @@ -210,6 +210,7 @@ client.on('ready', () => { }); }, 200000); client.user.setStatus('online'); + client.channels.find('id', '606602551634296968').send("**AleeBot Status:** AleeBot has started."); rl.prompt(); }); @@ -228,11 +229,11 @@ client.on('guildDelete', guild => { dbl.on('posted', () => { log('Server count posted!'.blue); -}) +}); dbl.on('error', e => { log(`[X | DBL ERROR] ${e}`.red); -}) +}); client.on('message', (msg) => { if (msg.author.bot) return; -- cgit v1.2.3