|
|
||
|---|---|---|
| .. | ||
| local | ||
| locales | ||
| README.md | ||
| __init__.py | ||
| categories.txt | ||
| config.py | ||
| messages.pot | ||
| plugin.py | ||
| requirements.txt | ||
| test.py | ||
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.