diff options
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r-- | data/rbot/plugins/markov.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb index e06753fa..0e5923ef 100644 --- a/data/rbot/plugins/markov.rb +++ b/data/rbot/plugins/markov.rb @@ -116,7 +116,10 @@ class MarkovPlugin < Plugin return unless should_talk line = generate_string(message) return unless line - m.reply line unless line == message + return if line == message + @bot.timer.add_once(delay, m) {|m| + m.reply line + } end def chat(m, params) |