Master-Bot
Master-Bot copied to clipboard
Reminder - Dashboard Branch
Updated 06/21/2022
revamp of #563 and rebuild of #726 for the dashboard branch
Make sure the host's clock is set correctly
Function
This uses Direct Messages to function, and was designed to be personal reminders, so most of the responses are ephemeral. You can set reminders by Text Channel or Direct Message All reminders are Direct Messages (can't annoy other people) Postges is called every 30 Mins, if any event fit in that time span make a shortTimer if it had a repeat options, then create a new db entry when message is sent
Objectives
- [x] Save to DB
- [x] Sub Commands View/Set/Remove/Save-timezone
- [x] Small input chain - Minimum of 2 Inputs to set a reminder
event
andtime
- [x] TimeZones - Get users Timezone offset by asking for Local Date and Time
- [x] repeat options - "daily", "weekly", "yearly", "monthly*"
- [x] self-contained-ish - tried to lower the number of impacted files, hopefully for easier mergers
- [x] dashboard branch compatible
*Monthly option can only be used if the desired Day is less than the 28th
Testing Results Windows 10 (x64/Local) *Passed Raspian OS (arm64/Local) *Passed Debian (arm64 & x64 / Local) *Passed
Preview
-
Reminders
-
Error Message
Much Love -Bacon
Changed to a draft, will be switching to use Redis instead. Will move it back to a PR when it can run and tested.
Much Love -Bacon
i will repost this when i have a working redis version, i havn't forgotten :D. i need to refresh myself with how redis is implemented here a bit better so I don't create issues (i have goofed a few times now) also I found a few flaws with the approach used in this PR (Timezones and Daylight Saving is a nightmare, LOL)
Much Love -Bacon