readme
This commit is contained in:
parent
093f176211
commit
7efd3aefc6
23
readme.md
Normal file
23
readme.md
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
[](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()
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user