King of Time CLI (unofficial) ================= * [Usage](#usage) * [Installation](#installation) * [Commands](#commands)
# Usage ```sh-session $ kot checkin { result: 'OK', image_result: '0', comment_result: '0' } $ kot checkout { result: 'OK', image_result: '0', comment_result: '0' } ``` # Installation From the same directory as this README: ```sh-session $ npm install $ npm install -g ``` Now the `kot` command should be available on your system. ## Set Tokens You need to provide two tokens, which can be retrieved by inspecting the HTTP request to `/bprgateway` the King of Time Web UI makes when submitting a check-in or check-out request. It is convenient to set these as the below environment variables, although they can also be passed as options to the `checkin` and `checkout` commands. * `KINGOFTIME_TOKEN` * `KINGOFTIME_USER_TOKEN` # Commands * [`kot checkin`](#kot-checkin) * [`kot checkout`](#kot-checkout) * [`kot help [COMMANDS]`](#kot-help-commands) ## `kot checkin` Check in ``` USAGE $ kot checkin --token