sammy

package
v0.0.0-...-b5715e7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Tag  string
	Exec string
	Desc string
}

func NewCommand

func NewCommand(tag, exec, desc string) *Cmd

type Command

type Command interface {
	Description() string
	Evaluate(msg *tgbotapi.Message) (bool, error)
}

type Response

type Response struct {
	Response string
	Status   int
}

func (Response) String

func (r Response) String() string

type Sammy

type Sammy struct {
	Brain  *viper.Viper
	Config *viper.Viper
	Api    *tgbotapi.BotAPI
}

func NewSammy

func NewSammy(brain *viper.Viper, api *tgbotapi.BotAPI) *Sammy

Jump to

Keyboard shortcuts

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