Skip to content
This repository was archived by the owner on Jun 7, 2018. It is now read-only.

Notify when the queue changes#4

Open
jaisonerick wants to merge 1 commit into
brodock:masterfrom
jaisonerick:feature/notify_change
Open

Notify when the queue changes#4
jaisonerick wants to merge 1 commit into
brodock:masterfrom
jaisonerick:feature/notify_change

Conversation

@jaisonerick

Copy link
Copy Markdown
Collaborator

In order to integrate other plugins, I believe the simplest solution would be to trigger a lita event when the queue changes. That's what I did here: Any time someone is "next" on the queue, the queue_change event is triggered with the room, the user name and the queue.

I changed one detail in the current behavior. When the user queues himself, and he is, now, the only one there, besides from receive the "you've been added to queue" message, he also receives the "You are next, go ahead!".

@brodock

brodock commented Oct 20, 2015

Copy link
Copy Markdown
Owner

@jaisonerick I agree with you about using events to communicate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants