Added Endpoints and AJAX Helper Functions for emote management, as well as imporvements to link embedding.
This commit is contained in:
parent
b9283607d6
commit
255e6e0d7f
7 changed files with 63 additions and 27 deletions
|
|
@ -56,13 +56,13 @@ emoteSchema.statics.loadDefaults = async function(){
|
|||
//if the emote doesn't exist
|
||||
if(!foundEmote){
|
||||
const emoteDB = await _this.create(emote);
|
||||
console.log(`Loading default emote '${emote.name}' into DB from defaultEmote.json`);
|
||||
console.log(`Loading default emote [${emote.name}] into DB from defaultEmote.json`);
|
||||
}
|
||||
|
||||
}catch(err){
|
||||
if(emote != null){
|
||||
console.log(err);
|
||||
console.log(`Error loading emote '${emote.name}':`);
|
||||
console.log(`Error loading emote [${emote.name}]:`);
|
||||
}else{
|
||||
console.log("Error, null emote:");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue