mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 13:43:06 -04:00
adjust shimmer style
This commit is contained in:
parent
8d9f4d8431
commit
220165c555
2 changed files with 15 additions and 2 deletions
|
@ -3,7 +3,7 @@ const { gpt } = require('#api');
|
|||
const { createEmbed } = require('#utils/embed')
|
||||
const { editOrReply } = require('#utils/message')
|
||||
const { iconPill, stringwrap, smallIconPill } = require('#utils/markdown')
|
||||
const { STATICS } = require('#utils/statics');
|
||||
const { STATICS, STATIC_ASSETS } = require('#utils/statics');
|
||||
const { hasFeature } = require('#utils/testing');
|
||||
|
||||
// TODO: Turn this into a general purpose permissions constant
|
||||
|
@ -48,7 +48,15 @@ module.exports = {
|
|||
}
|
||||
|
||||
try{
|
||||
await editOrReply(context, createEmbed("ai_custom", context, STATICS.openai))
|
||||
await editOrReply(context, createEmbed("defaultNoFooter", context, {
|
||||
author: {
|
||||
iconUrl: STATICS.openai,
|
||||
name: ``
|
||||
},
|
||||
image: {
|
||||
url: STATIC_ASSETS.chat_loading_small
|
||||
}
|
||||
}))
|
||||
|
||||
let res = await gpt(context, prompt, input)
|
||||
res = res.response;
|
||||
|
|
|
@ -8,6 +8,10 @@ const Statics = Object.freeze({
|
|||
file: "loading/05_chat_loading.7y2ji893rho0.gif",
|
||||
revision: 0
|
||||
},
|
||||
chat_loading_small: {
|
||||
file: "loading/03_chat_loading.7lqh9a8ljks0.gif",
|
||||
revision: 0
|
||||
},
|
||||
image_loading: {
|
||||
file: "loading/image_loading_splash.2elegsql1j8k.png",
|
||||
revision: 1
|
||||
|
@ -249,6 +253,7 @@ module.exports.STATIC_ICONS = Object.freeze({
|
|||
|
||||
module.exports.STATIC_ASSETS = Object.freeze({
|
||||
chat_loading: staticAsset(Statics.assets.chat_loading),
|
||||
chat_loading_small: staticAsset(Statics.assets.chat_loading_small),
|
||||
image_loading: staticAsset(Statics.assets.image_loading),
|
||||
embed_invite_spacer: staticAsset(Statics.assets.embed_invite_spacer),
|
||||
emoji_placeholder: staticAsset(Statics.assets.emoji_placeholder)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue