DBL is total garbage

This commit is contained in:
Dragon Fire
2020-04-28 09:07:54 -04:00
parent b2f86615c8
commit 1817c6e990
10 changed files with 7 additions and 34 deletions
+1 -4
View File
@@ -1,17 +1,15 @@
const { CommandoClient } = require('discord.js-commando');
const { WebhookClient } = require('discord.js');
const DBL = require('dblapi.js');
const Collection = require('@discordjs/collection');
const winston = require('winston');
const PokemonStore = require('./pokemon/PokemonStore');
const MemePoster = require('./MemePoster');
const { XIAO_WEBHOOK_ID, XIAO_WEBHOOK_TOKEN, BOT_LIST_GUILDS, TOP_GG_TOKEN } = process.env;
const { XIAO_WEBHOOK_ID, XIAO_WEBHOOK_TOKEN } = process.env;
module.exports = class XiaoClient extends CommandoClient {
constructor(options) {
super(options);
this.botListGuilds = BOT_LIST_GUILDS ? BOT_LIST_GUILDS.split(',') : [];
this.logger = winston.createLogger({
transports: [new winston.transports.Console()],
format: winston.format.combine(
@@ -22,7 +20,6 @@ module.exports = class XiaoClient extends CommandoClient {
this.webhook = new WebhookClient(XIAO_WEBHOOK_ID, XIAO_WEBHOOK_TOKEN, { disableEveryone: true });
this.pokemon = new PokemonStore();
this.memePoster = new MemePoster(this);
this.dbl = TOP_GG_TOKEN ? new DBL(TOP_GG_TOKEN, this) : null;
this.games = new Collection();
this.phone = new Collection();
}