bot: Index | Files

package irc

import ""

Package irc implements IRC handlers for


Package Files


func Run Uses

func Run(c *Config)

Run reads the Config, connect to the specified IRC server and starts the bot. The bot will automatically join all the channels specified in the configuration

type Config Uses

type Config struct {
    Server        string   // IRC server:port. Ex:
    Channels      []string // Channels to connect. Ex: []string{"#go-bot", "#channel mypassword"}
    User          string   // The IRC username the bot will use
    Nick          string   // The nick the bot will use
    Password      string   // Server password
    UseTLS        bool     // Should connect using TLS?
    TLSServerName string   // Must supply if UseTLS is true
    Debug         bool     // This will log all IRC communication to standad output

Config must contain the necessary data to connect to an IRC server

Package irc imports 5 packages (graph). Updated 2017-05-09. Refresh now. Tools for package owners. This is a quick bug-fix fork (has fewer than three commits, and only during the week it was created).