diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-03-12 21:27:20 -0400 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-03-12 21:27:20 -0400 |
| commit | 7e013ccbf04aa5c0f07f4d6c1c5c9fa6349c5f87 (patch) | |
| tree | 856548f5f435a93db2d75018974ac0377fcb6625 | |
| parent | cd8a2a58a232174a9279841cf701cfbd37def2be (diff) | |
| download | PokeBot-7e013ccbf04aa5c0f07f4d6c1c5c9fa6349c5f87.tar.gz PokeBot-7e013ccbf04aa5c0f07f4d6c1c5c9fa6349c5f87.tar.bz2 PokeBot-7e013ccbf04aa5c0f07f4d6c1c5c9fa6349c5f87.zip | |
hopefully not interupting treys vps session
| -rw-r--r-- | bot.js | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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`); |
