GithubHelp home page GithubHelp logo

discord-massban-bot's Introduction

Discord Massban Bot

This little bot can ban recently joined users to prevent/cleanup bot spam waves.

Public Bot

I'm hosting a public instance of this bot. You can invite it using this link. If you have questions or want to report bugs, use the issues tab.

MAKE SURE TO GRANT THE BOT BAN RIGHTS AND ENABLE ALL PRIVILEGED GATEWAY INTENTS!

Installation

Python 3.6+ required, only tested 3.8 and 3.11!

Install the requirements:

pip install -r requirements.txt

Copy and rename config.ini.example to config.ini and paste the discord bottoken and configure the list of roles that are allowed to use the bot.

Run the bot:

python bot.py

Usage

!botspam [number of minutes since joined (default is 60)] [number of days since account creation (optional)]

So if you want to ban every user that joined 120 minutes ago and only accounts that were created 2 weeks ago, use !botspam 120 14. You'll get a list of users that got selected. If you want to finally ban that list, click on the reaction. It'll take some time, depending on the amount of users. You'll get a message when the bot is finished.

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.