test
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Andreas Neue 2019-08-01 15:31:16 +02:00
parent 664d8bfcb3
commit e31a37c715
2 changed files with 3 additions and 4 deletions

2
irc.go
View File

@ -13,7 +13,7 @@ import (
"strings" "strings"
"time" "time"
"git.dnix.de/an/flokatilib/modules" modules "git.dnix.de/an/flokatilib/modules"
"git.dnix.de/an/xlog" "git.dnix.de/an/xlog"
irc "github.com/fluffle/goirc/client" irc "github.com/fluffle/goirc/client"

View File

@ -24,7 +24,7 @@ import (
) )
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")
markovResponseChance = flag.Int("markov_response_chance", 10, "markov: chance to get an answer (percent)") 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") markovStateFile = flag.String("markov_state_file", "state.dat", "markov: state file")
@ -59,8 +59,7 @@ func markovHandleMessage(m *Message) {
} }
func markovRun() { func markovRun() {
//markovChain = markovNewChain(*markovPrefixLen) markovChain = markovNewChain(*markovPrefixLen)
markovChain = markovNewChain(3)
err := markovChain.Load(*markovStateFile) err := markovChain.Load(*markovStateFile)
if err != nil { if err != nil {
xlog.Error(err.Error()) xlog.Error(err.Error())