summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/markov.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-12-04 06:25:53 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-12-04 06:25:53 +0100
commit5bf664d5b10362b94fa00593ffdaa154492a9a7d (patch)
tree6efe63662ae4b5fafa78ed79927e8da6d67e0ad9 /data/rbot/plugins/markov.rb
parent445929f77007a1240ce19dfe7a8d623806841d96 (diff)
markov: document 'learn from <file>'
Diffstat (limited to 'data/rbot/plugins/markov.rb')
-rwxr-xr-xdata/rbot/plugins/markov.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb
index 21c4d631..9e4bbb92 100755
--- a/data/rbot/plugins/markov.rb
+++ b/data/rbot/plugins/markov.rb
@@ -362,6 +362,10 @@ class MarkovPlugin < Plugin
else
"markov chat => try to say something intelligent"
end
+ when "learn"
+ ["markov learn from <file> [testing [<num> lines]] [using pattern <pattern>]:",
+ "learn from the text in the specified <file>, optionally using the given <pattern> to filter the text.",
+ "you can sample what would be learned by specifying 'testing <num> lines'"].join(' ')
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, readonly, delay, status, probability, chat, chat about"
end