alexanderepstein / Bash-Snippets

A collection of small bash scripts for heavy terminal users
MIT License
9.64k stars 842 forks source link

A General Knowledge based Quiz #146

Closed aadityanaik closed 6 years ago

aadityanaik commented 6 years ago

Added a new component gkquiz, a quiz that tests your general knowledge.
Usage- $ gkquiz [number of questions]

Uses Open Trivia database API

Pull Request Label:

Pull Request Checklist:


aadityanaik commented 6 years ago

Needs the recode package as well as the jq package

alexanderepstein commented 6 years ago

I would avoid the use of jq as this is a dependency that has been avoided throughout the project, instead look at a script such as stocks that utilizes python to parse json and is basically included in all linux distros and mac os.

As for the recode dependency I'm not sure what you need to do to get rid of this, but if the script must keep that dependency it will end up in the extras folder and not into the mainstream installer. A big push of this repo is to have no dependencies

aadityanaik commented 6 years ago

All right then, I'll try it with python instead of jq. However I won't be able to work on this for a few weeks because of college, so, for now, I'll close the PR and open it again when I have got the things fixed