Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 836 Bytes

File metadata and controls

31 lines (20 loc) · 836 Bytes

ChannelBan

This bot requires Python 3.10 or later.

This bot watches a channel and kicks users if they post in it (with configurable role exclusions).

This bot requires the Server Members and Message Content intents configured in the dev portal.

In guilds it requires the bot scope, Guild Install, and the following permissions: View Channels, Read Message History, Moderate Members, Manage Messages and Kick Members.

Sample invite link:

https://discord.com/oauth2/authorize?client_id=<YOUR_CLIENT_ID>&permissions=1099511702530&integration_type=0&scope=bot

To run:

cd channelbans/
cp .env.example .env

edit .env with all the values specified in the comments.

pipenv is recommended.

pipenv install
pipenv run bot