A Hedwig plugin to play trivia via the jservice API.
The package can be installed by adding hedwig_trivia
to your list of
dependencies in mix.exs
:
def deps do
[
{:hedwig_trivia, "~> 0.1.0"}
]
end
Docs can be found at https://hexdocs.pm/hedwig_trivia.
hedwig trivia
# fetches a new trivia question from the API, unless you already have an
# unanswered question
hedwig trivia!
# fetches a new trivia question from the API, regardless of whether you already
# have an unanswered question
hedwig guess <guess>
# submit a guess for the current question
hedwig solution
# get the answer to the current question
mix deps.get
mix test
bin/lint
MIT