From 06c101926c74d9fd7a44e37e595dbc6000359757 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 31 Dec 2007 01:02:34 +0000 Subject: wheelfortune plugin: help --- data/rbot/plugins/games/wheelfortune.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'data') diff --git a/data/rbot/plugins/games/wheelfortune.rb b/data/rbot/plugins/games/wheelfortune.rb index 0aebf55d..d873c9e4 100644 --- a/data/rbot/plugins/games/wheelfortune.rb +++ b/data/rbot/plugins/games/wheelfortune.rb @@ -223,6 +223,23 @@ class WheelOfFortune < Plugin @games = Hash.new end + def help(plugin, topic="") + case topic + when 'play' + _("wof [] play [] for to => starts a wheel-of-fortune game on channel (default: current channel), named (default: wheelfortune.game_name config setting, or the last game name used by the user), with points per round. the game is won when a player reachers points. vowerls cost */ points. The user that starts the game is the game manager and must set up the clues and answers in private. All the other users have to learn the answer to each clue by saying single consonants or the whole sentence. Every time a consonant is guessed, the bot will reveal the partial answer, showing the missing letters as * (asterisks).") + when 'category', 'clue', 'answer' + _("wof [category: ,] clue: , answer: => set up a new question for the wheel-of-fortune game being played on channel . This command must be sent in private by the game manager. The category can be omitted. If you make mistakes, you can use 'wof replace' (see help) before the question gets asked") + when 'replace' + _("wof replace [category: ,] [clue: ,] [answer: ] => fix the question for round of the wheel-of-fortune game being played on by replacing the category and/or clue and/or answer") + when 'cancel' + _("wof cancel => cancels the wheel-of-fortune being played on the current channel") + when 'buy' + _("wof buy => buy the vowel : the user buying the vowel will lose points equal to the vowel price, and the corresponding vowel will be revealed in the answer (if present)") + else + _("wof: wheel-of-fortune plugin. topics: play, category, clue, answer, replace, cancel, buy") + end + end + def setup_game(m, p) chan = p[:chan] || m.channel if !chan -- cgit v1.2.3