mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-18 10:57:05 -04:00
use random splashes
This commit is contained in:
parent
2182947228
commit
3fb5a69561
3 changed files with 31 additions and 22 deletions
|
@ -27,17 +27,19 @@ module.exports = {
|
|||
if(!args.text) return editOrReply(context, createEmbed("warning", context, `Missing Parameter (prompt).`))
|
||||
|
||||
try{
|
||||
let load = createEmbed("defaultNoFooter", context, {
|
||||
url: "https://bignutty.gitlab.io",
|
||||
author: {
|
||||
iconUrl: STATIC_ICONS.ai_image_processing,
|
||||
name: "Generating images..."
|
||||
},
|
||||
image: {
|
||||
url: STATIC_ASSETS.image_loading
|
||||
}
|
||||
})
|
||||
let loadingEmbeds = [load, load, load, load]
|
||||
let loadingEmbeds = [];
|
||||
for (let i = 0; i < 4; i++) {
|
||||
loadingEmbeds.push(createEmbed("defaultNoFooter", context, {
|
||||
url: "https://bignutty.gitlab.io",
|
||||
author: {
|
||||
iconUrl: STATIC_ICONS.ai_image_processing,
|
||||
name: "Generating images..."
|
||||
},
|
||||
image: {
|
||||
url: STATIC_ASSETS.image_loading_splash(Math.floor(Math.random()*10))
|
||||
}
|
||||
}))
|
||||
};
|
||||
|
||||
await editOrReply(context, {embeds: loadingEmbeds});
|
||||
|
||||
|
|
|
@ -30,17 +30,19 @@ module.exports = {
|
|||
if(!args.text) return editOrReply(context, createEmbed("warning", context, `Missing Parameter (prompt).`))
|
||||
|
||||
try{
|
||||
let load = createEmbed("defaultNoFooter", context, {
|
||||
url: "https://bignutty.gitlab.io",
|
||||
author: {
|
||||
iconUrl: STATIC_ICONS.ai_image_processing,
|
||||
name: "Generating images..."
|
||||
},
|
||||
image: {
|
||||
url: STATIC_ASSETS.image_loading
|
||||
}
|
||||
})
|
||||
let loadingEmbeds = [load, load, load, load]
|
||||
let loadingEmbeds = [];
|
||||
for (let i = 0; i < 4; i++) {
|
||||
loadingEmbeds.push(createEmbed("defaultNoFooter", context, {
|
||||
url: "https://bignutty.gitlab.io",
|
||||
author: {
|
||||
iconUrl: STATIC_ICONS.ai_image_processing,
|
||||
name: "Generating images..."
|
||||
},
|
||||
image: {
|
||||
url: STATIC_ASSETS.image_loading_splash(Math.floor(Math.random()*10))
|
||||
}
|
||||
}))
|
||||
};
|
||||
|
||||
await editOrReply(context, {embeds: loadingEmbeds});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue