commands

package
v0.0.0-...-948fcda Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "VRCGO/0.1 jilwer"

Variables

View Source
var Commands = []Command{
	{
		test,
		TestHandler,
		TestAutocompleteHandler,
	},
	{
		online,
		OnlineHandler,
		nil,
	},
	{
		config,
		ConfigHandler,
		nil,
	},
	{
		time,
		TimeHandler,
		nil,
	},
	{
		exists,
		ExistsHandler,
		ExistsAutocompleteHandler,
	},
}

Functions

func ConfigHandler

func ConfigHandler(e *handler.CommandEvent) error

func ExistsAutocompleteHandler

func ExistsAutocompleteHandler(e *handler.AutocompleteEvent) error

func ExistsHandler

func ExistsHandler(e *handler.CommandEvent) error

func OnlineHandler

func OnlineHandler(e *handler.CommandEvent) error

func TestAutocompleteHandler

func TestAutocompleteHandler(e *handler.AutocompleteEvent) error

func TestHandler

func TestHandler(e *handler.CommandEvent) error

func TimeHandler

func TimeHandler(e *handler.CommandEvent) error

func VersionHandler

func VersionHandler(b *vrcbot.Bot) handler.CommandHandler

Types

type Command

type Command struct {
	Definition          discord.ApplicationCommandCreate
	Handler             handler.CommandHandler
	AutoCompleteHandler handler.AutocompleteHandler
}

Jump to

Keyboard shortcuts

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