forked from an/flokati
test
This commit is contained in:
parent
664d8bfcb3
commit
e31a37c715
2
irc.go
2
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"
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue