uaf-cs / nookbot

BSD 3-Clause "New" or "Revised" License
6 stars 6 forks source link

Better argument parsing #10

Open katlyn opened 3 years ago

katlyn commented 3 years ago

Currently the Eris CommandClient just splits messages on space to collect arguments. Implementing a better argument parser ( respect quotes and escaped characters) could be useful in the future and for commands like #9. This could be implemented by extending CommandClient or by creating a utility function.

tomhooijenga commented 3 years ago

Eris has added a hook for a custom arguments parser in this pr. However, it's in dev and not yet released. Once it is released, it would be very easy to add using split-string for example.