Linux-statt-Windows / BOLT

(B)OLT (O)perator for (L)inux statt Windows (T)elegram groups.
GNU General Public License v3.0
1 stars 1 forks source link

Module request: automatically remind a group about an event #8

Open niklas-heer opened 9 years ago

niklas-heer commented 9 years ago

It would be really handy, if you could predefine dates on which the Bot automatically posts a reminder for an event. Preferably these events could be defined via CalDAV calender.

Is this possible?

dj95 commented 9 years ago

For the events, we could probably add json-data to the lsw-api, which can look like:

[{
  "date":"16.07.2015",
  "time":"21:00",
  "title":"Community Mumble",
  "location":"Mumble",
  "repeat":"weekly"
}, {
  "date":"15.07.2015",
  "time":"21:30",
  "title":"CodeCamp",
  "location":"Mumble",
  "repeat":"weekly"
}]
niklas-heer commented 9 years ago

Thats a really good idea!

I would refine it a little bit:

{ 
    ...,
    ...,
    ...,
    "reminders": [{
        "date":"15.07.2015", (*)
        "time":"21:30",
        "title":"CodeCamp", (*)
        "location":"Mumble",
        "repeat":"weekly"
    },
    ...],
    ...,
    ...
}

(*) required. All other data could be empty, if not needed.
dj95 commented 9 years ago

Sounds great, but essentially all those reminders should stay in one array.

niklas-heer commented 9 years ago

You're right. I've corrected it.