blob: 64c7ede58b308c0cde3208ab347216d575ed4fe5 [file] [log] [blame]
pineafan4f164f32022-02-26 22:07:12 +00001import emojis from '../config/emojis.json' assert {type: 'json'};
2
3function getEmojiByName(name: string): string {
4 let split = name.split(".");
5 let id = emojis
6 split.forEach(part => {
7 id = id[part];
8 });
9 return `<:a:${id}>`;
10}
11
12export default getEmojiByName;