2020-03-15 01:30:15 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'emojis',
|
2020-03-22 15:10:46 +00:00
|
|
|
async execute(client) {
|
2020-03-15 01:30:15 +00:00
|
|
|
let customEmojis = {
|
2020-03-28 00:01:12 +00:00
|
|
|
logo: "<:RadioX:688765708808487072>",
|
|
|
|
eximiabots: "<:EximiaBots:693277919929303132>",
|
2020-03-15 01:30:15 +00:00
|
|
|
list: "<:RadioXList:688541155519889482>",
|
|
|
|
play: "<:RadioXPlay:688541155712827458>",
|
|
|
|
stop: "<:RadioXStop:688541155377414168>",
|
|
|
|
x: "<:RadioXX:688541155792781320>"
|
|
|
|
};
|
2020-03-22 15:10:46 +00:00
|
|
|
|
2020-03-15 01:30:15 +00:00
|
|
|
let fallbackEmojis = {
|
2020-03-28 00:01:12 +00:00
|
|
|
logo: "RadioX",
|
|
|
|
eximiabots: "EximiaBots",
|
2020-03-15 01:30:15 +00:00
|
|
|
list: "📜",
|
|
|
|
play: "▶️",
|
|
|
|
stop: "⏹️",
|
|
|
|
x: "❌"
|
|
|
|
};
|
2020-03-22 15:10:46 +00:00
|
|
|
|
2020-03-15 01:30:15 +00:00
|
|
|
client.messageEmojis = {};
|
|
|
|
|
2020-03-22 15:10:46 +00:00
|
|
|
for (customEmojiName in customEmojis) {
|
2020-03-15 01:30:15 +00:00
|
|
|
customEmojiID = customEmojis[customEmojiName].replace(/[^0-9]+/g, '');
|
|
|
|
customEmoji = client.emojis.cache.get(customEmojiID);
|
2020-03-22 15:10:46 +00:00
|
|
|
if (customEmoji) {
|
2020-03-15 01:30:15 +00:00
|
|
|
client.messageEmojis[customEmojiName] = customEmojis[customEmojiName];
|
|
|
|
} else {
|
|
|
|
client.messageEmojis[customEmojiName] = fallbackEmojis[customEmojiName];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|