slack-ruby / slack-ruby-bot

The easiest way to write a Slack bot in Ruby.
MIT License
1.12k stars 187 forks source link

Boot a web server and a SlackRubyBot without an additional Thread #26

Open dblock opened 8 years ago

dblock commented 8 years ago

I've been struggling with making an instance of a slack-ruby-client without a Thread with just EventMachine. I couldn't boot a web server and a slack RTM client in the same thread successfully. It should be possible.

Currently we document to use a Thread in https://github.com/dblock/slack-ruby-bot/blob/master/TUTORIAL.md under config.ru, fix that.

musicmage4114 commented 7 years ago

So I'm a complete novice when it comes to programming, but it sounds like even just attempting to solve this could be fun and educational.

I know it's been a very long time since you posted this issue, but are you able to give me any details about what you've tried so far?

dblock commented 7 years ago

If you follow the tutorial at the end it says something like Thread.new ..., remove that and make it work.