(input: string)
| 71 | * Returns null if the input is not a recognized command. |
| 72 | */ |
| 73 | export function resolveCommand(input: string): BotCommand | null { |
| 74 | const key = input.split(/\s/)[0].toLowerCase(); |
| 75 | return COMMAND_ALIASES[key] ?? null; |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Get commands that should appear in /help output. |
no outgoing calls
no test coverage detected