aboutsummaryrefslogtreecommitdiff
path: root/bot_discord.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot_discord.js')
-rw-r--r--bot_discord.js8
1 files changed, 4 insertions, 4 deletions
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;