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.
Click to show internal directories.
Click to hide internal directories.