handlers

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: AGPL-3.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandHandlers = []DescCommandHandler{
	{"start", "开始使用", handleHelpCmd},
	{"silent", "切换静默模式", handleSilentCmd},
	{"storage", "设置默认存储端", handleStorageCmd},
	{"dir", "管理存储文件夹", handleDirCmd},
	{"rule", "管理自动存储规则", handleRuleCmd},
	{"watch", "监听聊天(UserBot)", handleWatchCmd},
	{"unwatch", "取消监听聊天(UserBot)", handleUnwatchCmd},
	{"save", "保存文件", handleSilentMode(handleSaveCmd, handleSilentSaveReplied)},
	{"config", "修改配置", handleConfigCmd},
	{"fnametmpl", "设置文件命名模板", handleConfigFnameTmpl},
	{"update", "检查更新", handleUpdateCmd},
	{"help", "显示帮助", handleHelpCmd},
}

Functions

func Register

func Register(disp dispatcher.Dispatcher)

Types

type DescCommandHandler added in v0.34.1

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

type MediaGroupHandler added in v0.26.0

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

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