Vetrox / squirrelbot

Ein discord Bot für die Fachschaft des FB 12
MIT License
2 stars 1 forks source link

[f-singleparam] Single Parameter Omission #92

Open Baseng0815 opened 3 years ago

Baseng0815 commented 3 years ago

If a module only needs one parameter, e.g. chmgr create_area -name MyArea, the user should be able to omit -name as it is clear from context which parameter is meant. This would make many commands way more intuitive and easier to use.

bot.api.parse_message could return just the parameter value if it detects no explicit parameter name. This could then directly be used by the module functions as they know how many parameters they need.