Skip to content

Discord bot to automatically ban a user whose username contains a specific string.

Notifications You must be signed in to change notification settings

Whismirk/AutoBan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

AutoBan

Discord bot to automatically ban a user whose username contains a specific string.

Usage

  • If you don't have a dev app yet, create one on https://discord.com/developers/applications/.
  • Create a bot for your app. Save its token for later.
  • Grant priviliged gateway intents to your newly made bot (just tick the options).
  • Invite the bot on your server, with appropriate permissions (namely, read and ban).

Next :

  • If you don't have it yet, install python.
  • Install discord.py via pip (guide here).

Then, in autoban.py, removing the [ ] brackets :

  • Replace '[your_target_string]' with the specific word(s) you want the bot the ban. /!\ It is case insensitive by default, you need to remove '.lower()' if you don't want it to be.
  • Replace '[your_bot_token_here]' with your bot's private token.
  • Replace '[your_ban_reason_here]' with... self explanatory.

Finally, run autoban.py inside your terminal of choice. The bot will only work while the script is running.

Originally made to counter the spam of bots pointing to https://twitter.com/h0nde.

About

Discord bot to automatically ban a user whose username contains a specific string.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages