mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 22:53:06 -04:00
- update chat response to not be in a codeblock so markdown works
- update disstrack footer
This commit is contained in:
parent
264c6469d6
commit
44ea5374d2
2 changed files with 8 additions and 2 deletions
|
@ -7,6 +7,8 @@ const { codeblock, iconPill } = require('../../../labscore/utils/markdown')
|
|||
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
const { canUseLimitedTestCommands } = require('../utils/testing')
|
||||
const { Regexes } = require('detritus-client/lib/utils/markup')
|
||||
const { DiscordRegexNames } = require('detritus-client/lib/constants')
|
||||
|
||||
module.exports = {
|
||||
name: 'chat',
|
||||
|
@ -41,8 +43,12 @@ module.exports = {
|
|||
temperature: 0.6,
|
||||
model: "CHATGPT"
|
||||
})
|
||||
|
||||
let description = [codeblock("ansi", ["👤 " + format(args.text, "cyan")])]
|
||||
description.push(res.body.output.substr(0, 2000 - args.text.length))
|
||||
|
||||
return editOrReply(context, {embeds:[createEmbed("default", context, {
|
||||
description: codeblock("ansi", ["👤 " + format(args.text, "cyan") + "\n🤖 " + res.body.output.substr(0, 2000 - args.text.length)]),
|
||||
description: description.join('\n').substr(),
|
||||
footer: {
|
||||
text: `This information may be inaccurate or biased • ${context.application.name}`
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ module.exports = {
|
|||
return editOrReply(context, {embeds:[createEmbed("default", context, {
|
||||
description: codeblock("ansi", [res.body.output.substr(0, 2020)]),
|
||||
footer: {
|
||||
text: `This information may be inaccurate or biased • ${context.application.name}`
|
||||
text: `🗣🗣📢🔥🔥🔥🔥💯 • ${context.application.name}`
|
||||
}
|
||||
})]})
|
||||
}catch(e){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue