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