Added to use the twit stream in place of search which wasn't the most reliable way to find tweets on multiple search criteria, now there's a tweets object which has items from the twitter stream added to it to be popped off at a later time.
The .env file can now have the QUERY_STRING updated to include the required search terms separated with a comma:
TWEET_QUEUE_TIME is how often you want to check items in the tweets object, TWEET_TIME_OUT_MIN ..._MAX is the time delay added to the tweet object.
The above will run every ten minutes and assign a timeOut value to the tweets object between the two given TWEET_TIME_OUT_MIN ..._MAX values in this case between 1 and 10 minutes.
Added to use the
twit
stream in place of search which wasn't the most reliable way to find tweets on multiple search criteria, now there's a tweets object which has items from the twitter stream added to it to be popped off at a later time.The
.env
file can now have theQUERY_STRING
updated to include the required search terms separated with a comma:I've had to separate out
config.js
keys to cater for the additionalenv
variables that are needed:TWEET_QUEUE_TIME
is how often you want to check items in thetweets
object,TWEET_TIME_OUT_MIN
..._MAX
is the time delay added to the tweet object.The above will run every ten minutes and assign a
timeOut
value to thetweets
object between the two givenTWEET_TIME_OUT_MIN
..._MAX
values in this case between 1 and 10 minutes.Closes #86