Giter Club home page Giter Club logo

antideletedaccountsbot's Introduction

AntiDeletedAccountsBot (ADAB)

Automatically kick deleted accounts

Based on uniborg, a pluggable asyncio Telegram userbot based on Telethon.

Installation

  1. Clone uniborg
git clone https://github.com/Qwerty-Space/uniborg.git AntiDeletedAccountsBot
cd uniborg
  1. Remove unwanted plugins or the plugin directories (stdplugins, and botplugins)

  2. Add your config into config.py, following the instructions in config.example.py

id = 12345  # Your API ID
hash = "11223344556677889900AABBCCDDEEFF"  # API Hash
admins = 12346789  # Any "admins" for the bot that will be able to reload the plugins
  1. Clone ADAB
cd botplugins
git clone https://github.com/Qwerty-Space/AntiDeletedAccountsBot.git .
  1. Run python stdbot.py

FAQ

  1. A user deleted their account, why hasn't the bot kicked them yet?
  • ADAB only checks for deleted accounts ONCE per hour at most. And it will only check for deleted accounts if a message was sent to the group. This behaviour will keep the bot from slowing down, and filters out inactive groups.
  1. Does ADAB kick or ban deleted accounts?
  • ADAB kicks deleted accounts (ban + unban).
  1. Does ADAB work in channels?
  • Yes. It doesn't matter what permission you give it in broadcast channels, all channel admins have the permission to kick/ban.
  1. How do I run it persistently, or in the background?
  • Use something like tmux: tmux new -ds AntiDeletedAccountsBot "python3 stdbot.py"

See running example on Telegram @AntiDeletedAccounts_Bot

antideletedaccountsbot's People

Contributors

qwerty-space avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.