Merge pull request #4 from jcjordyn130/main

Fix command prefix parsing code in _handle_message
This commit is contained in:
a-bad-dev 2026-03-15 22:16:42 -03:00 committed by GitHub
commit c175fb05ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -378,7 +378,8 @@ class Server():
# Run CMDTHREAD # Run CMDTHREAD
threading.Thread(target = self._handle_command, args = (cmd, msg["target_channel"], )).start() threading.Thread(target = self._handle_command, args = (cmd, msg["target_channel"], )).start()
elif msg["params"][-1].startswith(self.bot_prefix):
if msg["params"][-1].startswith(self.bot_prefix):
# Get rid of the bot prefix # Get rid of the bot prefix
command = msg["params"][-1].strip(self.bot_prefix) command = msg["params"][-1].strip(self.bot_prefix)