irc

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRCChannel

type IRCChannel struct {
	*channels.BaseChannel
	// contains filtered or unexported fields
}

IRCChannel implements the Channel interface for IRC servers.

func NewIRCChannel

func NewIRCChannel(bc *config.Channel, cfg *config.IRCSettings, messageBus *bus.MessageBus) (*IRCChannel, error)

NewIRCChannel creates a new IRC channel.

func (*IRCChannel) Send

func (c *IRCChannel) Send(ctx context.Context, msg bus.OutboundMessage) ([]string, error)

Send sends a message to an IRC channel or user, one PRIVMSG per line, each within the protocol's 512-byte line limit, at a pace servers accept.

func (*IRCChannel) Start

func (c *IRCChannel) Start(ctx context.Context) error

Start connects to the IRC server and begins listening.

func (*IRCChannel) StartTyping

func (c *IRCChannel) StartTyping(ctx context.Context, chatID string) (func(), error)

StartTyping implements channels.TypingCapable using IRCv3 +typing client tag. Requires typing.enabled in config and server support for message-tags capability.

func (*IRCChannel) Stop

func (c *IRCChannel) Stop(ctx context.Context) error

Stop disconnects from the IRC server.

Jump to

Keyboard shortcuts

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