From 664d8bfcb3eef24d7b04d4d3ba4e54ac5b892273 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Thu, 1 Aug 2019 15:23:37 +0200 Subject: [PATCH] test --- modules/markov.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/markov.go b/modules/markov.go index 5a02025..ec99799 100644 --- a/modules/markov.go +++ b/modules/markov.go @@ -23,8 +23,6 @@ import ( "git.dnix.de/an/xlog" ) -var markovPrefixLen *int - var ( //markovPrefixLen = flag.Int("markov_prefix_len", 3, "markov: prefix len") markovAnswerLen = flag.Int("markov_answer_len", 10, "markov: answer len") @@ -38,7 +36,6 @@ var markovChain *MarkovChain func init() { MsgFuncs["markov"] = markovHandleMessage RunFuncs["markov"] = markovRun - *markovPrefixLen = 3 } func markovHandleMessage(m *Message) { @@ -62,7 +59,8 @@ func markovHandleMessage(m *Message) { } func markovRun() { - markovChain = markovNewChain(*markovPrefixLen) + //markovChain = markovNewChain(*markovPrefixLen) + markovChain = markovNewChain(3) err := markovChain.Load(*markovStateFile) if err != nil { xlog.Error(err.Error())