Integrate meme-poster into Xiao

This commit is contained in:
Dragon Fire
2019-11-03 00:08:44 -04:00
parent e688d5c838
commit 61ba69e6ae
6 changed files with 43 additions and 2 deletions
+2
View File
@@ -2,6 +2,7 @@ const { CommandoClient } = require('discord.js-commando');
const { WebhookClient } = require('discord.js');
const winston = require('winston');
const PokemonStore = require('./pokemon/PokemonStore');
const MemePoster = require('./MemePoster');
const { XIAO_WEBHOOK_ID, XIAO_WEBHOOK_TOKEN } = process.env;
module.exports = class XiaoClient extends CommandoClient {
@@ -17,6 +18,7 @@ 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.games = new Map();
}
};