Skip to content
Tells you when you're ready to study WaniKani
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
exe
lib
.gitignore
.travis.yml
Gemfile
README.md
Rakefile
whenkani.gemspec

README.md

Whenkani

Tells you when you're ready to study at WaniKani.

Installing

$ bundle gem install whenkani

Usage

First, you'll need your API key from your Account page

Set the API key via an environment variable (usually sourced in a profile):

$ WANIKANI_API_KEY=abcdef12345 whenkani

Set the API key as a command line argument:

$ whenkani abcdef12345

Output

When you're ready to study

When you have lessons or reviews to do, you'll see this output:

$ whenkani
You're ready to study!
https://www.wanikani.com/dashboard

whenkani will exit with code 0 if you're ready to study.

When you have no lessons or reviews

When you don't have lessons yet, whenkani will tell you how long to wait:

$ whenkani
You're not ready, come back in 4 minutes

whenkani will exit non-zero if you're not ready to study. This may be useful if you want to incorporate this gem into other automation scripts.

You can’t perform that action at this time.