Application has been made to mass role assignment on a discord server from a .csv file. .csv. Notice that bot is not safe, everyone could call commands, bot should be turn off after operation or improved.
Program written using PyCharm.
$hello
- to check whether bot is working$install
- trigger assignment proccess
All dependencies are included in requirements.txt. You can install it using pip, or let PyCharm detect
$ pip install -r requirements.txt
- Prepere your .csv file. It should contain coulmn with ROLE_NAME (same as discord) and id's of users
- Download repository, unpack and go to project folder
- Copy .env.example file and remove .example postfix
- Adjust .env fields with your data
- DISCORD_TOKEN your private token from https://discord.com/developers/applications
- FILENAME - file should be in same folder as example.csv
- ROLE_NAME_COLUMN - Indexing start from 0.
- USER_ID_COLUMN=4 - Indexing start from 0.
- Run app using python
python3 main.py
orpython src/main.py
- Add bot to your discord server
- Check bot by sending
$hello
on discord channel - Run assignment proccess using
$install
on discord channel