Skip to content

Commit

Permalink
work without tagging in dms
Browse files Browse the repository at this point in the history
  • Loading branch information
f1delius committed Apr 20, 2024
1 parent 6771afe commit cd36811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async def message_callback(self, room: MatrixRoom, event: RoomMessageText) -> No
if self.bot_username in event.formatted_body:
tagged = True

if self.user_id != event.sender and tagged:
if self.user_id != event.sender and (tagged or room.is_group):
if self.owner_id != sender_id and self.msg_limit[sender_id] > 10:
await send_room_message(
self.client,
Expand Down

0 comments on commit cd36811

Please sign in to comment.