Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 960 Bytes

README.md

File metadata and controls

34 lines (31 loc) · 960 Bytes

Tetr.io metrics for personal use

A small program to periodically fetch a user's TETR.IO games. Game stats are saved to a database. This program is for personal use and will only support fetching stats for a single user. I use this data to track my performance over time.

Getting started

  1. Clone this repository
    $ git clone git@github.com:benjaminheng/tetrio-metrics.git
  2. Install the golang-migrate CLI tool
    $ go install -tags 'sqlite3' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
  3. Initialize the sqlite3 database
    $ make migrate-up
  4. Initialize the configuration file
    $ cp config.toml.example config.toml
    $ vim config.toml # update `TetrioUsername` to your username
  5. Install tetrio-metrics
    $ make install
  6. Run tetrio-metrics
    $ tetrio-metrics