From cc5fd3aa7a00b33767b8711e6d8ce01811cbed8c Mon Sep 17 00:00:00 2001 From: Paillat Date: Tue, 15 Aug 2023 11:05:52 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(makeprompt.py):=20refactor?= =?UTF-8?q?=20condition=20to=20check=20if=20message=20is=20ignorable=20usi?= =?UTF-8?q?ng=20a=20separate=20function=20for=20better=20readability=20and?= =?UTF-8?q?=20maintainability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/makeprompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/makeprompt.py b/src/makeprompt.py index d5c1f0b..29f1e77 100644 --- a/src/makeprompt.py +++ b/src/makeprompt.py @@ -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()