Skip to content

pascalhein/slirc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slirc

Build Status

Slirc links an IRC and a Slack channel.

Example Usage

NewBridge has the following signature:

func NewBridge(slackToken, slackChannel, ircServer, ircChannel, ircNick string, ircSSL, insecureSkipVerify bool, ircAuth *IRCAuth) (bridge *Bridge)

Example with IRC authentication

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 {}
}

Example without IRC authentication

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 {}
}

About

slirc - bridging slack and irc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%