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

Add /rban command allowing remote bans #13

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

Add /rban command allowing remote bans #13

wants to merge 3 commits into from

Commits on Mar 31, 2018

  1. Add /rban command allowing remote bans

    Sudo users can remotely ban members from chats containing the bot
    Format for use: /rban <@username/userID> <chatID>
    
    Signed-off-by: ATechnoHazard <[email protected]>
    ATechnoHazard committed Mar 31, 2018
    Configuration menu
    Copy the full SHA
    ec390ee View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2018

  1. Update with the requested changes

    1. Use `if not` and return immediately
    2. Add checks for private chat and bot admin+restrict status
    3. Remove useless "" and log
    4. Add more exception handling.
    
    Signed-off-by: ATechnoHazard <[email protected]>
    ATechnoHazard committed Apr 15, 2018
    Configuration menu
    Copy the full SHA
    73c6497 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2018

  1. Update with requested changes

    * Fix de-morgan logic
    * Add `split()` to chat_id to ignore text after the chat id
    * Refactor exception handling, like in global_bans module
    * Add a missing import
    
    Signed-off-by: ATechnoHazard <[email protected]>
    ATechnoHazard committed May 10, 2018
    Configuration menu
    Copy the full SHA
    2134d95 View commit details
    Browse the repository at this point in the history