aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-12 21:27:20 -0400
committerUnknown <jtsshieh@outlook.com>2018-03-12 21:27:20 -0400
commit7e013ccbf04aa5c0f07f4d6c1c5c9fa6349c5f87 (patch)
tree856548f5f435a93db2d75018974ac0377fcb6625 /bot.js
parentcd8a2a58a232174a9279841cf701cfbd37def2be (diff)
downloadPokeBot-7e013ccbf04aa5c0f07f4d6c1c5c9fa6349c5f87.tar.gz
PokeBot-7e013ccbf04aa5c0f07f4d6c1c5c9fa6349c5f87.tar.bz2
PokeBot-7e013ccbf04aa5c0f07f4d6c1c5c9fa6349c5f87.zip
hopefully not interupting treys vps session
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/bot.js b/bot.js
index eae91a4..6cf574e 100644
--- a/bot.js
+++ b/bot.js
@@ -3,7 +3,7 @@ const bot = new Discord.Client();
const config = require('./config.json');
const fs = require('fs');
const DBL = require('dblapi.js');
-const dbl = new DBL('redacted');
+bot.dbl = new DBL(config.dbltoken, bot);
bot.commands = new Discord.Collection();
bot.aliases = new Discord.Collection();
@@ -12,12 +12,6 @@ bot.queue = new Discord.Collection();
bot.plugins = { music : require('./Plugins/Music.js') , economy : require('./Plugins/Economy.js'), settings : require('./Plugins/settings.js')};
cmdLoader();
-bot.on('ready', () => {
- setInterval(() => {
- dbl.postStats(bot.guilds.size, bot.shards.Id, bot.shards.total);
- }, 1800000);
-});
-
async function cmdLoader() {
const categories = await fs.readdirSync('./commands');
console.log(`Loading ${categories.length} categories(s) into memory\n`);