RoleBot's current features include:
- An event listener that triggers when a role change happens that will add or remove a role based on whether a user has two other required roles or not.
- A /slash command to manually check all users (suitable for if the bot has downtime or for when it first joins)
Make sure to change all variables in the file RoleBot.py to their relevant values.
There are 3 options:
- Edit "token" in bot.run() to manually input the token
- Create a .env file and insert the token with the variable name TOKEN
- Setup AWS Secrets Manager and edit the secret_name and region_name variables in get_secret()
- sudo apt-get install python3.7
- sudo apt install python3-pip
- pip install -U discord
- pip install -U discord-py-slash-command
- pip install python-dotenv (optional: if using .env)
- pip install boto3 (optional: if using AWS Secrets Manager)
- Navigate to the folder with RoleBot.py in it
- Run python3 RoleBot.py
- Install Python 3.7
- pip install -U discord
- pip install -U discord-py-slash-command
- pip install python-dotenv (optional: if using .env)
- Navigate to the folder with RoleBot.py in it
- Open a terminal
- Run py .\RoleBot.py or python .\RoleBot.py or python3 .\RoleBot.py
After a few seconds, to establish the connection, the bot will be active and can be used immediately.
Other versions of Python should work and if you use a different version, remove the first line in the file.