Delay for MOTD: delay = ?? seconds (currently 10 songs)
On load, the bot needs to:
Get the MOTD info (isEnabled, nextMessage, messages, lastAnnounceTime)
If NOT isEnabled or too soon (now() < lastAnnounceTime + delay), skip to end
If nextMessage is not in messages, fix nextMessage
Print the nextMessage in messages
Update nextMessage and lastAnnounceTime
Wait delay, then skip to beginning of this list
Add an interface to the admin panel to:
Add messages to the cycler
Remove messages from the cycler
Reorder messages in the cycler
Set the next message
Note: Adding and removing messages may invalidate the "next message" ID, add a failsafe (only do this when it fails, not when making changes) to do a random ID
Delay for MOTD:
delay = ?? seconds
(currently 10 songs)On load, the bot needs to:
NOT isEnabled
or too soon (now() < lastAnnounceTime + delay
), skip to endnextMessage
is not inmessages
, fixnextMessage
nextMessage
inmessages
nextMessage
andlastAnnounceTime
delay
, then skip to beginning of this listAdd an interface to the admin panel to: