master
Aevann1 2022-03-02 06:27:53 +02:00
parent a2019ff48f
commit cc869880f3
1 changed files with 5 additions and 3 deletions

View File

@ -211,6 +211,7 @@ def add_mod(v, sub):
mod = Mod(user_id=user.id, sub=sub)
g.db.add(mod)
if v.id != user.id:
send_repeatable_notification(user.id, f"@{v.username} has added you as a mod to /s/{sub}")
g.db.commit()
@ -245,6 +246,7 @@ def remove_mod(v, sub):
g.db.delete(mod)
if v.id != user.id:
send_repeatable_notification(user.id, f"@{v.username} has removed you as a mod from /s/{sub}")
g.db.commit()