diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-04-02 02:21:41 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-04-02 02:21:41 -0400 |
| commit | 10434adad478d21bbb834a5803125db9f54c9d6c (patch) | |
| tree | e1159a26948d24c2a065dfd15f71b64970515930 /bot/src/plugins | |
| parent | 657599acccf351c7c9366cec9f648b7496c89bdb (diff) | |
| download | AleeBot-10434adad478d21bbb834a5803125db9f54c9d6c.tar.gz AleeBot-10434adad478d21bbb834a5803125db9f54c9d6c.tar.bz2 AleeBot-10434adad478d21bbb834a5803125db9f54c9d6c.zip | |
Added i18n (basic); Blacklist feature; Put error msg into a filebeta
Diffstat (limited to 'bot/src/plugins')
| -rw-r--r-- | bot/src/plugins/chatbot.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/src/plugins/chatbot.js b/bot/src/plugins/chatbot.js index a799738..f60b045 100644 --- a/bot/src/plugins/chatbot.js +++ b/bot/src/plugins/chatbot.js @@ -1,6 +1,7 @@ import { ollamaGlobal } from '../storage/consts.js'; import { ollama } from '../utils/ollama.js'; import { AttachmentBuilder } from 'discord.js'; +import { error } from '../storage/functions.js'; import { guildSettings } from '../db/models/guild-settings.js'; import 'dotenv/config'; @@ -28,6 +29,6 @@ export async function ChatBot(msg, args) { } catch (err) { console.error(err); - await loadingMessage.edit(`Something went wrong. [Submit an issue at the AleeBot repository.](<https://github.com/Alee14/AleeBot/issues>)\nMessage:\n\`\`\`${err.stack}\`\`\``); + await loadingMessage.edit(error(err.stack)); } } |
