Closed Adondriel closed 3 years ago
@Command(/^\?conf set ([\w.]+) (string|number|boolean) (.+)$/) async onSet(message: CommandMessage) { console.log(`args: ${JSON.stringify(message.args)}`) // {} }
@Command() @Rules(/^\?conf set ([\w.]+) (string|number|boolean) (.+)$/) async onSet(message: CommandMessage) { console.log(`args: ${JSON.stringify(message.args)}`) // {} }
will now return the regex group(s) instead of an empty array.
will now return the regex group(s) instead of an empty array.