Compare commits
	
		
			No commits in common. "2b2960ebde5254c6b91a0ee41796c07552917631" and "29a21a2f8f64e6ce67583f360e633144e0ddfa23" have entirely different histories.
		
	
	
		
			2b2960ebde
			...
			29a21a2f8f
		
	
		|  | @ -152,14 +152,7 @@ local markov = command("markov",{ | ||||||
| 			return | 			return | ||||||
| 		end | 		end | ||||||
| 		markov_instance:load_state(preset) | 		markov_instance:load_state(preset) | ||||||
|         local first_word = "" | 		local output = markov_instance:run("The",100) | ||||||
|         for k,v in pairs(preset) do |  | ||||||
|             first_word = k |  | ||||||
|             if math.random(1,10) == 5 then |  | ||||||
|                 break |  | ||||||
|             end |  | ||||||
|         end |  | ||||||
| 		local output = markov_instance:run(first_word,100) |  | ||||||
| 		msg:reply(output) | 		msg:reply(output) | ||||||
| 	end | 	end | ||||||
| }) | }) | ||||||
|  |  | ||||||
|  | @ -1,8 +1,8 @@ | ||||||
| markov = require("markov") | markov = require("markov") | ||||||
| json = require("json") | json = require("json") | ||||||
| text_file = io.open("input",'r') | text = [[ | ||||||
| text = text_file:read("*a") | 
 | ||||||
| text_file:close() | ]] | ||||||
| markov_instance = markov.new(text) | markov_instance = markov.new(text) | ||||||
| preset = io.open("new_preset.json","w") | preset = io.open("new_preset.json","w") | ||||||
| a = markov_instance:save_state() | a = markov_instance:save_state() | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue