futaba icon indicating copy to clipboard operation
futaba copied to clipboard

Allow written time descriptions in moderation commands

Open emmiegit opened this issue 6 years ago • 1 comments

Instead of only allow a single integer designating the number of minutes, a description should be allowed. (See dateparser) Ensure it supports negative timestamps, as phrases such as 10 minutes are interpreted as referring to time in the past.

The empty string, a single dash (-), or amount referring to 0 minutes will be interpreted as not imposing any time restriction.

This should be applied to all the moderation commands, such as !ban, !mute, etc.

emmiegit avatar Nov 21 '18 02:11 emmiegit