From f0af222fa5cabb5d415211ab33473a5b9accac9b Mon Sep 17 00:00:00 2001
From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com>
Date: Sun, 15 Oct 2023 21:13:49 +0200
Subject: [PATCH] updates palm2 wording to match branding
---
commands/message/fun/bard.js | 1 +
commands/message/fun/palm.js | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/commands/message/fun/bard.js b/commands/message/fun/bard.js
index be163c6..f07be7d 100644
--- a/commands/message/fun/bard.js
+++ b/commands/message/fun/bard.js
@@ -78,6 +78,7 @@ module.exports = {
})
}catch(e){
if(e.response.body?.message) return editOrReply(context, {embeds:[createEmbed("warning", context, e.response.body.message)]})
+
console.log(e)
return editOrReply(context, {embeds:[createEmbed("error", context, `Unable to generate text.`)]})
}
diff --git a/commands/message/fun/palm.js b/commands/message/fun/palm.js
index 0ce6100..b07fb7b 100644
--- a/commands/message/fun/palm.js
+++ b/commands/message/fun/palm.js
@@ -14,8 +14,8 @@ module.exports = {
label: 'text',
aliases: ['palm2'],
metadata: {
- description: `${iconPill("generative_ai", "LIMITED TESTING")}\n\nTalk to Bard.`,
- description_short: 'Chat with Palm2.',
+ description: `${iconPill("generative_ai", "LIMITED TESTING")}\n\nTalk to PaLM 2.`,
+ description_short: 'Chat with PaLM 2.',
examples: ['bard How many otter species are there?'],
category: 'limited',
usage: 'palm [-prompt ]'
@@ -73,7 +73,7 @@ module.exports = {
let description = []
let files = [];
- if(!res.body.output) return editOrReply(context, {embeds:[createEmbed("error", context, `Bard returned an error. Try again later.`)]})
+ if(!res.body.output) return editOrReply(context, {embeds:[createEmbed("error", context, `PaLM 2 returned an error. Try again later.`)]})
if(res.body.output.length <= 4000) description.push(res.body.output)
else {
@@ -91,7 +91,7 @@ module.exports = {
},
description: description.join('\n'),
footer: {
- text: `Palm2 • This information may be inaccurate or biased`
+ text: `PaLM 2 • This information may be inaccurate or biased`
}
})],
files