gambot

command module
v0.0.0-...-33f903c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 23 Imported by: 0

README

GAMBOT

Arena tournament manager cobbled together for use at the local chess club.

Created by

Björn W Nauclér (mail@bnaucler.se)

Building

bin/build.sh all - Builds server and tools

Usage

Output of bin/gambot -h:

Usage of bin/gambot:
  -d string
    	specify database to open (default ".gambot.db")
  -p int
    	port number to listen (default 9001)
  -r	reset admin password

All files generated by gambot are stored in data/. Use bin/clean.sh for a full reset.
For API reference, take a look at APIREF.md.

Tool - dbdump

Dumps the database contents to stdout
Output of bin/dbdump -h:

Usage of bin/dbdump:
  -a	dump admin data
  -d string
    	specify database to open (default ".gambot.db")
  -j	JSON format
  -p	dump player data
  -t	dump tournament data

Tool - resetelo

Sets/resets all players ELO to a specific value
Output of bin/resetelo -h:

Usage of bin/resetelo:
  -d string
    	specify database to open (default "data/gambot.db")
  -e int
    	ELO value to set (default 1000)

NB! This is destructive and will wipe all players ELO. There is currently no way to revert this change or to manually adjust the values.

Tool - clean.sh

Removes pidfile, all logs and databases from the data/ directory.
Invoke with -force for a more aggressive approach. (Use with caution.)

Contributing

Please see CONTRIBUTING.md for best practices and information on how to get involved in the project.
Pull requests welcome!

License

MIT (do whatever you want)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL