summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-02-03 10:14:24 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-02-03 10:14:24 +0100
commit7dbb7be418b2cf5c3587218210e3f22e4e1dbdb3 (patch)
treeabb0cbaf377a94047e693060af251f4e9262bf6c /data/rbot/plugins
parentffef050dd341254f66fb08a2cdcef4894f36483e (diff)
quiz: refactor and localize admin help
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/games/quiz.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/data/rbot/plugins/games/quiz.rb b/data/rbot/plugins/games/quiz.rb
index 96e2ad40..208846ed 100644
--- a/data/rbot/plugins/games/quiz.rb
+++ b/data/rbot/plugins/games/quiz.rb
@@ -300,7 +300,15 @@ class QuizPlugin < Plugin
def help( plugin, topic="" )
if topic == "admin"
- "Quiz game aministration commands (requires authentication): 'quiz autoask <on/off>' => enable/disable autoask mode. 'quiz autoask delay <secs>' => delay next quiz by <secs> seconds when in autoask mode. 'quiz transfer <source> <dest> [score] [jokers]' => transfer [score] points and [jokers] jokers from <source> to <dest> (default is entire score and all jokers). 'quiz setscore <player> <score>' => set <player>'s score to <score>. 'quiz setjokers <player> <jokers>' => set <player>'s number of jokers to <jokers>. 'quiz deleteplayer <player>' => delete one player from the rank table (only works when score and jokers are set to 0). 'quiz cleanup' => remove players with no points and no jokers."
+ _("Quiz game aministration commands (requires authentication): ") + [
+ _("'quiz autoask <on/off>' => enable/disable autoask mode"),
+ _("'quiz autoask delay <secs>' => delay next quiz by <secs> seconds when in autoask mode"),
+ _("'quiz transfer <source> <dest> [score] [jokers]' => transfer [score] points and [jokers] jokers from <source> to <dest> (default is entire score and all jokers)"),
+ _("'quiz setscore <player> <score>' => set <player>'s score to <score>"),
+ _("'quiz setjokers <player> <jokers>' => set <player>'s number of jokers to <jokers>"),
+ _("'quiz deleteplayer <player>' => delete one player from the rank table (only works when score and jokers are set to 0)"),
+ _("'quiz cleanup' => remove players with no points and no jokers")
+ ].join(". ")
else
urls = @bot.config['quiz.sources'].select { |p| p =~ /^https?:\/\// }
"A multiplayer trivia quiz. 'quiz' => ask a question. 'quiz hint' => get a hint. 'quiz solve' => solve this question. 'quiz skip' => skip to next question. 'quiz joker' => draw a joker to win this round. 'quiz score [player]' => show score for [player] (default is yourself). 'quiz top5' => show top 5 players. 'quiz top <number>' => show top <number> players (max 50). 'quiz stats' => show some statistics. 'quiz fetch' => refetch questions from databases. 'quiz refresh' => refresh the question pool for this channel." + (urls.empty? ? "" : "\nYou can add new questions at #{urls.join(', ')}")