A Discord bot that can automatically assign roles based on what invite URL was used
For more on this bot and all the rest of the Eco Community bots, check out this post.
- Detect which user joined via which invite link
- Log messages when users join channel
- Assign roles when user joined
- Show stats for invite links
- Install Docker
- Execute
docker-compose up -d
- Install requirements from
requirements.txt
forPython 3
- Copy and update settings in
config.example.py
- Add
LOG_CHANNEL_ID
toconfig.py
, to this channel will be posted users when bot is unsure about their invite link, they won't be assigned any roles, you need to handle them manually - Add
TOKEN
bot token intoconfig.py
, bot requires at least268745824
permissions - Start bot via
python bot.py
or via supervisord or systemd
$invites.stats_all
Displays a list of all invite URLs$invites.stats_used
Lists invite URLs which were used at least once$invites.list
Lists all connected invite URLs and roles$invites.connect
Connects an invite URL to roles, assigning roles to whoever joins using the given invite URL$invites.disconnect
Disconnects the given invite URL from roles it is connected to