Since people seemed to like the program I made for water reminders a few days back I decided to make a new program that has a reminder for: Water, Food, and Movement/breaks.
The Program includes:
- Ability to change the timer length on all reminders in Minutes. (Default: water:60 movement/stretch:120 food:480) (E.X. !hydration settimer 60)
- Ability to toggle reminders on and off. (Default: ON)
- Ability to toggle an audio alert for reminders on and off. (Default: OFF)
- Ability to set the audio alert to any audio hook that the bot has loaded. (Default: bell_ring) (E.x. !hydration setalert tap)
- Ability to have command responses whispered to the sender instead of filling chat with the responses. (Main Reminders still appear in chat)
- Ability to have the bot change name color to red when a command is entered wrong, or if it is telling you how to use a command. (This can also be used to change the bot’s name color without toggling the color change on, uses hex, or twitch name colors) –My testing bot does not have turbo/prime so i was not able to fully test the hex color input if someone could test this and inform me of any issues it would be greatly appreciated–
- A Lang file that you can edit if you don’t like the default messages.
- Ability to change the oz per hour the bot reminds you of. (Default: 5oz)
- adds $.changeBotColor to api (Because I guess there wasnt a need for it yet?) basically just runs /color but with an easier call. (E.x. $.changeBotColor(#aabbcc))
- Base commands: !health (is mainly for settings/toggles), !hydration, !food, !movement
UPDATE 11/20/18: Added option to color alerts, and added optional panel for beta-panel:
System folder File: healthSystem.js (22.1 KB)
Lang - system File: systems-healthSystem.js (4.2 KB)
web - Beta-Panel - pages - extra File: healthsystem.html (10.2 KB)
web -Beta-Panel - js - pages - extra File: healthsystem.js (11.1 KB)
To use the new panel you will need to go into web- betapanel - index and go down the Extras and add a link for the “healthSystem” in.
As always with new files, please let me know if there is any issues with the program and i will fix them as soon as possible
Only use if you want the version before colorable alerts.
Lang file is required for the program otherwise it wont say anything.
Feedback, or suggestions on code optimization would be greatly appreciated.