Improved MOTD module #1

Open
opened 2018-08-20 05:56:04 +00:00 by kuschelyagi · 0 comments
Owner

MOTD module should be rewritten to support multiple possible daily messages, either selected randomly or sequentially. I see the "base" module running once per day (as it does now) and, instead of just outputting a specified message, will execute a series of handler functions in order to determine what message to output. The first function to return a message "wins" so certain messages (e.g. holiday messages) will take precedence.

As for what the actual messages will be, I see it looking like so:

  • Monday: Marx, Garfield, Shadow Garfield, Sweet Bro
  • Tuesday: Tuesday Dog, Shadow Tuesday Dog, Hella Jeff, "Time is an endless loop"
  • Wednesday: Wednesday frog
  • Thursday: Thursday Garfield
  • Friday: Rebecca Black, JoJo Friday
  • Saturday: ?
  • Sunday: ? (Sunday Vegeta?)
  • Special occasions: Februaryween, Christmas, Friday the 13th, Thursday the 20th

I want to pair related images together such as Garfield -> Tuesday Dog, Shadow Garfield -> Shadow Tuesday Dog, Sweet Bro -> Hella Jeff, etc. This leaves Marx and "endless loop" Tuesday dog, which is either not ideal or the best thing in the world.

MOTD module should be rewritten to support multiple possible daily messages, either selected randomly or sequentially. I see the "base" module running once per day (as it does now) and, instead of just outputting a specified message, will execute a series of handler functions in order to determine what message to output. The first function to return a message "wins" so certain messages (e.g. holiday messages) will take precedence. As for what the actual messages will be, I see it looking like so: * Monday: Marx, Garfield, Shadow Garfield, Sweet Bro * Tuesday: Tuesday Dog, Shadow Tuesday Dog, Hella Jeff, "Time is an endless loop" * Wednesday: Wednesday frog * Thursday: Thursday Garfield * Friday: Rebecca Black, JoJo Friday * Saturday: ? * Sunday: ? (Sunday Vegeta?) * Special occasions: Februaryween, Christmas, Friday the 13th, Thursday the 20th I want to pair related images together such as Garfield -> Tuesday Dog, Shadow Garfield -> Shadow Tuesday Dog, Sweet Bro -> Hella Jeff, etc. This leaves Marx and "endless loop" Tuesday dog, which is either not ideal or the best thing in the world.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: elsanctum/tenquestionmarks#1
No description provided.