plugins

package
v0.0.0-...-e74e9ed Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EchoPattern = regexp.MustCompile(`^!echo\s+(?P<text>\S.*)$`)
View Source
var RollPattern = regexp.MustCompile(`^!roll(\s+(?P<expression>.*))?$`)
View Source
var SearchPattern = regexp.MustCompile(`^!(search|brave|ddg|bing|g)\s+(?P<query>\S.*)$`)

Functions

func EchoHandler

func EchoHandler(writer *textproto.Writer, lgroups, bgroups map[string]string)

func RollHandler

func RollHandler(writer *textproto.Writer, lgroups, bgroups map[string]string)

func SearchHandler

func SearchHandler(writer *textproto.Writer, lgroups, bgroups map[string]string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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