updates palm2 wording to match branding

This commit is contained in:
derpystuff 2023-10-15 21:13:49 +02:00
parent fb2d4dbb37
commit f0af222fa5
2 changed files with 5 additions and 4 deletions

View file

@ -78,6 +78,7 @@ module.exports = {
}) })
}catch(e){ }catch(e){
if(e.response.body?.message) return editOrReply(context, {embeds:[createEmbed("warning", context, e.response.body.message)]}) if(e.response.body?.message) return editOrReply(context, {embeds:[createEmbed("warning", context, e.response.body.message)]})
console.log(e) console.log(e)
return editOrReply(context, {embeds:[createEmbed("error", context, `Unable to generate text.`)]}) return editOrReply(context, {embeds:[createEmbed("error", context, `Unable to generate text.`)]})
} }

View file

@ -14,8 +14,8 @@ module.exports = {
label: 'text', label: 'text',
aliases: ['palm2'], aliases: ['palm2'],
metadata: { metadata: {
description: `${iconPill("generative_ai", "LIMITED TESTING")}\n\nTalk to Bard.`, description: `${iconPill("generative_ai", "LIMITED TESTING")}\n\nTalk to PaLM 2.`,
description_short: 'Chat with Palm2.', description_short: 'Chat with PaLM 2.',
examples: ['bard How many otter species are there?'], examples: ['bard How many otter species are there?'],
category: 'limited', category: 'limited',
usage: 'palm <input> [-prompt <prompt override>]' usage: 'palm <input> [-prompt <prompt override>]'
@ -73,7 +73,7 @@ module.exports = {
let description = [] let description = []
let files = []; 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) if(res.body.output.length <= 4000) description.push(res.body.output)
else { else {
@ -91,7 +91,7 @@ module.exports = {
}, },
description: description.join('\n'), description: description.join('\n'),
footer: { footer: {
text: `Palm2 • This information may be inaccurate or biased` text: `PaLM 2 • This information may be inaccurate or biased`
} }
})], })],
files files