diff options
| author | Alee <Alee14498@gmail.com> | 2020-01-02 14:46:06 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-02 14:46:06 -0500 |
| commit | dcec0212db88a775967f975c9c1d32dec7f63ec8 (patch) | |
| tree | 4a6c2b6f8fc6b51971ef82b18cfdc66ea33f8e06 /bot_discord.js | |
| parent | c8b8ba0bc5774bda115c368e8ce30a74b72b7231 (diff) | |
| download | AleeBot-dcec0212db88a775967f975c9c1d32dec7f63ec8.tar.gz AleeBot-dcec0212db88a775967f975c9c1d32dec7f63ec8.tar.bz2 AleeBot-dcec0212db88a775967f975c9c1d32dec7f63ec8.zip | |
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
Diffstat (limited to 'bot_discord.js')
| -rw-r--r-- | bot_discord.js | 11 |
1 files changed, 6 insertions, 5 deletions
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;
|
