mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 22:53:06 -04:00
update design, add bard word filter
This commit is contained in:
parent
32ef0811ab
commit
fb2d4dbb37
4 changed files with 18 additions and 5 deletions
|
@ -88,10 +88,10 @@ const embedTypes = Object.freeze({
|
|||
color: COLORS.embed
|
||||
}
|
||||
},
|
||||
"ai_bard": (context) => {
|
||||
"ai_custom": (context) => {
|
||||
return {
|
||||
author: {
|
||||
iconUrl: STATIC_ICONS.ai_bard,
|
||||
iconUrl: STATIC_ICONS.ai,
|
||||
name: ``
|
||||
},
|
||||
image: {
|
||||
|
@ -112,6 +112,10 @@ module.exports.createEmbed = function(type, context, content){
|
|||
emb.author.name = content
|
||||
return emb
|
||||
}
|
||||
|
||||
if(["ai_custom"].includes(type)){
|
||||
emb.author.iconUrl = content
|
||||
}
|
||||
|
||||
if(["errordetail"].includes(type)){
|
||||
emb.author.name = content.error
|
||||
|
|
|
@ -136,6 +136,10 @@ const Statics = Object.freeze({
|
|||
file: "icons/core/ico_notice_bard_idle.gif",
|
||||
revision: 0
|
||||
},
|
||||
ai_palm_idle: {
|
||||
file: "icons/core/ico_notice_palm_idle.png",
|
||||
revision: 0
|
||||
},
|
||||
warning: {
|
||||
file: "icons/core/ico_notice_warning.png",
|
||||
revision: 0
|
||||
|
@ -181,6 +185,7 @@ module.exports.STATIC_ICONS = Object.freeze({
|
|||
ai: staticAsset(Statics.icons.ai),
|
||||
ai_bard: staticAsset(Statics.icons.ai_bard),
|
||||
ai_bard_idle: staticAsset(Statics.icons.ai_bard_idle),
|
||||
ai_palm_idle: staticAsset(Statics.icons.ai_palm_idle),
|
||||
warning: staticAsset(Statics.icons.warning)
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue