This commit is contained in:
blackbeard420 2025-03-06 21:41:28 -05:00
parent 093f176211
commit 7efd3aefc6

23
readme.md Normal file
View File

@ -0,0 +1,23 @@
[![Go Report Card](https://goreportcard.com/badge/git.thc420.dev/blackbeard420/irc)](https://goreportcard.com/report/git.thc420.dev/blackbeard420/irc)
# irc
Basic but complete irc library for go
- [x] Callbacks for Messages (direct and channel), Joins/parts/quits and numeric codes
- [x] Maintains list of nicks in a channel
- [ ] TLS support (upcoming)
## usage
basic example:
```go
con := NewConnection("irc.ouch.chat:6667", "irc-go", "irc-go", nil, []string{channel})
con.PrivmsgCallback = func(target, from, msg) {
log.Printf("message from %s in channel %s > %s", GetNick(from), target, msg)
}
con.Run()
```