verbeage

package
v0.0.0-...-e4b2dea Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutableTemplate

type ExecutableTemplate func(TemplateFields) (string, error)

type Response

type Response struct {
	Reply   *string `json:"reply"`
	Message *string `json:"message,omitempty"`
}

type ResponseParts

type ResponseParts struct {
	Reply   ExecutableTemplate
	Message ExecutableTemplate
}

func GetRandomAwaken

func GetRandomAwaken() ResponseParts

func GetRandomCount

func GetRandomCount() ResponseParts

func GetRandomFail

func GetRandomFail() ResponseParts

func GetRandomHelpMessage

func GetRandomHelpMessage() ResponseParts

func GetRandomOnConfigureMessage

func GetRandomOnConfigureMessage() ResponseParts

func GetRandomRuleMessage

func GetRandomRuleMessage() ResponseParts

type ResponseTemplate

type ResponseTemplate struct {
	Fail        []ResponseParts
	Count       []ResponseParts
	Awaken      []ResponseParts
	Rules       []ResponseParts
	Help        []ResponseParts
	OnConfigure []ResponseParts
}

type TemplateFields

type TemplateFields struct {
	Username string
}

type Verbeage

type Verbeage struct {
	Fail        []Response `json:"fail"`
	Count       []Response `json:"count"`
	Awaken      []Response `json:"awaken"`
	Rules       []Response `json:"rules"`
	Help        []Response `json:"help"`
	OnConfigure []Response `json:"on_configure"`
}

Jump to

Keyboard shortcuts

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