Closed Erlite closed 3 years ago
Check sh_argumentparser.lua
and existing parsers for implementation details.
I'm interested in doing it
On the subject of months, since every month has a different amount of days, consider this:
Let's say today's the 16th of October, consider one month the time between now and the 16th of November.
@Guthen alright, it's all yours.
This will be required for things like timed bans and votes.
Examples:
!ban 60 User
- Bans "User" for 60 minutes!ban 1mo2w User
- Bans "User for a month and two weeks".Should be able to parse years, months, weeks, days, hours, minutes and seconds using short suffixes. The parsed argument should be passed in the command as a number in seconds.