Allow the user to specify a different

This commit is contained in:
Jacob Harris
2013-07-17 21:07:31 -04:00
parent 81130a8a3d
commit 8ee6b1a871

View File

@@ -8,6 +8,7 @@ require 'markov'
source_tweets = []
$rand_limit ||= 10
$markov_index ||= 2
puts "PARAMS: #{params}" if params.any?
@@ -39,7 +40,7 @@ else
puts "#{source_tweets.length} tweets found"
markov = MarkovChainer.new(2)
markov = MarkovChainer.new($markov_index)
source_tweets.each do |twt|
text = twt