printing should be k
This commit is contained in:
parent
28451736a5
commit
225da0669c
11
bot.go
11
bot.go
@ -49,7 +49,7 @@ var dict = map[string]string{
|
|||||||
|
|
||||||
var argmap = map[string]int{
|
var argmap = map[string]int{
|
||||||
".set": 4,
|
".set": 4,
|
||||||
".print": 3,
|
".print": 2,
|
||||||
".vote": 1,
|
".vote": 1,
|
||||||
".d": 1,
|
".d": 1,
|
||||||
".mode": 1,
|
".mode": 1,
|
||||||
@ -155,13 +155,8 @@ func (b *Bot) Command(nick string, msg string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
case ".print":
|
case ".print":
|
||||||
if len(args) == 4 {
|
b.Say(args[0] + "[" + args[2] + "] = " + accessChar(false, args[0], args[1], args[2], "nil"))
|
||||||
b.Say(args[0] + "[" + args[3] + "] = " + printChar(args[0], args[1], args[2], args[3]))
|
fmt.Println("[cmd] print")
|
||||||
fmt.Println("[cmd] print")
|
|
||||||
} else {
|
|
||||||
b.Say(args[0] + "[" + args[2] + "] = " + printChar(args[0], args[1], "nil", args[2]))
|
|
||||||
fmt.Println("[cmd] print")
|
|
||||||
}
|
|
||||||
break
|
break
|
||||||
|
|
||||||
case ".vote":
|
case ".vote":
|
||||||
|
Loading…
Reference in New Issue
Block a user