oddluck-limnoria-plugins/Jeopardy
Gordon Shumway 112cb18a84
Jeopardy: update hint help text
2020-02-18 07:12:45 -05:00
..
local Add 'Jeopardy/' from commit '0fc85014d136671257180831029710c82b778307' 2019-03-01 01:43:27 -05:00
locales Add 'Jeopardy/' from commit '0fc85014d136671257180831029710c82b778307' 2019-03-01 01:43:27 -05:00
README.md Jeopardy: update hint help text 2020-02-18 07:08:36 -05:00
__init__.py update author/maintainer data 2019-12-04 01:46:01 -05:00
categories.txt Update categories.txt 2020-02-01 11:40:38 -05:00
config.py Jeopardy: update default templates 2020-02-18 02:24:51 -05:00
messages.pot Add 'Jeopardy/' from commit '0fc85014d136671257180831029710c82b778307' 2019-03-01 01:43:27 -05:00
plugin.py Jeopardy: update hint help text 2020-02-18 07:12:45 -05:00
requirements.txt Jeopardy: add templates. 2020-02-11 20:36:13 +00:00
test.py Update test.py 2019-03-01 01:51:50 -05:00

README.md

Come play in ##Jeopardy on Freenode.

irc://chat.freenode.net/##jeopardy

This... is... Jeopardy!

Uses jService (150K+ Jeopardy! questions, more if run locally) as a trivia source.

To run a local instance (190K+ questions, can add more questions as episodes continue to air) install my jService fork then point plugins.jeopardy.jserviceUrl to your own URL.

To configure replies, see the templates section.

Commands

start [channel] [--num <#>] [--timeout <#>] [--hints <#>] [--no-hints] [--random] [--shuffle] [--restart] [<category1>, <category2>, etc.]

start - start a round with random questions

start <category name>, <category name> - search for a category by name, separate multiple categories with commas

--shuffle - randomize category searches

--num <# of questions> - set the number of questions for the round

--timeout <# of seconds to answer> - set the time to answer the question, 0 to disable timeout

--hint <# of hints> - specify number of hints, 0 to disable them

--no-hints - set showHints and showBlank to False

--random - select a category at random

--restart - automatically restart a new round when the current round finishes (questions in restarted rounds will be random)

categories

Returns a list of popular Jeopardy! categories.

stats [--top <int>] [nick]

Returns game scores. Defaults to top 5 players. Use --top and a number to receive more top players. Specify a nick to get a score for the selected player.

question

Repeat the currently active question.

hint

Display the next hint. If max hints reached, repeat the latest hint. If max hints is 0, show blanked out answer.

skip

Skip the current question.

report

Report the current question as invalid e.g. audio/video based clues.

Config

config list plugins.jeopardy

List the config variables for the game.

config help plugins.jeopardy.<variable_name>

Get information about what game options the variable controls.

Templates

config plugins.jeopardy.template.correct "\x0313{{nick}}\x03 got it! The full answer was: {{answer}}. Points: \x0309{{points}}\x03 | Round Score: \x0309{{round}}\x03 | Total: \x0309{{total}}"

Template for correct answer replies

config plugins.jeopardy.template.hint "HINT: {{hint}}{% if time %} | ({{time}} seconds remaining){% endif %}"

Template for hint reply

config plugins.jeopardy.template.question "#{{number}} of {{total}}: \x0313({{airdate}}) \x0309[${{points}}] \x0310\x1f{{category}}\x1f: {{clue}}"

Template for question reply

config plugins.jeopardy.template.skip "No one got the answer! It was: {{answer}}"

Template for reply when question unanswered after timeout or the 'skip' command used

config plugins.jeopardy.template.stop "Jeopardy! stopped.{% if answer %} (Answer: {{answer}}){% endif %}"

Template for reply when using the 'stop' command

config plugins.jeopardy.template.time "{{time}} seconds remaining. [.hint] [.question] [.skip]"

Template for time remaining reply when plugins.jeopardy.showTime = True

Miscellaneous

Score and history files can be found in <bot_directory>/data/jeopardy/

Forked and significantly modified version of this trivia plugin.