Significant set of changes
* Use /join and /leave instead of roles * Use scopes to check for user rights rather than using the config file * Add /list to show the set of current people signed up * Add a bunch more testing for various things * Version both the config and the state
This commit is contained in:
parent
78834f5319
commit
d3a22ff090
8 changed files with 537 additions and 295 deletions
10
README.md
10
README.md
|
@ -20,18 +20,16 @@ Only usable by `OWNER` users, reloads the config and syncs commands, or closes d
|
|||
Matchy is configured by a `config.json` file that takes this format:
|
||||
```
|
||||
{
|
||||
"version": 1,
|
||||
"token": "<<github bot token>>",
|
||||
"owners": [
|
||||
<<owner id>>
|
||||
]
|
||||
}
|
||||
```
|
||||
User IDs can be grabbed by turning on Discord's developer mode and right clicking on a user.
|
||||
|
||||
## TODO
|
||||
* Write bot tests with [dpytest](https://dpytest.readthedocs.io/en/latest/tutorials/getting_started.html)
|
||||
* Implement /pause to pause a user for a little while
|
||||
* Move more constants to the config
|
||||
* Add scheduling functionality
|
||||
* Version the config and history files
|
||||
* Implement /signup rather than using roles
|
||||
* Implement authorisation scopes instead of just OWNER values
|
||||
* Fix logging in some sub files
|
||||
* Improve the weirdo
|
Loading…
Add table
Add a link
Reference in a new issue