mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-23 21:37:07 -04:00
update bard design
This commit is contained in:
parent
11b0512c01
commit
8fd752b9b0
3 changed files with 20 additions and 21 deletions
|
@ -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('://')){
|
||||
|
|
|
@ -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)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue