printing should be k

This commit is contained in:
Elliott Pardee 2015-06-08 05:53:24 -04:00
parent 28451736a5
commit 225da0669c

11
bot.go
View File

@ -49,7 +49,7 @@ var dict = map[string]string{
var argmap = map[string]int{
".set": 4,
".print": 3,
".print": 2,
".vote": 1,
".d": 1,
".mode": 1,
@ -155,13 +155,8 @@ func (b *Bot) Command(nick string, msg string) {
}
}
case ".print":
if len(args) == 4 {
b.Say(args[0] + "[" + args[3] + "] = " + printChar(args[0], args[1], args[2], args[3]))
fmt.Println("[cmd] print")
} else {
b.Say(args[0] + "[" + args[2] + "] = " + printChar(args[0], args[1], "nil", args[2]))
fmt.Println("[cmd] print")
}
b.Say(args[0] + "[" + args[2] + "] = " + accessChar(false, args[0], args[1], args[2], "nil"))
fmt.Println("[cmd] print")
break
case ".vote":