A discord bot for mini painting shame golf
!fore [modifier] {Reason}
Modifies your current score with the provided modifier. This modifier is required, so PuttPutt knows how much to adjust your score by. Optionally, any text after the modifier will be stored as a note for this event in history.- Example:
!fore -2
,!fore -2 Painted some new duder
- Example:
!setscore [score] {Reason}
Sets your current score to the provided score. Optionally, any text after the score will be stored as a note for this event in history.- Example:
!setscore 0
,!setscore 0 Resetting for some reason
- Example:
!scoreboard {limit}
Displays the scoreboard. Optionally, you can provide a limit value to only show the top N results- Example:
!scoreboard
,!scoreboard 10
- Example:
!history {limit}
Displays your history. Optionally, you can provide a limit value to only show the top N results- Example:
!history
,!history 10
- Example:
!archives
Gets a list of all archive names, allowing the user to then pull up a scoreboard for that season!seasonscores [archive]
Displays the scoreboard for the specified archive (season) name. Hint: use!archives
to get the list, or check out shame.golf- Example:
!seasonscores Summer2021
- Example:
!seasonhistory [limit]|{0} [archive]
Displays the user history for a given season, and limits the results if the limit constraint is not 0. Hint: use!archives
to get the list, or check out shame.golf- Example:
!seasonscores 0 Summer2021
,!seasonscores 5 Summer2021
- Example:
!myscore
Reports your current score
!sync
Overwrites the database with values from usernames in the server. Currently, this pulls scores in a format of[15]
or{15}
, including negative scores.!season {name}
Archives the current season and begins anew. If you provide a name, it will be used, otherwise a timestamp will be used.- Example:
!season
,!season Summer2021
- Example:
!updatenames
Updates all user names on scoreboard to their sanitized (no score, remove excess spaces) names.
You'll need a config.json file in the following format to connect locally:
{
"bot_token": "YOUR_TOKEN_HERE"
}
If you're working on this for the shame golf league, message me here or on discord for the token
You'll need to either update the volume for mongo in the docker-compose.yml
file to match where you want the database stored, or you can just remove the volumes entry from that service and let docker store it in the default location.