Skip to content

Commit 0a9fa31

Browse files
Update rdl.py
1 parent 868be35 commit 0a9fa31

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

utils/rdl.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ async def rdl_emoji(client: Client, message: Message):
5151
async def rdl(client: Client, update: MessageReactionsUpdated):
5252
tchat = db.get("custom.rdl", "chat_id", default="me")
5353
temoji = db.get("custom.rdl", "emoji", default="🌚")
54-
if not tchat or not update.recent_reactions:
54+
if (
55+
not tchat
56+
or not update.recent_reactions
57+
or not update.recent_reactions[0].from_user.is_self
58+
):
5559
return
5660
reaction: PeerReaction = update.recent_reactions[0]
5761
if reaction.reaction.emoji == temoji:

0 commit comments

Comments
 (0)