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

Make the bot more easily extendable by using pub/sub #5

Merged
merged 1 commit into from
Mar 3, 2015

Conversation

emiln
Copy link
Owner

@emiln emiln commented Mar 3, 2015

Core.async has a very fitting publishing/subscription flow that should work well for Stalmanu. In order to hook into events you should now:

  1. Create a (client!).
  2. Call (sub) on the returned publisher with the topic you're interested in.
  3. Push message text onto the send channel that was returned by (client!).

A simple example (for the interjection rant) has been implemented.

emiln added a commit that referenced this pull request Mar 3, 2015
Make the bot more easily extendable by using pub/sub
@emiln emiln merged commit fe98e8c into master Mar 3, 2015
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.

None yet

1 participant