Simple python bot to manually track user reputation on discord and assign them roles automatically.
+rep <discord user> (optional)<rep amount>
rep amount defaults to 1 if not provided.
+rep <discord user> (optional)<rep amount>
rep amount defaults to 1 if not provided.
?rep <discord user>
Example Ouput:
> ?rep @Soykaf
Rank: Good Customer
Reputation: 7
Discount: 15%
you will need python version 3.10+ and this assumes you correctly setup your app on the discord side.
$ git clone git@github.com:S0yKaf/RepBot.git
$ python3 -m pip install -U -r requirements.txt
$ cp config.py.example config.py
CSV_FILE = "rep_data.csv"
BOT_KEY = "YOUR BOT KEY"
ALLOWED_ROLES = ["Weeb"] # Roles allowed to interact with the bot
# Ranks are
# Rep required
# Rank Name
# Discount awarded (in percent)
RANKS = [
[0, "First Timer", 0],
[1, "Customer", 0],
[5, "Good Customer", 15],
[10, "Big Shot", 30]
]
$ python3 app.py