From 1c48c46eb2e780241e05891cff0410528e456252 Mon Sep 17 00:00:00 2001 From: WahPlus Date: Mon, 20 Apr 2026 07:03:01 +0300 Subject: [PATCH] Added filtering by user and channel --- main.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index c23a0fc..23dd73c 100644 --- a/main.py +++ b/main.py @@ -26,7 +26,9 @@ condition_tokens = { "^" } variable_tokens = { - "msg" + "msg", + "userid", + "channelid" } match_tokens = { "has", @@ -184,6 +186,10 @@ async def on_message(message: nextcord.Message): if type(condition_group) == list: if condition_group[0] == "msg": comparing_var = message.content + if condition_group[0] == "userid": + comparing_var = str(message.author.id) + if condition_group[0] == "channelid": + comparing_var = str(message.channel.id) previous_condition = condition