From df7c539b058c748c6787abad8b03a23808b97540 Mon Sep 17 00:00:00 2001 From: Dustin Date: Tue, 14 May 2024 12:19:51 -0400 Subject: [PATCH] bug fix --- ollamarama.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ollamarama.py b/ollamarama.py index cd0bfef..298e47f 100644 --- a/ollamarama.py +++ b/ollamarama.py @@ -160,11 +160,11 @@ class ollamarama: sender = event.sender sender_display = await self.display_name(sender) room_id = room.room_id - user = await self.display_name(event.sender) + #check if the message was sent after joining and not by the bot if message_time > self.join_time and sender != self.username: - + user = await self.display_name(event.sender) #admin commands if message == ".admins": await self.send_message(room_id, f"Bot admins: {', '.join(self.admins)}")