9.md (742B)
1 # #9 Example Bot's Command Enum doesn't produce the same chat command as the command's help text 2 3 - **State:** closed 4 - **Author:** @donicrosby 5 - **Created:** 2021-11-18T01:27:04Z 6 - **Closed:** 2022-02-19T17:37:25Z 7 8 --- 9 10 The Command block for the Enum that is used to generate the list of commands isn't correct: 11 https://github.com/MTRNord/mrsbfh/blob/e073f78f27626d407ba54e3d32be9acaf8e8d9ce/example-bot/src/commands/mod.rs#L7-L10 12 13 The command that this generates is `!helloworld` (short command: `!hw`, is correct) rather than `!hello_world`. The enum value should be `Hello_World` (breaks rust's naming conventions, however) 14 15 Pedantic fix, but it would keep the docs and example correct so that future users don't have a tripping hazard. 16