events

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(event girc.Event, kinds ...Kind) bool

func Is

func Is(event girc.Event, kind Kind) bool

Is checks if the event is of the kind we want

func Join

func Join(event girc.Event) (string, string)

Join extracts nick and channel

func Leave

func Leave(event girc.Event) (string, string)

Leave extracts nick and channel

func Message

func Message(event girc.Event) (string, string)

Message extracts nick and message

func Nick

func Nick(event girc.Event) string

Nick extracts nick

Types

type Kind

type Kind uint
const (
	CONNECTED Kind = iota // connected to the irc server
	JOINED                // join the irc channel
	JOIN                  // user joins
	LEAVE                 // user leaves
	MESSAGE               // irc message
)

Simplified set of event "kinds"

Jump to

Keyboard shortcuts

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