mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
update loading sprite
This commit is contained in:
parent
75b4586171
commit
adde718ed9
2 changed files with 11 additions and 1 deletions
|
@ -47,7 +47,12 @@ module.exports = {
|
||||||
if(!IMAGE_STYLES.includes(args.style.toLowerCase())) return editOrReply(context, createEmbed("warning", context, `Invalid Parameter (style).`))
|
if(!IMAGE_STYLES.includes(args.style.toLowerCase())) return editOrReply(context, createEmbed("warning", context, `Invalid Parameter (style).`))
|
||||||
|
|
||||||
try{
|
try{
|
||||||
await editOrReply(context, createEmbed("ai", context, "Generating Image..."))
|
await editOrReply(context, createEmbed("defaultNoFooter", context, {
|
||||||
|
author: {
|
||||||
|
iconUrl: STATIC_ICONS.ai_image_processing,
|
||||||
|
name: "Generating images..."
|
||||||
|
}
|
||||||
|
}))
|
||||||
|
|
||||||
let res = await aiWallpaper(context, args.text, args.style.toLowerCase());
|
let res = await aiWallpaper(context, args.text, args.style.toLowerCase());
|
||||||
|
|
||||||
|
|
|
@ -168,6 +168,10 @@ const Statics = Object.freeze({
|
||||||
file: "icons/flamingo/image_generation.png",
|
file: "icons/flamingo/image_generation.png",
|
||||||
revision: 2
|
revision: 2
|
||||||
},
|
},
|
||||||
|
ai_image_processing: {
|
||||||
|
file: "icons/flamingo/image_processing.gif",
|
||||||
|
revision: 0
|
||||||
|
},
|
||||||
warning: {
|
warning: {
|
||||||
file: "icons/core/ico_notice_warning.png",
|
file: "icons/core/ico_notice_warning.png",
|
||||||
revision: 3
|
revision: 3
|
||||||
|
@ -221,6 +225,7 @@ module.exports.STATIC_ICONS = Object.freeze({
|
||||||
ai_palm_idle: staticAsset(Statics.icons.ai_palm_idle),
|
ai_palm_idle: staticAsset(Statics.icons.ai_palm_idle),
|
||||||
ai_summary: staticAsset(Statics.icons.ai_summary),
|
ai_summary: staticAsset(Statics.icons.ai_summary),
|
||||||
ai_image: staticAsset(Statics.icons.ai_image),
|
ai_image: staticAsset(Statics.icons.ai_image),
|
||||||
|
ai_image_processing: staticAsset(Statics.icons.ai_image_processing),
|
||||||
warning: staticAsset(Statics.icons.warning)
|
warning: staticAsset(Statics.icons.warning)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue