Added Endpoints and AJAX Helper Functions for emote management, as well as imporvements to link embedding.

This commit is contained in:
rainbow napkin 2024-12-17 21:51:34 -05:00
parent b9283607d6
commit 255e6e0d7f
7 changed files with 63 additions and 27 deletions

View file

@ -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:");
}