Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Мут-апдейт
Browse files Browse the repository at this point in the history
– Добавил обратную связь от бота после мута или анмута по id
  • Loading branch information
PaveTranquil committed May 8, 2020
1 parent 1ae7c95 commit e75df5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,11 @@ def main():
if id == id_chat:
if text.split()[1].lower() == 'мут':
mute += [int(i) for i in text.split()[2:]]
msg(id_chat, 'На всех, кого вы написали, наложил великую печать бана! 😈')

elif text.split()[1].lower() == 'анмут':
mute = list(set(mute) - set([int(i) for i in text.split()[2:]]))
msg(id_chat, 'Великая печать бана снята. Удачи спамерам! 😎')

elif state_chat == '{"command":"request"}':
msg(id_chat, 'Решили запросить у кого-то деньги? У кого? Отправьте id пользователя.', keyboards.back())
Expand Down

0 comments on commit e75df5e

Please sign in to comment.