hubot-twitter-egosearch
v0.0.10
Published
Twitter ego-searching for hubot
Downloads
4
Maintainers
Readme
hubot-twitter-egosearch
Twitter ego-searching for hubot.
Installation
Install via npm.
$ cd /path/to/hubot
$ npm install --save hubot-twitter-egosearch
And add to external-scripts.json
.
$ cat external-scripts.json
["hubot-twitter-egosearch"]
Configuration
# required
$ export HUBOT_TWITTER_EGOSEARCH_CONSUMER_KEY="twitter_consumer_key_here"
$ export HUBOT_TWITTER_EGOSEARCH_CONSUMER_SECRET="twitter_consumer_secret_here"
$ export HUBOT_TWITTER_EGOSEARCH_ACCESS_TOKEN="twitter_access_token_here"
$ export HUBOT_TWITTER_EGOSEARCH_ACCESS_TOKEN_SECRET="twitter_access_token_secret_here"
# optional
$ export HUBOT_TWITTER_EGOSEARCH_SHOW_DETAIL="true" # if "true" then response will be more detailed
$ export HUBOT_TWITTER_EGOSEARCH_SEARCH_INTERVAL="1000 * 60 * 5" # defaults to "1000 * 60" msec
Usage
# Start searching with "hubot script"
human> hubot egosearch add hubot script
hubot> [13551] Now searching for hubot script
# Stop searching with "hubot script"
human> hubot egosearch rm 13551
hubot> Stopped searching for hubot script
# List searching keywords
human> hubot egosearch list
hubot> [13551] hubot script @room
hubot> [53595] some search word @room
# Also can use advanced search query
human> hubot egosearch add "hubot-twitter-egosearch" -from:ttskch
hubot> [29107] Now searching for "hubot-twitter-egosearch" -from:ttskch