Skip to content

eco-community/invite-role-bot

Repository files navigation

InviteRoleBot

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.

Bot can:

  • Detect which user joined via which invite link
  • Log messages when users join channel
  • Assign roles when user joined
  • Show stats for invite links

Installation

  1. Install Docker
  2. Execute docker-compose up -d
  3. Install requirements from requirements.txt for Python 3
  4. Copy and update settings in config.example.py
  5. Add LOG_CHANNEL_ID to config.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
  6. Add TOKEN bot token into config.py, bot requires at least 268745824 permissions
  7. Start bot via python bot.py or via supervisord or systemd

Available commands

  • $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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages