forked from an/flokati
test
This commit is contained in:
parent
2c4dc46c53
commit
45ba50b132
|
@ -23,7 +23,8 @@ import (
|
||||||
"git.dnix.de/an/xlog"
|
"git.dnix.de/an/xlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
var *markovPrefixLen = 3
|
var markovPrefixLen *int
|
||||||
|
|
||||||
var (
|
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")
|
markovAnswerLen = flag.Int("markov_answer_len", 10, "markov: answer len")
|
||||||
|
@ -37,6 +38,7 @@ var markovChain *MarkovChain
|
||||||
func init() {
|
func init() {
|
||||||
MsgFuncs["markov"] = markovHandleMessage
|
MsgFuncs["markov"] = markovHandleMessage
|
||||||
RunFuncs["markov"] = markovRun
|
RunFuncs["markov"] = markovRun
|
||||||
|
*markovPrefixLen = 3
|
||||||
}
|
}
|
||||||
|
|
||||||
func markovHandleMessage(m *Message) {
|
func markovHandleMessage(m *Message) {
|
||||||
|
|
Loading…
Reference in New Issue