Skip to content

Better repeat time parsing #303

Description

@2Cubed

Currently, repeat adding looks like the following:

!repeat add 600 command_name arg1 arg2

However, the time argument, 600, is not very user-friendly here.

  • Switch to minutes by default.
    We don't allow for an interval less than 60 seconds anyways, so it's silly to make users multiply the number of minutes by 60 manually.

  • Better interval parsing.
    We should parse specially formatted intervals with units. For example, 90s should mean 90 seconds, 20m should mean 20 minutes, 1d should mean one day, etc.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions