Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better repeat time parsing #303

Open
2 tasks
2Cubed opened this issue May 9, 2017 · 1 comment
Open
2 tasks

Better repeat time parsing #303

2Cubed opened this issue May 9, 2017 · 1 comment

Comments

@2Cubed
Copy link
Member

2Cubed commented May 9, 2017

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.

@MrLotU
Copy link

MrLotU commented May 9, 2017

I like the idea, kinda related to #268 I think if you were to combine the two that would for some awesome saucy stuff!

@Innectic Innectic added this to Backlog in Features Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Features
  
Backlog
Development

No branches or pull requests

2 participants