Registry / networking / lrstanley-girc

lrstanley-girc

JSON →
library1.1.1gogounverified

A high-level, flexible IRC library for Go with support for user/channel tracking and auto-reconnect.

go get github.com/lrstanley/girc
INSTALL
IMPORT
SIG · LRSTANLEY-GIRC
L
lrstanley-girc
networkinggov1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

girc
github.com/lrstanley/girc

Connects to an IRC server and joins a channel.

package main import ( "github.com/lrstanley/girc" ) func main() { client := girc.New(girc.Config{ Server: "irc.libera.chat", Port: 6667, Nick: "mybot", User: "mybot", Name: "My Bot", }) client.Handlers.Add(girc.CONNECTED, func(c *girc.Client, e girc.Event) { c.Cmd.Join("#mychannel") }) if err := client.Connect(); err != nil { panic(err) } client.Run() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
lrstanley-girc — go get lrstanley-girc · libregistry