🐛 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:
2023-08-15 11:05:52 +02:00
parent f04a04801b
commit cc5fd3aa7a

View File

@@ -292,7 +292,7 @@ async def chat_process(self, message):
return return
# if the message starts with - or // it's a comment and we 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 return
try: try:
await message.channel.trigger_typing() await message.channel.trigger_typing()