EverOddish / DrFujiBot

DrFujiBot is a client-side Twitch chat bot that provides a command-based interface to Pokemon data.
GNU General Public License v3.0
9 stars 9 forks source link

Allow users to set their own custom welcome message #7

Open EverOddish opened 5 years ago

EverOddish commented 5 years ago

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.

EverOddish commented 5 years ago

See comments in #11 about creating a TwitchUser model to centralize per-user data into one model.