strinking / futaba

Discord bot for the Programming server
MIT License
28 stars 10 forks source link

Allow written time descriptions in moderation commands #225

Open emmiegit opened 6 years ago

emmiegit commented 6 years ago

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 commented 6 years ago

cc: @Rageoholic