botCommands

package
v0.0.0-...-f800b22 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TMorseCmd    = "tmorse"    // wotoMorse plugin
	FMorseCmd    = "fmorse"    // wotoMorse plugin
	TrCmd        = "tr"        // wotoTranslate plugin
	TlCmd        = "tl"        // wotoTranslate plugin
	TranslateCmd = "translate" // wotoTranslate plugin
	PatCmd       = "pat"       // wotoPat plugin
	PattuCmd     = "pattu"     // wotoPat plugin
	FoxCmd       = "fox"       // wotoNekosLife plugin
	FoxyCmd      = "foxy"      // wotoNekosLife plugin

)

non-sudo commands

View Source
const (
	TestSudoCmd = "test" // for wotoTest plugin
	SudoSudoCmd = "sudo" // for wotoSudo plugin
	PatSudoCmd  = "pat"  // for wotoPat plugin
)

sudo commands

Variables

This section is empty.

Functions

func HandleCommand

func HandleCommand(message *tg.Message)

func HandleSudoCommand

func HandleSudoCommand(message *tgbotapi.Message)

func IsCommand

func IsCommand(text *string) bool

IsCommand will check if the _text is a command or not.

func IsSudoCommand

func IsSudoCommand(_text *string) bool

Types

type CmdHandler

type CmdHandler func(*tg.Message, pTools.Arg)

CmdHandler is the c

Jump to

Keyboard shortcuts

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