Wandering-Cursor / ontu-schedule-bot

Still in BETA - A bot for gettings schedule of ONTU
MIT License
2 stars 0 forks source link

[FR] Change (update) notification flow #31

Closed makisukurisu closed 9 months ago

makisukurisu commented 10 months ago

Is your feature request related to a problem? Please describe. Currently, bot takes about 180-250 seconds to send all the messages with schedule. I propose to update this flow to use less resources.

Describe the solution you'd like I see at least two ways for improvement.

  1. Get all the subscriptions with enabled "send schedule" feature, and fetch only those subscriptions + send schedule for all groups of this subscription at the same time.
  2. Download a list of all the schedules (or better yet - pairs) required for current messaging queue in one request, and send them. More details: Send a request to get all the schedule objects for all subscriptions with chat ids of who should receive what messages.
hikionori commented 9 months ago

Add integration with Google Calendar API. As an example, make it possible to add a weekly schedule to the calendar.

hikionori commented 9 months ago

I think that you can add an additional button to the message /schedule

Monday Tuesday Wednesday Thursday Friday Add schedule to calendar

It is call function that will generate url and redirect user to web page with google auth and add calendar, or generate link for add to calendar

makisukurisu commented 9 months ago

Hi, @hikionori, can you please provide suggestions on the matter of Google Calendar in issue #32 ?

I'll try to implement this feature, since it seems to be pretty useful. Thank you for your suggestion!

hikionori commented 9 months ago

Hi, @hikionori, can you please provide suggestions on the matter of Google Calendar in issue #32 ?

I'll try to implement this feature, since it seems to be pretty useful. Thank you for your suggestion!

Maybe this will be useful resource

makisukurisu commented 9 months ago

Closing this issue as resolved.

And opening a new one, for WS batch schedule