commands

package
v0.0.0-...-b3e7a1a Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Bomb = Simple(bomb, "this doesn't make any sense, crackedlcd!")
	Help = help
	Pong = Static("pong", "tests that the bot is listening")
)

Functions

This section is empty.

Types

type CommandHandler

type CommandHandler interface {
	Handle(args ...string) (string, error)
	CommandWithHelp
}

func Simple

func Simple(responder func(...string) (string, error), help string) CommandHandler

func Static

func Static(response, help string) CommandHandler

type CommandWithHelp

type CommandWithHelp interface {
	Help(args ...string) string
}

Jump to

Keyboard shortcuts

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