This commit is contained in:
Aevann1 2022-03-01 01:30:44 +02:00
parent 79dbfc8edd
commit bb3c2a3036
10 changed files with 48 additions and 151 deletions

View file

@ -67,7 +67,11 @@ def NOTIFY_USERS(text, v):
if id == 0: continue
if word in text.lower() and id not in notify_users and v.id != id: notify_users.add(id)
captured = []
for i in mention_regex.finditer(text):
if i.group(0) in captured: continue
captured.append(i.group(0))
user = get_user(i.group(2), graceful=True)
if user and not v.any_block_exists(user): notify_users.add(user.id)