Create a !setwelcome command to allow a user to store a brief message to be output when they enter chat. A new WelcomeMessage model will be necessary that tracks a username, the last time the user sent a chat message, and a reference to a SimpleOutput for the custom message.
The new command will create the appropriate WelcomeMessage object. Command handling may need to be modified to pass along the source username to the handler function.
A gap of 8 hours is likely appropriate for much time should pass between messages from the same user to decide to display the welcome message. The welcome message should also be checked against the BannedPhrases object list.
Create a !setwelcome command to allow a user to store a brief message to be output when they enter chat. A new WelcomeMessage model will be necessary that tracks a username, the last time the user sent a chat message, and a reference to a SimpleOutput for the custom message.
The new command will create the appropriate WelcomeMessage object. Command handling may need to be modified to pass along the source username to the handler function.
A gap of 8 hours is likely appropriate for much time should pass between messages from the same user to decide to display the welcome message. The welcome message should also be checked against the BannedPhrases object list.