diff --git a/commands/message/fun/bard.js b/commands/message/fun/bard.js index f321b58..e5ec724 100644 --- a/commands/message/fun/bard.js +++ b/commands/message/fun/bard.js @@ -33,7 +33,7 @@ module.exports = { let input = args.text; - let prompt = 'You are a friendly chat bot designed to help people.\n- You should always use gender neutral pronouns when possible.\n- Try to keep your responses within 2000-4000 characters. This isn\'t required for more in-depth and detailed answers.' + let prompt = 'You are a friendly chat bot designed to help people.\n- You should always use gender neutral pronouns when possible.\n- When answering a question, be concise and to the point.\n- Try to stay at around 500-1000 characters for most responses, unless more text is required to properly explain something.' if(args.prompt !== "") prompt = args.prompt // Get content if the user replies to anything diff --git a/commands/message/info/invite.js b/commands/message/info/invite.js index af6538d..81e67ef 100644 --- a/commands/message/info/invite.js +++ b/commands/message/info/invite.js @@ -3,7 +3,7 @@ const { createEmbed, formatPaginationEmbeds, page } = require("../../../labscore const { guildFeaturesField } = require("../../../labscore/utils/fields"); const { icon, highlight, timestamp, link, iconPill, iconLinkPill } = require("../../../labscore/utils/markdown"); const { editOrReply } = require("../../../labscore/utils/message"); -const { STATICS } = require("../../../labscore/utils/statics"); +const { STATICS, STATIC_ASSETS } = require("../../../labscore/utils/statics"); const { paginator } = require('../../../labscore/client'); @@ -33,7 +33,7 @@ module.exports = { iconLinkPill('gitlab', OPEN_SOURCE_REPOSITORY_URL, 'Source Code'), ].join('\n'), image: { - url: STATICS.embedSpacerInvite + url: STATIC_ASSETS.embed_invite_spacer } })}) try{ diff --git a/labscore/utils/embed.js b/labscore/utils/embed.js index e574581..350d681 100644 --- a/labscore/utils/embed.js +++ b/labscore/utils/embed.js @@ -1,5 +1,5 @@ const { COLORS } = require('../constants') -const { STATIC_ICONS, STATICS } = require('./statics') +const { STATIC_ICONS, STATICS, STATIC_ASSETS } = require('./statics') const embedTypes = Object.freeze({ "default": (context) => { @@ -92,7 +92,10 @@ const embedTypes = Object.freeze({ return { author: { iconUrl: STATIC_ICONS.ai_bard, - name: `Generating` + name: `​` + }, + image: { + url: STATIC_ASSETS.chat_loading }, color: COLORS.embed } @@ -105,7 +108,7 @@ module.exports.createEmbed = function(type, context, content){ if(!content) embedTypes[type](context) let emb = embedTypes[type](context) - if(["success","warning","error","loading","ai","ai_bard"].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 d2213e0..f2d663c 100644 --- a/labscore/utils/statics.js +++ b/labscore/utils/statics.js @@ -3,6 +3,16 @@ const { Hosts } = require('../api/endpoints') // Add static brand icons here // Update the revision id to break discord cache const Statics = Object.freeze({ + assets: { + chat_loading: { + file: "loading/02_chat_loading.47madop37as0.gif", + revision: 0 + }, + embed_invite_spacer: { + file: "misc/embed-spacer-botinvite.png", + revision: 0 + }, + }, brands: { applemaps: { file: "brands/applemaps.png", @@ -161,11 +171,7 @@ module.exports.STATICS = Object.freeze({ wikihow: staticAsset(Statics.brands.wikihow), wikipedia: staticAsset(Statics.brands.wikipedia), wolframalpha: staticAsset(Statics.brands.wolframalpha), - youtube: staticAsset(Statics.brands.youtube), - embedSpacerInvite: staticAsset({ - file: "misc/embed-spacer-botinvite.png", - revision: 0 - }) + youtube: staticAsset(Statics.brands.youtube) }) module.exports.STATIC_ICONS = Object.freeze({ @@ -176,4 +182,9 @@ module.exports.STATIC_ICONS = Object.freeze({ ai_bard: staticAsset(Statics.icons.ai_bard), ai_bard_idle: staticAsset(Statics.icons.ai_bard_idle), warning: staticAsset(Statics.icons.warning) +}) + +module.exports.STATIC_ASSETS = Object.freeze({ + chat_loading: staticAsset(Statics.assets.chat_loading), + embed_invite_spacer: staticAsset(Statics.assets.embed_invite_spacer) }) \ No newline at end of file