Merge pull request #30 from h1ddenpr0cess20/dev

bug fix
This commit is contained in:
Dustin 2024-09-17 11:40:35 -04:00 committed by GitHub
commit a7188214e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -226,9 +226,10 @@ class ollamarama:
command = message[0] command = message[0]
if command in user_commands: if command in user_commands:
action = user_commands[command] action = user_commands[command]
await action()
if sender_display in self.admins and command in admin_commands: if sender_display in self.admins and command in admin_commands:
action = admin_commands[command] action = admin_commands[command]
await action() await action()
async def message_callback(self, room: MatrixRoom, event: RoomMessageText): async def message_callback(self, room: MatrixRoom, event: RoomMessageText):
if isinstance(event, RoomMessageText): if isinstance(event, RoomMessageText):