bot

package
v0.0.0-...-29fb1c0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	Command
}

func NewBot

func NewBot(db *database.DB) *Bot

func (*Bot) Handle

func (b *Bot) Handle(from, msg string) string

type Command

type Command struct {
	Name        string
	Description string
	Commands    []*Command
	Action      commandFunc
}

func NewFilter

func NewFilter(db *database.DB) *Command

func NewHostname

func NewHostname(db *database.DB) *Command

func NewPriority

func NewPriority(db *database.DB) *Command

func NewReplace

func NewReplace(db *database.DB) *Command

func NewSend

func NewSend(db *database.DB) *Command

func (Command) Help

func (c Command) Help() string

func (Command) Run

func (c Command) Run(from string, args []string) string

Jump to

Keyboard shortcuts

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