Queer European MD passionate about IT

Breaking Italy Club bot

Davte 2663f44339 Instructions 3 年之前
bic_bot 3dea282f59 Backwards-compatible whitelist (list of Telegram usernames) 3 年之前
.gitignore bce5c285a3 Create bic_bot and handle telegram roles and privileges 3 年之前
LICENSE 8fa1737faf Initial commit 3 年之前
README.md 2663f44339 Instructions 3 年之前
requirements.txt fc0b29709a Allow users to link an email to their Telegram account. If their email is listed in the patrons list, send them an invite link 3 年之前
run_me.sh 706de9acf5 Instructions 3 年之前

README.md

bic_bot

Breaking Italy Club bot

Instructions

  • Get a Telegram bot API token (@botfather), allow groups and set the bot group privacy to off.
  • Install bic_bot

    git clone https://gogs.davte.it/Davte/bic_bot.git
    cd bic_bot
    bash ./run_me.sh
    
  • Add the bot to the BIC chat as administrator

  • Write /set_chat in the chat

  • Send the bot a csv file named "patrons.csv" with patrons' emails

    person@example.com,
    someone@gmail.com,
    [...]
    

    The csv file must be sent periodically.

  • [NOT YET IMPLEMENTED] Using Patreon's API, the patrons list will be automatically downloaded from the server

  • Users can link their email to their Telegram account automatically. A confirmation email will help to verify the association. When their email gets whitelisted, users are sent an invite link.

Functioning

  • Whenever a person joins the chat, the bot will check whether their Telegram account is linked to an email listed in the patrons list. If not, the user will be kicked out.
  • Whenever an email is removed from the white list, the linked Telegram account will be kicked out.
  • Any user can automatically link their email to their Telegram account. If their email is white-listed, they can join the chat.

User manual

  • Start the bot and write /email your_email@example.com
  • Click the verification link in the mail (also check the SPAM folder!)
  • Wait for the invitation link. It will be available as soon as your patron status is verified by the staff

Credits

This davtelepot-based bot has been developed by @Davte. No official endorsement has been given by Breaking Italy.