Slirc links an IRC and a Slack channel.
NewBridge has the following signature:
func NewBridge(slackToken, slackChannel, ircServer, ircChannel, ircNick string, ircSSL, insecureSkipVerify bool, ircAuth *IRCAuth) (bridge *Bridge)package main
import (
"github.com/simonkern/slirc"
)
// Example with IRC Authentication
// Slack Chan without "#"-prefix
func main() {
ircAuth := &slirc.IRCAuth{Target: "NickServ", Msg: "IDENTIFY FooUser BarPassword"}
slirc.NewBridge("SLACKTOKEN",
"slackChan", "IRC-SERVER", "IRCChannel", "IRCNick", true, true, ircAuth)
select {}
}package main
import (
"github.com/simonkern/slirc"
)
// Example without IRC Authentication
// Slack Chan without "#"-prefix
func main() {
slirc.NewBridge("SLACKTOKEN",
"slackChan", "IRC-SERVER", "IRCChannel", "IRCNick", true, true, nil)
select {}
}