From e31a37c7152258b78c1fc524ef128f5f0d0da135 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Thu, 1 Aug 2019 15:31:16 +0200 Subject: [PATCH] test --- irc.go | 2 +- modules/markov.go | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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())