mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
🐛 fix(makeprompt.py): change condition to check if the message is from the bot user by comparing author id to improve accuracy
🔥 chore(makeprompt.py): remove unnecessary comment about ignoring messages from bots 🔥 chore(makeprompt.py): remove unnecessary comment about ignoring messages from guild or dm channel not in the database
This commit is contained in:
@@ -181,11 +181,9 @@ async def chatgpt_process(
|
||||
|
||||
|
||||
async def chat_process(self, message):
|
||||
# if the message is from a bot, we ignore it
|
||||
if message.author.bot:
|
||||
if message.author.id == self.bot.user.id:
|
||||
return
|
||||
|
||||
# if the guild or the dm channel is not in the database, we ignore it
|
||||
if isinstance(message.channel, discord.DMChannel):
|
||||
try:
|
||||
curs_data.execute(
|
||||
|
||||
Reference in New Issue
Block a user