WritheM / Wallace

https://plug.dj/writhem-radio
Other
4 stars 3 forks source link

Allow commands to configure their argument parsing #69

Open ylt opened 9 years ago

ylt commented 9 years ago

The argument parser has been implemented to be flexible and has options in order to adjust the parsing. https://github.com/WritheM/Wallace/blob/28e450aa281d11c9f79eed1457acb9748c3a6056/coreplugins/plug/PlugMessage.js#L18-L100

As part of the latest changes there is now a decorator for commands, which allows them to register the minimum user rank (and potentially other things), so this could allow for specifying options for the argument parser.

@CommandHandler("unban", {rank: "bouncer", argparser: {
    users: false
}})