irc

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package irc provides a lightning.Plugin implementation for IRC. To use IRC support with lightning, see New

bot := lightning.NewBot(...)

bot.AddPluginType("irc", irc.New)

bot.UsePluginType("irc", "irc", map[string]string{
	// ...
})

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new lightning.Plugin that provides IRC support for Lightning

It only takes in a map with the following structure:

	map[string]string{
		"server": "irc.libera.chat:6697", // your IRC server (required)
		"tls":    "true", // whether to use TLS (optional, defaults to false)
 		"nick":   "lightning", // your IRC nickname (required)
		"set_bot": "true", // whether to set the bot mode flag (+B, optional, defaults to false)
		"sasl_user": "lightning", // a username for SASL auth (optional, must be paired with sasl_pass)
		"sasl_pass": "lightning", // a password for SASL auth (optional, must be paired with sasl_user)
		"timeout":      "2", // message/sec limit preventing autokilling (optional, defaults to 2)
		"connect_cmds": "...", // commands to run on connect (optional, used to login with NickServ)
	}

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL