From e5a8fa84938e76dcc7177b46efab1815eca7c293 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 2 Jan 2020 13:53:18 -0500 Subject: 2020 changes and tweaked some stuff --- bot_discord.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bot_discord.js') diff --git a/bot_discord.js b/bot_discord.js index 405cd4c..522b13a 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(); @@ -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": @@ -228,11 +228,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