summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaine Virta <rane@kapsi.fi>2009-02-24 23:12:16 +0200
committerRaine Virta <rane@kapsi.fi>2009-02-26 01:14:03 +0200
commit57f03b3cd65ff75684e929553d8a3d64713afd28 (patch)
treeb49469f65d0162bb5d601dd0cdecb5c08cddebde
parent6f1d91a2ea5e86732f878553e474c5fd77012b17 (diff)
markov: organize help
-rwxr-xr-xdata/rbot/plugins/markov.rb29
1 files changed, 28 insertions, 1 deletions
diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb
index 22981f68..deeb9cae 100755
--- a/data/rbot/plugins/markov.rb
+++ b/data/rbot/plugins/markov.rb
@@ -111,7 +111,34 @@ class MarkovPlugin < Plugin
end
def help(plugin, topic="")
- _("markov plugin: listens to chat to build a markov chain, with which it can (perhaps) attempt to (inanely) contribute to 'discussion'. Sort of.. Will get a *lot* better after listening to a lot of chat. usage: 'markov' to attempt to say something relevant to the last line of chat, if it can. other options to markov: 'ignore' => ignore a hostmask (accept no input), 'status' => show current status, 'probability [<chance>]' => set the % chance of rbot responding to input, or display the current probability, 'chat' => try and say something intelligent, 'chat about <foo> <bar>' => riff on a word pair (if possible)")
+ topic, subtopic = topic.split
+
+ case topic
+ when "ignore"
+ case subtopic
+ when "add"
+ "markov ignore add <hostmask|channel> => ignore a hostmask or a channel"
+ when "list"
+ "markov ignore list => show ignored hostmasks and channels"
+ when "remove"
+ "markov ignore remove <hostmask|channel> => unignore a hostmask or channel"
+ else
+ "ignore hostmasks or channels -- topics: add, remove, list"
+ end
+ when "status"
+ "markov status => show if markov is enabled, probability and amount of messages in queue for learning"
+ when "probability"
+ "markov probability [<percent>] => set the % chance of rbot responding to input, or display the current probability"
+ when "chat"
+ case subtopic
+ when "about"
+ "markov chat about <word> [<another word>] => talk about <word> or riff on a word pair (if possible)"
+ else
+ "markov chat => try to say something intelligent"
+ end
+ else
+ "markov plugin: listens to chat to build a markov chain, with which it can (perhaps) attempt to (inanely) contribute to 'discussion'. Sort of.. Will get a *lot* better after listening to a lot of chat. Usage: 'chat' to attempt to say something relevant to the last line of chat, if it can -- help topics: ignore, status, probability, chat, chat about"
+ end
end
def clean_str(s)