irc

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 13 Imported by: 0

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(cfg config.IRCConfig, messageBus *bus.MessageBus) (*IRCChannel, error)

NewIRCChannel creates a new IRC channel.

func (*IRCChannel) Send

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

Send sends a message to an IRC channel or user.

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