Bit more functional testcase
This commit is contained in:
parent
d5a4d7ea4a
commit
1bcc03ce9a
6
test.go
6
test.go
@ -33,7 +33,11 @@ func main() {
|
|||||||
irc.Join("#ggpre")
|
irc.Join("#ggpre")
|
||||||
}*/
|
}*/
|
||||||
if event.Code == irc.IRC_WELCOME {
|
if event.Code == irc.IRC_WELCOME {
|
||||||
irccon.Join("#ggpre")
|
irccon.Join("#gotestchan")
|
||||||
|
} else if event.Code == irc.IRC_PRIVMSG {
|
||||||
|
if event.Message == "!test" {
|
||||||
|
irccon.Privmsg(event.Target, "Whatever man!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fmt.Printf("%#v\n", event);
|
fmt.Printf("%#v\n", event);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user