mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
🐛 fix(makeprompt.py): refactor condition to check if message is ignorable using a separate function for better readability and maintainability
This commit is contained in:
@@ -292,7 +292,7 @@ async def chat_process(self, message):
|
||||
return
|
||||
|
||||
# if the message starts with - or // it's a comment and we return
|
||||
if message.content.startswith("-") or message.content.startswith("//"):
|
||||
if is_ignorable(message.content):
|
||||
return
|
||||
try:
|
||||
await message.channel.trigger_typing()
|
||||
|
||||
Reference in New Issue
Block a user