Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent duplicate shoutouts #6

Merged
merged 2 commits into from
Sep 25, 2014

Conversation

Reanmachine
Copy link
Contributor

Fixes #1

 - Refactored Chat Handling to use a handler pattern, allowing for registration of many
   handlers for chat messages. Some will process all messages, some will process and then
   prevent further execution.
 - Refactored ShoutOut interval timer to use a self-scheduling pattern, this allows us to
   have it re-schedule for a newly updated time.
 - Moved ShoutOut logic into the GU object
 - Updated ShoutOut logic to prevent it from shouting out if the last person to talk was the
   broadcaster and the last time they talked was about the last time the shout out was sent.
pironic added a commit that referenced this pull request Sep 25, 2014
Prevent duplicate shoutouts regardless of time thereby fixing issue #1
@pironic pironic merged commit 774404e into WritheM:master Sep 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

if the bot was the last person to talk, postpone it's scheduled callout.
2 participants