This commit is contained in:
Dustin 2024-05-14 12:19:51 -04:00
parent 045ca6998c
commit df7c539b05

View File

@ -160,11 +160,11 @@ class ollamarama:
sender = event.sender sender = event.sender
sender_display = await self.display_name(sender) sender_display = await self.display_name(sender)
room_id = room.room_id 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 #check if the message was sent after joining and not by the bot
if message_time > self.join_time and sender != self.username: if message_time > self.join_time and sender != self.username:
user = await self.display_name(event.sender)
#admin commands #admin commands
if message == ".admins": if message == ".admins":
await self.send_message(room_id, f"Bot admins: {', '.join(self.admins)}") await self.send_message(room_id, f"Bot admins: {', '.join(self.admins)}")