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

Adding capability to run in background and send messages. #89

Closed
wants to merge 1 commit into from

Conversation

cristianowa
Copy link

With the intent to provide a better interface for doing things like the #42 I made a modification so, if needed, the bot can be executed in background and can be used to send messages still.
Based on that one can do the cron execute after it and just call bot.send_message().

For doing that I moved the loop from the dispatcher to to the bot and created a thread if it was running on background.

If used with default parameters, the behavior remains the same.

Refactoring loop to handle_events.
Running on background.
Adding lock and moving loop out of dispatcher.
@jtatum
Copy link
Collaborator

jtatum commented Apr 8, 2017

This is a pretty major change to the behavior of the bot. In particular, it seems to remove the thread pool by default. Can you document some use cases? Might be nice to compare this approach to the one taken in #95. Is there any way to test this change?

@lins05
Copy link
Collaborator

lins05 commented May 28, 2017

ping @cristianowa

@cristianowa
Copy link
Author

Closing this since has been a while.

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.

3 participants