Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Timer #153

Open
9 tasks
Defelo opened this issue Oct 1, 2021 · 2 comments
Open
9 tasks

Timer #153

Defelo opened this issue Oct 1, 2021 · 2 comments

Comments

@Defelo
Copy link
Member

Defelo commented Oct 1, 2021

Commands:

  • .timer create <timestamp> <message>: create a new timer that will send message at timestamp via direct messages to the user. The number of timers per user is limited (configurable).
  • .timer list: list all active timers
  • .timer edit timestamp <id>: edit the timestamp of an active timer
  • .timer edit message <id>: edit the message of an active timer
  • .timer delete <id>: delete an active timer
  • .timer snooze <id> <timestamp>: reactivate timer after message has been sent and reset timestamp
  • automatically delete inactive timers after a week
  • .until <timestamp>: calculate the timedelta until now and timestamp and print it in format x days <hours>:<minutes>:<seconds> omit days if x is 0

Examples for <timestamp>:

  • <unixtimestamp>

  • yyyy-mm-dd hh:mm:ss

  • yyyy-mm-dd

  • yy-mm-dd

  • dd-mm-yy

  • dd-mm-yyyy

  • 5 min

  • 5 minutes

  • 1 hour

  • next christmas

  • christmas

  • 5 months

  • 3 years

  • 180 seconds

  • first week of august
    case does not matter
    maybe there is a library to do this parsing

  • wiederkehrende timer (jeden tag um 20 uhr, bis man das ausmacht) (verhindert, dass man einen timer stellt, und das, was drin ist, dann doch vergisst, indem der einen täglich erinnert)

@AlbertUnruh
Copy link

AlbertUnruh commented Oct 18, 2021

I found an interesting library for this task: https://pypi.org/project/dateparser

@ghost
Copy link

ghost commented Jan 3, 2022

@Defelo Defelo added this to Issues Mar 30, 2022
@Defelo Defelo moved this to Todo in Issues Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Todo
Development

No branches or pull requests

2 participants