production code be like "nightly build from a week ago"

This commit is contained in:
Yessiest 2023-01-23 14:25:45 +04:00
parent 92a4807322
commit 2b2960ebde
1 changed files with 8 additions and 1 deletions

View File

@ -152,7 +152,14 @@ local markov = command("markov",{
return
end
markov_instance:load_state(preset)
local output = markov_instance:run(preset[1],100)
local first_word = ""
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)
end
})