update bard design

This commit is contained in:
derpystuff 2023-10-10 17:59:34 +02:00
parent 11b0512c01
commit 8fd752b9b0
3 changed files with 20 additions and 21 deletions

View file

@ -105,7 +105,7 @@ module.exports.createEmbed = function(type, context, content){
if(!content) embedTypes[type](context)
let emb = embedTypes[type](context)
if(["success","warning","error","loading","ai"].includes(type)){
if(["success","warning","error","loading","ai","ai_bard"].includes(type)){
emb.author.name = content
return emb
}
@ -116,7 +116,7 @@ module.exports.createEmbed = function(type, context, content){
return emb
}
if(content && content.footer && !content.footer.iconUrl) content.footer.iconUrl = STATICS.labscore
if(content && content.footer && !content.footer.iconUrl && type !== "defaultNoFooter") content.footer.iconUrl = STATICS.labscore
if(["image"].includes(type)){
if(content.url.includes('://')){

View file

@ -118,6 +118,10 @@ const Statics = Object.freeze({
file: "icons/core/ico_notice_bard_spark.gif",
revision: 0
},
ai_bard_idle: {
file: "icons/core/ico_notice_bard_idle.gif",
revision: 0
},
warning: {
file: "icons/core/ico_notice_warning.png",
revision: 0
@ -165,5 +169,6 @@ module.exports.STATIC_ICONS = Object.freeze({
loading: staticAsset(Statics.icons.loading),
ai: staticAsset(Statics.icons.ai),
ai_bard: staticAsset(Statics.icons.ai_bard),
ai_bard_idle: staticAsset(Statics.icons.ai_bard_idle),
warning: staticAsset(Statics.icons.warning)
})