mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-18 02:47: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).`))
|
if(!args.text) return editOrReply(context, createEmbed("warning", context, `Missing Parameter (prompt).`))
|
||||||
|
|
||||||
try{
|
try{
|
||||||
let load = createEmbed("defaultNoFooter", context, {
|
let loadingEmbeds = [];
|
||||||
url: "https://bignutty.gitlab.io",
|
for (let i = 0; i < 4; i++) {
|
||||||
author: {
|
loadingEmbeds.push(createEmbed("defaultNoFooter", context, {
|
||||||
iconUrl: STATIC_ICONS.ai_image_processing,
|
url: "https://bignutty.gitlab.io",
|
||||||
name: "Generating images..."
|
author: {
|
||||||
},
|
iconUrl: STATIC_ICONS.ai_image_processing,
|
||||||
image: {
|
name: "Generating images..."
|
||||||
url: STATIC_ASSETS.image_loading
|
},
|
||||||
}
|
image: {
|
||||||
})
|
url: STATIC_ASSETS.image_loading_splash(Math.floor(Math.random()*10))
|
||||||
let loadingEmbeds = [load, load, load, load]
|
}
|
||||||
|
}))
|
||||||
|
};
|
||||||
|
|
||||||
await editOrReply(context, {embeds: loadingEmbeds});
|
await editOrReply(context, {embeds: loadingEmbeds});
|
||||||
|
|
||||||
|
|
|
@ -30,17 +30,19 @@ module.exports = {
|
||||||
if(!args.text) return editOrReply(context, createEmbed("warning", context, `Missing Parameter (prompt).`))
|
if(!args.text) return editOrReply(context, createEmbed("warning", context, `Missing Parameter (prompt).`))
|
||||||
|
|
||||||
try{
|
try{
|
||||||
let load = createEmbed("defaultNoFooter", context, {
|
let loadingEmbeds = [];
|
||||||
url: "https://bignutty.gitlab.io",
|
for (let i = 0; i < 4; i++) {
|
||||||
author: {
|
loadingEmbeds.push(createEmbed("defaultNoFooter", context, {
|
||||||
iconUrl: STATIC_ICONS.ai_image_processing,
|
url: "https://bignutty.gitlab.io",
|
||||||
name: "Generating images..."
|
author: {
|
||||||
},
|
iconUrl: STATIC_ICONS.ai_image_processing,
|
||||||
image: {
|
name: "Generating images..."
|
||||||
url: STATIC_ASSETS.image_loading
|
},
|
||||||
}
|
image: {
|
||||||
})
|
url: STATIC_ASSETS.image_loading_splash(Math.floor(Math.random()*10))
|
||||||
let loadingEmbeds = [load, load, load, load]
|
}
|
||||||
|
}))
|
||||||
|
};
|
||||||
|
|
||||||
await editOrReply(context, {embeds: loadingEmbeds});
|
await editOrReply(context, {embeds: loadingEmbeds});
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,10 @@ const Statics = Object.freeze({
|
||||||
file: "loading/image_loading_splash.2elegsql1j8k.png",
|
file: "loading/image_loading_splash.2elegsql1j8k.png",
|
||||||
revision: 250117
|
revision: 250117
|
||||||
},
|
},
|
||||||
|
image_loading_splash: {
|
||||||
|
file: "loading/splash_25/",
|
||||||
|
revision: 250129
|
||||||
|
},
|
||||||
embed_invite_spacer: {
|
embed_invite_spacer: {
|
||||||
file: "misc/embed-spacer-botinvite.png",
|
file: "misc/embed-spacer-botinvite.png",
|
||||||
revision: 0
|
revision: 0
|
||||||
|
@ -290,6 +294,7 @@ module.exports.STATIC_ASSETS = Object.freeze({
|
||||||
chat_loading: staticAsset(Statics.assets.chat_loading),
|
chat_loading: staticAsset(Statics.assets.chat_loading),
|
||||||
chat_loading_small: staticAsset(Statics.assets.chat_loading_small),
|
chat_loading_small: staticAsset(Statics.assets.chat_loading_small),
|
||||||
image_loading: staticAsset(Statics.assets.image_loading),
|
image_loading: staticAsset(Statics.assets.image_loading),
|
||||||
|
image_loading_splash: (index)=>`${Hosts.statics}assets/${Statics.assets.image_loading_splash.file}${index}.png?r=${Statics.assets.image_loading_splash.revision}`,
|
||||||
embed_invite_spacer: staticAsset(Statics.assets.embed_invite_spacer),
|
embed_invite_spacer: staticAsset(Statics.assets.embed_invite_spacer),
|
||||||
emoji_placeholder: staticAsset(Statics.assets.emoji_placeholder),
|
emoji_placeholder: staticAsset(Statics.assets.emoji_placeholder),
|
||||||
emoji_placeholder_large: staticAsset(Statics.assets.emoji_placeholder_large)
|
emoji_placeholder_large: staticAsset(Statics.assets.emoji_placeholder_large)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue