cli

package
v0.0.0-...-32366e0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CliInit

func CliInit(amigo AmigoExecutionContext)

func HandleCommand

func HandleCommand(cmd string, msg string, discordSession *discordgo.Session, guildId string, channelId string)

func ValidateExecutionContext

func ValidateExecutionContext(amigo AmigoExecutionContext) bool

Types

type AmigoExecutionContext

type AmigoExecutionContext struct {
	Token      string
	Command    string
	Channel    string
	Message    string
	Guild      string
	ServerMode bool
}

func ParseArgs

func ParseArgs() AmigoExecutionContext

Parse args and creates the AmigoExecutionContext object

Jump to

Keyboard shortcuts

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