Skip to content

Feature/18/add block command #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Math-O5
Copy link
Contributor

@Math-O5 Math-O5 commented Feb 20, 2021

Resolve #18

Add block command

Changes

  • Add arg GetbyUsername "active"
  • When starts, check if user is blocked

Admin can block a user by username; user cannot create the account again.

fix #18
@Math-O5 Math-O5 requested review from vitor-sanc and Luifr February 20, 2021 22:20
@Luifr
Copy link
Contributor

Luifr commented Mar 25, 2021

Não precisa fazer um check "global" se o usuario esta bloqueado? Pelo que eu vi ele so checa no /start (a nao ser que eu deixei algo passar (é possivel))

Inves de ficar colocando um if em cada comando da pra por um if antes da função que roda qualquer comando

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Novo comando: /block @username
2 participants