mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06: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
|
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user