I'm working on a project using a discord bot and the Twitter stream API and I can't figure out how I can get out of the streaming loop and connect the bot to discord because the stream API request act as an infinite loop always waiting for the pieces of information.