rikai / Showbot

🤖 An omnipresent multi-platform bot who's goal in life is become Skynet 🤖
MIT License
40 stars 18 forks source link

Switch Twitter API from polling to streaming #21

Open cbojar opened 9 years ago

cbojar commented 9 years ago

Convert the Twitter module to the streaming API instead of polling.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

rikai commented 8 years ago

I've been working on this. I've gotten the actual streaming code working on its own and it work's beautifully.

The part that I've been having trouble with is figuring how to start a new thread inside Cinchize. Currently, if I use the code I've come up with inside JBot, it locks everything up because it's waiting for a response...

Maybe i can do something like Thread.new() do...

rikai commented 7 years ago

Initial work on the tweetstream code is now in the FEATURE/tweetstream branch.

The code is pretty minimal to get it up and running, but I'm running into issues restricting the output to only the users tweets, rather than replies from others and retweets as well.