This commit is contained in:
Xargana 2025-05-09 22:11:53 +03:00
parent c0d5dd5249
commit 40c9d3ffa0
3 changed files with 7 additions and 84 deletions

View file

@ -80,12 +80,6 @@ class MessageHandler:
if message.author.bot:
return
# Check if the channel is in ignored channels list and message is not from bot user
if (message.author != self.bot.user and
hasattr(self, 'user_management_commands') and
self.user_management_commands.is_channel_ignored(message.channel.id)):
return
# Look for and replace time patterns (only for non-command messages)
if not message.content.startswith('.'):
original_content = message.content
@ -155,17 +149,9 @@ class MessageHandler:
await message.channel.send(f"Error executing command: {e}")
return
# User Management Commands
if content.startswith(".ignore"):
await self.user_management_commands.cmd_ignore(message)
elif content.startswith(".unignore"):
await self.user_management_commands.cmd_unignore(message)
elif content.startswith(".close"):
# User Management Commands - only keeping close and block
if content.startswith(".close"):
await self.user_management_commands.cmd_close(message)
elif content.startswith(".mute"):
await self.user_management_commands.cmd_mute(message)
elif content.startswith(".unmute"):
await self.user_management_commands.cmd_unmute(message)
elif content.startswith(".block"):
await self.user_management_commands.cmd_block(message)
elif content.startswith(".unblock"):