9.json (851B)
1 { 2 "number": 9, 3 "title": "Example Bot's Command Enum doesn't produce the same chat command as the command's help text", 4 "state": "closed", 5 "author": "donicrosby", 6 "created_at": "2021-11-18T01:27:04Z", 7 "closed_at": "2022-02-19T17:37:25Z", 8 "labels": [], 9 "assignees": [], 10 "body": "The Command block for the Enum that is used to generate the list of commands isn't correct:\r\nhttps://github.com/MTRNord/mrsbfh/blob/e073f78f27626d407ba54e3d32be9acaf8e8d9ce/example-bot/src/commands/mod.rs#L7-L10\r\n\r\nThe 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)\r\n\r\nPedantic fix, but it would keep the docs and example correct so that future users don't have a tripping hazard.", 11 "comments": [] 12 }