structs

package
v0.0.0-...-3dc37b2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 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 CmdInput

type CmdInput struct {
	// contains filtered or unexported fields
}

CmdInput holds a command

func (*CmdInput) ArgsContains

func (I *CmdInput) ArgsContains(query []string) bool

ArgsContains looks for and returns a bool depending on if the args in the command has a specific string in it from a slice

func (*CmdInput) GetArgs

func (I *CmdInput) GetArgs() []string

GetArgs returns the args

func (*CmdInput) GetArgsLowercase

func (I *CmdInput) GetArgsLowercase() []string

GetArgsLowercase returns the args

func (*CmdInput) GetCommand

func (I *CmdInput) GetCommand() string

GetCommand returns the command

func (*CmdInput) IsAdmin

func (I *CmdInput) IsAdmin() bool

IsAdmin returns true of command issuer is an admin to the bot

func (*CmdInput) NumberOfArgsAre

func (I *CmdInput) NumberOfArgsAre(n int) bool

func (*CmdInput) NumberOfArgsAreAtleast

func (I *CmdInput) NumberOfArgsAreAtleast(n int) bool

func (*CmdInput) ParseInput

func (I *CmdInput) ParseInput(input string, adminPerm bool)

ParseInput parses a input string from the user It creates the CmdInput struct with the required data

Jump to

Keyboard shortcuts

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