From 10434adad478d21bbb834a5803125db9f54c9d6c Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 2 Apr 2025 02:21:41 -0400 Subject: Added i18n (basic); Blacklist feature; Put error msg into a file --- bot/src/plugins/chatbot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bot/src/plugins') 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.]()\nMessage:\n\`\`\`${err.stack}\`\`\``); + await loadingMessage.edit(error(err.stack)); } } -- cgit v1.2.3