From 7aeaf92a9ea48974ad6b86cf65ad385d54ee740a Mon Sep 17 00:00:00 2001 From: oz modic Date: Wed, 27 Jul 2016 16:09:21 -0500 Subject: [PATCH] ok --- plugins/Markovian.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Markovian.rb b/plugins/Markovian.rb index 2ee36a42..30ae8d56 100644 --- a/plugins/Markovian.rb +++ b/plugins/Markovian.rb @@ -58,7 +58,7 @@ class Markovian end def markov(m,seed=nil,length=nil) - out = start(m,length == nil ? length : length.to_i, seed) + out = start(m,seed,length == nil ? length : length.to_i) puts "markov out:\n\t#{out}" m.reply(out) @@ -75,7 +75,7 @@ class Markovian return ret end - def start(m,words=nil, seed=nil) + def start(m, seed=nil, words=nil) db = Util::Util.instance.getCollection("markov","ngrams") res = "" if(words == nil)