Skip to content

Conversation

@aswiniip
Copy link

In this I have tried to implement the approach which will allow different channels to have different meeting reminders.

  • I used the app persistence to implement it. I created two functions one to save the data and another to get the stored data.
  • I am pushing the new schedules associated with each room in the app persistence when the scheduleMeet command is called. Then I am trying to find the reminder schedule which is nearest to the moment when the command was used using the dynamic programming approach.
  • I created a schedule[7][24][60] array which will store the schedules of all the rooms. Then iterated through the schedules of different meetingrooms and stored the value of roomname in the array. Now i started to iterate from the current day and time (at the time of execution) and find the nearest undefined stored value of sch[][][] and broke off the loops. Now we found out the most recent scheduled meet and then I scheduled it.
  • The processor function which will be called at the scheduled time also implements a similar method after the reminder message is sent to find out the next nearest schedule and schedules it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant