summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/markov.rb
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-10-13 17:46:22 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-10-13 17:46:22 +0000
commit4ce1c479b57beecd2fb8d13a33ce91e1f272bd97 (patch)
treea33a0b3a9504c196d74deee0ac0ba33b4e84be23 /data/rbot/plugins/markov.rb
parente6f0ce016d6a016e04e6bae065c700113122c021 (diff)
close #38 for real
Diffstat (limited to 'data/rbot/plugins/markov.rb')
-rw-r--r--data/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 0e5923ef..ef599df4 100644
--- a/data/rbot/plugins/markov.rb
+++ b/data/rbot/plugins/markov.rb
@@ -112,6 +112,10 @@ class MarkovPlugin < Plugin
return false
end
+ def delay
+ 1 + rand(5)
+ end
+
def random_markov(m, message)
return unless should_talk
line = generate_string(message)