From 7e013ccbf04aa5c0f07f4d6c1c5c9fa6349c5f87 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 12 Mar 2018 21:27:20 -0400 Subject: hopefully not interupting treys vps session --- bot.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'bot.js') 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`); -- cgit v1.2.3