diff options
| author | TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> | 2018-03-12 17:04:15 -0400 |
|---|---|---|
| committer | TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> | 2018-03-12 17:04:15 -0400 |
| commit | eed26a63624bef0d50a7a308a07a356fcde68746 (patch) | |
| tree | de2bc9e623d952066f559c538de7b917b25962be /bot.js | |
| parent | cd189935f2232945b9966c38f4d182fd1cb4f53f (diff) | |
| download | PokeBot-eed26a63624bef0d50a7a308a07a356fcde68746.tar.gz PokeBot-eed26a63624bef0d50a7a308a07a356fcde68746.tar.bz2 PokeBot-eed26a63624bef0d50a7a308a07a356fcde68746.zip | |
:LAUGHTER:
Diffstat (limited to 'bot.js')
| -rw-r--r-- | bot.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2,6 +2,8 @@ const Discord = require('discord.js'); 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.commands = new Discord.Collection(); bot.aliases = new Discord.Collection(); @@ -10,6 +12,12 @@ bot.queue = new Discord.Collection(); bot.plugins = { music : require('./Plugins/Music.js') , economy : require('./Plugins/Economy.js'), settings : require('./Plugins/settings.js')}; cmdLoader(); +client.on('ready', () => { + setInterval(() => { + dbl.postStats(client.guilds.size, client.shards.Id, client.shards.total); + }, 1800000); +}); + async function cmdLoader() { const categories = await fs.readdirSync('./commands'); console.log(`Loading ${categories.length} categories(s) into memory\n`); |
