update readme

This commit is contained in:
xeals 2023-03-26 18:52:26 +11:00
parent 757a17a7ca
commit fb91302032
Signed by: xeals
GPG Key ID: A498C7AF27EC6B5C
2 changed files with 21 additions and 0 deletions

View File

@ -2,3 +2,19 @@
Pokemon Showdown data processing, mostly for HHIRLLL's Pokemon league. Ugly as
fuck.
## Requirements
- Python with sqlite
- requests
## Usage
```sh
$ ./main.py -h
usage: hhirlstats [-h] [-v] [-c] [-Q {gametime,moves,nicknames,playtime,usage}] [replay ...]
```
Recommended to cache replays (`-c`) to save issuing requests to Showdown on every query.
Run the program once with all your replays (or once for each replay), then start querying.

View File

@ -284,6 +284,11 @@ def main():
if args.query:
query(args.query, db)
else:
if not args.replay:
parser.print_usage()
print(f"{APP}: error: either query or replay arguments are required")
sys.exit(1)
for r in args.replay:
try:
replay = fetch(r, cache=args.cache)