diff --git a/commands/message/fun/chat.js b/commands/message/fun/chat.js index 0dd784a..d3b0bda 100644 --- a/commands/message/fun/chat.js +++ b/commands/message/fun/chat.js @@ -31,7 +31,7 @@ module.exports = { if(args.prompt !== "") prompt = args.prompt try{ - await editOrReply(context, createEmbed("typing", context, "Generating response...")) + await editOrReply(context, createEmbed("ai", context, "Generating response...")) let res = await superagent.post(`${process.env.AI_SERVER}/openai`) .set({ diff --git a/commands/message/fun/disstrack.js b/commands/message/fun/disstrack.js index 24eb91f..d9d2166 100644 --- a/commands/message/fun/disstrack.js +++ b/commands/message/fun/disstrack.js @@ -24,7 +24,7 @@ module.exports = { context.triggerTyping(); if(!args.text) return editOrReply(context, {embeds:[createEmbed("warning", context, `Missing Parameter (text).`)]}) try{ - await editOrReply(context, createEmbed("typing", context, "Generating response...")) + await editOrReply(context, createEmbed("ai", context, "Generating response...")) let res = await superagent.post(`${process.env.AI_SERVER}/openai`) .set({ diff --git a/labscore/utils/embed.js b/labscore/utils/embed.js index ffb0253..568a7e4 100644 --- a/labscore/utils/embed.js +++ b/labscore/utils/embed.js @@ -79,11 +79,11 @@ const embedTypes = Object.freeze({ color: COLORS.embed } }, - "typing": (context) => { + "ai": (context) => { return { author: { - iconUrl: STATIC_ICONS.typing, - name: `Loading` + iconUrl: STATIC_ICONS.ai, + name: `Generating` }, color: COLORS.embed } @@ -96,7 +96,7 @@ module.exports.createEmbed = function(type, context, content){ if(!content) embedTypes[type](context) let emb = embedTypes[type](context) - if(["success","warning","error","loading","typing"].includes(type)){ + if(["success","warning","error","loading","ai"].includes(type)){ emb.author.name = content return emb } diff --git a/labscore/utils/statics.js b/labscore/utils/statics.js index df43459..98b0b1c 100644 --- a/labscore/utils/statics.js +++ b/labscore/utils/statics.js @@ -102,9 +102,9 @@ const Statics = Object.freeze({ file: "icons/core/ico_notice_loading.gif", revision: 0 }, - typing: { - file: "icons/core/ico_notice_typing.gif", - revision: 1 + ai: { + file: "icons/core/ico_notice_ai.gif", + revision: 2 }, warning: { file: "icons/core/ico_notice_warning.png", @@ -149,6 +149,6 @@ module.exports.STATIC_ICONS = Object.freeze({ adult: staticAsset(Statics.icons.adult), error: staticAsset(Statics.icons.error), loading: staticAsset(Statics.icons.loading), - typing: staticAsset(Statics.icons.typing), + ai: staticAsset(Statics.icons.ai), warning: staticAsset(Statics.icons.warning) }) \ No newline at end of file