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/events/InteractionCreate.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bot/src/events/InteractionCreate.js') diff --git a/bot/src/events/InteractionCreate.js b/bot/src/events/InteractionCreate.js index 976b995..387c775 100644 --- a/bot/src/events/InteractionCreate.js +++ b/bot/src/events/InteractionCreate.js @@ -1,9 +1,6 @@ import { Events, MessageFlags } from 'discord.js'; import { Analytics } from '../plugins/analytics.js'; - -function error(e) { - return `Something went wrong. [Submit an issue at the AleeBot repository.]()\nMessage:\n\`\`\`js\n${e.stack}\`\`\``; -} +import { error } from '../storage/functions.js'; export default { name: Events.InteractionCreate, -- cgit v1.2.3