dynamically load emotes from configs/emotes.json

merge-requests/1/merge
Matthew 2020-04-14 21:18:44 -04:00
parent 5d9b1765e6
commit cbc06a508d
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
2 changed files with 18 additions and 3 deletions

View File

@ -1,5 +1,6 @@
import { Member, Message, Guild } from 'eris';
import { Client, Command } from '.';
import { statusMessages as emotes } from '../configs/emotes.json';
export default class Util {
public client: Client;
@ -10,9 +11,9 @@ export default class Util {
get emojis() {
return {
SUCCESS: '<:modSuccess:578750988907970567>',
LOADING: '<a:modloading:588607353935364106>',
ERROR: '<:modError:578750737920688128>',
SUCCESS: emotes.success,
LOADING: emotes.loading,
ERROR: emotes.error,
};
}

14
src/configs/emotes.json Normal file
View File

@ -0,0 +1,14 @@
{
"whois": {
"titleAndDepartment": "<:loc:607695848612167700>",
"email": "<:email:699786452267040878>",
"gitlab": "<:gitlab:699788655748841492>",
"github": "<:github:699786469404835939>",
"bio": "<:bio:699786408193294416>"
},
"statusMessages": {
"success": "<:modSuccess:578750988907970567>",
"loading": "<a:modloading:588607353935364106>",
"error": "<:modError:578750737920688128>"
}
}