diff --git a/irc.go b/irc.go index cb4ab92..abf7e89 100644 --- a/irc.go +++ b/irc.go @@ -13,7 +13,7 @@ import ( "strings" "time" - "git.dnix.de/an/flokatilib/modules" + modules "git.dnix.de/an/flokatilib/modules" "git.dnix.de/an/xlog" irc "github.com/fluffle/goirc/client" diff --git a/modules/markov.go b/modules/markov.go index ec99799..2d355d7 100644 --- a/modules/markov.go +++ b/modules/markov.go @@ -24,7 +24,7 @@ import ( ) var ( - //markovPrefixLen = flag.Int("markov_prefix_len", 3, "markov: prefix len") + markovPrefixLen = flag.Int("markov_prefix_len", 3, "markov: prefix len") markovAnswerLen = flag.Int("markov_answer_len", 10, "markov: answer len") markovResponseChance = flag.Int("markov_response_chance", 10, "markov: chance to get an answer (percent)") markovStateFile = flag.String("markov_state_file", "state.dat", "markov: state file") @@ -59,8 +59,7 @@ func markovHandleMessage(m *Message) { } func markovRun() { - //markovChain = markovNewChain(*markovPrefixLen) - markovChain = markovNewChain(3) + markovChain = markovNewChain(*markovPrefixLen) err := markovChain.Load(*markovStateFile) if err != nil { xlog.Error(err.Error())