MCPcopy Create free account
hub / github.com/astercloud/aster / IsSlashCommand

Method IsSlashCommand

pkg/commands/executor.go:40–42  ·  view source on GitHub ↗

IsSlashCommand 检查消息是否为斜杠命令

(message string)

Source from the content-addressed store, hash-verified

38
39// IsSlashCommand 检查消息是否为斜杠命令
40func (e *Executor) IsSlashCommand(message string) bool {
41 return strings.HasPrefix(strings.TrimSpace(message), "/")
42}
43
44// Execute 执行命令
45func (e *Executor) Execute(ctx context.Context, commandName string, args map[string]string) (string, error) {

Callers 2

SendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected