mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
add a slow service notice to dalle
This commit is contained in:
parent
46c9164a7e
commit
e3d4658353
1 changed files with 10 additions and 0 deletions
|
@ -21,6 +21,14 @@ module.exports = {
|
|||
run: async (context, args) => {
|
||||
let response = await editOrReply(context, { embeds: [createEmbed("loading", context, `Synthesizing images...`)] })
|
||||
|
||||
let noticeTimer = setTimeout(()=>{
|
||||
let emb = createEmbed("loading", context, `Synthesizing images...`)
|
||||
emb.footer = {
|
||||
text: "This might take several minutes to complete."
|
||||
};
|
||||
response.edit({ embeds: [ emb ] });
|
||||
}, 30000)
|
||||
|
||||
try{
|
||||
let t = Date.now();
|
||||
|
||||
|
@ -28,6 +36,8 @@ module.exports = {
|
|||
.send({
|
||||
prompt: args.query
|
||||
})
|
||||
|
||||
clearTimeout(noticeTimer)
|
||||
|
||||
let embeds = [];
|
||||
let files = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue