package
0.0.0-20250324214737-24df0a4137c7
Repository: https://github.com/r-a-dio/valkyrie.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
Execute executes the ircbot with the context and configuration given.
No description provided by the author
No description provided by the author
FindNamedSubmatches runs re.FindStringSubmatch(s) and only returns the groups that are named in the regexp.
Fmt passes the message to girc.Fmt and then calls fmt.Sprintf with arguments given.
FormatDuration formats a Duration similar to Duration.String except it adds a possible month and day value to the front if available.
FormatLongDuration formats a Duration in a long form with each unit spelled out completely and spaced properly.
FormatPlaybackDuration formats a Duration in the form mm:ss where mm are minutes and ss are seconds.
FormatPlaybackDurationHours is similar to FormatPlaybackDuration but also includes the hour part, making it "hh:mm:ss".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MessageFromError returns a friendlier, coloured error message for errors.
No description provided by the author
NewBot returns a Bot with configuration and handlers loaded.
No description provided by the author
No description provided by the author
No description provided by the author
Pluralf returns fmt.Sprintf(format, amount) but returns the string without its last character when amount == 1.
No description provided by the author
No description provided by the author
RegisterCommonHandlers registers non-command handlers that are required for a functional client.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
CommonHandlers groups all handlers that should always be registered to function as basic irc bot.
Event is a collection of parameters to handler functions, all fields are guaranteed to be populated when passed through a RegexHandler.
No description provided by the author
RegexHandlers is a collection of handlers that are triggered based on a regular expression.

# Type aliases

Arguments is a map of key:value pairs from the named capturing groups used in the regular expression used for the command.
No description provided by the author