Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve command handling logic by Gopher Nerd (#28)
- [+] refactor(commands.go): improve command handling logic - Trim the input and check if it starts with the command prefix. - Split the input into command and potential arguments. - Retrieve the command and check if it exists in the commandHandlers map. - Call the handler function for the command if there are no extra arguments. - Return false if the input is not a command.
- Loading branch information