https://github.com/maxbeizer/hedwig_trivia
A Hedwig plugin to play trivia in chat
https://github.com/maxbeizer/hedwig_trivia
Last synced: 11 months ago
JSON representation
A Hedwig plugin to play trivia in chat
- Host: GitHub
- URL: https://github.com/maxbeizer/hedwig_trivia
- Owner: maxbeizer
- License: mit
- Created: 2019-11-16T15:59:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-17T01:29:06.000Z (over 6 years ago)
- Last Synced: 2025-07-24T15:32:16.775Z (11 months ago)
- Language: Elixir
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# hedwig_trivia
A [Hedwig](https://github.com/hedwig-im/hedwig) plugin to play trivia via the
[jservice](http://jservice.io/) API.
## Installation
The package can be installed by adding `hedwig_trivia` to your list of
dependencies in `mix.exs`:
```elixir
def deps do
[
{:hedwig_trivia, "~> 0.1.0"}
]
end
```
Docs can be found at
[https://hexdocs.pm/hedwig_trivia](https://hexdocs.pm/hedwig_trivia).
## Usage
```
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
# submit a guess for the current question
hedwig solution
# get the answer to the current question
```
## Development
`mix deps.get`
`mix test`
`bin/lint`
## License
MIT
## Acknowledgements
[@sottenad](https://github.com/sottenad) for the API
[@scrogson](https://github.com/scrogson) for Hedwig