Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cjoudrey/irc
IRC client library for go
https://github.com/cjoudrey/irc
Last synced: about 1 month ago
JSON representation
IRC client library for go
- Host: GitHub
- URL: https://github.com/cjoudrey/irc
- Owner: cjoudrey
- License: mit
- Created: 2015-04-03T01:49:12.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-10T04:20:20.000Z (almost 10 years ago)
- Last Synced: 2024-06-20T00:33:10.142Z (7 months ago)
- Language: Go
- Size: 148 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# irc
`irc` is a extendable IRC client library written in go.
An example usage of this library can be found at: https://github.com/cjoudrey/go-irc-bot.
**This is still work in progress and should probably not be used in production. This was really just written as a learning exercise.**
## Usage
```go
package mainimport "github.com/cjoudrey/irc"
func main() {
handler := *irc.NewEventHandler()client := irc.Client{
Host: "irc.freenode.net",
Port: "6697",
Nickname: "cjoudrey",
Ident: "cjoudrey",
Realname: "Christian Joudrey",
Secure: true,
Handler: handler,
}handler.On("001", func(c *irc.Client, m *irc.Message) {
c.Write("JOIN #go-nuts")
})client.Connect()
}
```