@mkody/twitch-emoticons
Version:
Gets Twitch, BTTV, FFZ and 7TV emotes as well as parsing text to emotes!
14 lines (11 loc) • 394 B
JavaScript
const BTTVEmote = require('./BTTVEmote');
const FFZEmote = require('./FFZEmote');
const SevenTVEmote = require('./SevenTVEmote');
const TwitchEmote = require('./TwitchEmote');
class EmoteTypeMapper {
static getClassByType(type) {
const classMap = { BTTVEmote, FFZEmote, SevenTVEmote, TwitchEmote };
return classMap[type] || null;
}
}
module.exports = EmoteTypeMapper;