diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-23 01:39:11 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-23 01:39:11 -0400 |
| commit | d7c46a9eae28046bb26da182abc298dc18ed5a10 (patch) | |
| tree | a1f9955a757b150b88ed5398ef851ab2d1d4a46b /bot/src/events/MessageCreate.js | |
| parent | b60e681998a456adecb93b5fe04b66ad4ac9abb6 (diff) | |
| download | AleeBot-d7c46a9eae28046bb26da182abc298dc18ed5a10.tar.gz AleeBot-d7c46a9eae28046bb26da182abc298dc18ed5a10.tar.bz2 AleeBot-d7c46a9eae28046bb26da182abc298dc18ed5a10.zip | |
Replacing Astro with Next.JS; Prefix warning; Consistent env vars
Diffstat (limited to 'bot/src/events/MessageCreate.js')
| -rw-r--r-- | bot/src/events/MessageCreate.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bot/src/events/MessageCreate.js b/bot/src/events/MessageCreate.js index 4895ab2..ab75a62 100644 --- a/bot/src/events/MessageCreate.js +++ b/bot/src/events/MessageCreate.js @@ -1,5 +1,6 @@ import { Events } from 'discord.js'; import { ChatBot } from '../plugins/chatbot.js'; +import { prefix, prefixNotice } from '../storage/consts.js'; export default { name: Events.MessageCreate, @@ -15,5 +16,9 @@ export default { if (!args) return; await ChatBot(msg, args); } + + if (prefixNotice && msg.content.startsWith(prefix)) { + return await msg.reply('# :warning: **AleeBot no longer uses the prefix system.**\n## Please use the new slash command system.'); + } } }; |
