diff options
| author | Alee <alee14498@gmail.com> | 2018-04-16 15:14:25 -0400 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-04-16 15:14:25 -0400 |
| commit | 649343b07f025174363e8731afeda709f5815d50 (patch) | |
| tree | 051f52bd9ebd76af1c7cc9e9b84cfc67d88b57bd /bot_discord.js | |
| parent | 86063a6b869873fd12efc94d0c5bebcd5f792e87 (diff) | |
| download | AleeBot-649343b07f025174363e8731afeda709f5815d50.tar.gz AleeBot-649343b07f025174363e8731afeda709f5815d50.tar.bz2 AleeBot-649343b07f025174363e8731afeda709f5815d50.zip | |
DBL Stuff
Diffstat (limited to 'bot_discord.js')
| -rw-r--r-- | bot_discord.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bot_discord.js b/bot_discord.js index 3484427..5b2054a 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -20,6 +20,7 @@ const Discord = require('discord.js');
const economy = require('discord-eco');
const moment = require('moment');
+const DBL = require("dblapi.js");
const client = new Discord.Client({
disableEveryone: true
});
@@ -27,6 +28,7 @@ const abVersion = '2.8.0'; const prefix = 'ab:';
const fs = require('fs');
const config = require('./absettings.json');
+const dbl = new DBL(config.dbltoken, client);
const log = message => {
@@ -92,6 +94,9 @@ client.on('ready', () => { 'Drawing shapes',
'Fighting AstralMod',
];
+ setInterval(() => {
+ dbl.postStats(client.guilds.size, client.shards.Id, client.shards.total);
+ }, 1800000);
client.user.setPresence({
status: 'online',
|
