handlers

package
v0.48.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: AGPL-3.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandHandlers = []DescCommandHandler{
	{"start", i18nk.BotMsgCmdStart, handleHelpCmd},
	{"silent", i18nk.BotMsgCmdSilent, handleSilentCmd},
	{"storage", i18nk.BotMsgCmdStorage, handleStorageCmd},
	{"dir", i18nk.BotMsgCmdDir, handleDirCmd},
	{"rule", i18nk.BotMsgCmdRule, handleRuleCmd},
	{"save", i18nk.BotMsgCmdSave, handleSilentMode(handleSaveCmd, handleSilentSaveReplied)},
	{"dl", i18nk.BotMsgCmdDl, handleDlCmd},
	{"aria2dl", i18nk.BotMsgCmdAria2dl, handleAria2DlCmd},
	{"task", i18nk.BotMsgCmdTask, handleTaskCmd},
	{"cancel", i18nk.BotMsgCmdCancel, handleCancelCmd},
	{"config", i18nk.BotMsgCmdConfig, handleConfigCmd},
	{"fnametmpl", i18nk.BotMsgCmdFnametmpl, handleConfigFnameTmpl},
	{"help", i18nk.BotMsgCmdHelp, handleHelpCmd},
	{"parser", i18nk.BotMsgCmdParser, handleParserCmd},
	{"watch", i18nk.BotMsgCmdWatch, handleWatchCmd},
	{"unwatch", i18nk.BotMsgCmdUnwatch, handleUnwatchCmd},
	{"lswatch", i18nk.BotMsgCmdLswatch, handleLswatchCmd},
	{"syncpeers", i18nk.BotMsgCmdSyncpeers, handleSyncpeersCmd},
	{"update", i18nk.BotMsgCmdUpdate, handleUpdateCmd},
}

Functions

func Register

func Register(disp dispatcher.Dispatcher)

Types

type DescCommandHandler added in v0.34.1

type DescCommandHandler struct {
	Cmd  string
	Desc i18nk.Key
	// contains filtered or unexported fields
}

type MediaGroupHandler added in v0.26.0

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

func (*MediaGroupHandler) SetupTimeout added in v0.38.4

func (m *MediaGroupHandler) SetupTimeout(timeoutSec int)

Directories

Path Synopsis
utils
re
shortcut
Some shortcuts for duplicate code in handlers, they should return dispatcher errors
Some shortcuts for duplicate code in handlers, they should return dispatcher errors

Jump to

Keyboard shortcuts

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