irc/irc_test.go
2020-09-03 23:29:52 -04:00

27 lines
483 B
Go

package irc
import (
"fmt"
"log"
"testing"
"time"
)
func TestSimpleIrc(t *testing.T) {
con := NewConnection("thc420.xyz:6667", "irc-go", "irc-go", nil, []string{"#freedom", "#test"})
go con.Run()
time.Sleep(10 * time.Second)
con.SendPrivmsg("#freedom", "\x0356 FUCK YALL BITCHES")
for _, v := range con.userList["#freedom"] {
con.SendPrivmsg("#freedom", fmt.Sprintf("yo %s fuck you", v))
}
}
func TestParser(t *testing.T) {
log.Printf("testing %s\n", t.Name())
}