Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darashi/egoido
Ego-search tool for idobata.io
https://github.com/darashi/egoido
Last synced: 13 days ago
JSON representation
Ego-search tool for idobata.io
- Host: GitHub
- URL: https://github.com/darashi/egoido
- Owner: darashi
- Created: 2013-08-12T08:45:38.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-03-13T03:31:44.000Z (almost 8 years ago)
- Last Synced: 2024-04-13T21:57:41.352Z (9 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 20
- Watchers: 6
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Egoido
Ego-search tool for [idobata.io](https://idobata.io)
## Usage
Clone the repository:
% git clone https://github.com/darashi/egoido.git
Create heroku app:
% heroku create [your-app-name]
Configure credentials:
% heroku config:add TWITTER_AUTH=[consumer_key]:[consumer_secret]:[access_token_key]:[access_token_secret]
Configure tracking terms (comma separated, passed to twitter):
% heroku config:add TRACK=idobata,idobataio,idobata.io
Configure following user id (comma separated, passed to twitter):
% heroku config:add FOLLOW=0,0,0
Create generic hook on idobata.io and set it:
% heroku config:add HOOK_[your-arbitrary-identifier]=https://idobata.io/hook/00000000-0000-0000-00000000000000000#[regexp to notify]
Tweets matched with `TRACK` parameter *and* `[regexp to notify]` will be sent to the hook.
Or
% heroku config:add HOOK_[your-arbitrary-identifier]=https://idobata.io/hook/00000000-0000-0000-00000000000000000@[comma separated user ids to notify]
Tweets matched with `FOLLOW` parameter *and* from one of `[comma separated user ids to notify]` will be sent to the hook.
If you want to combine `TRACK` and `FOLLOW`, specify `@[comma separated user ids to notify]` first and then specify `#[regexp to notify]`:
% heroku config:add HOOK_[your-arbitrary-identifier]=https://idobata.io/hook/00000000-0000-0000-00000000000000000@[comma separated user ids to notify]#[regexp to notify]
Tweets matched (`TRACK` OR `FOLLOW`) AND (`comma separated use ids` OR `regexp to notify`) will be notified.
You can have multiple hooks by using different hook identifier `[your-arbitrary-identifier]` part. This is useful for tracking multiple terms and dispatch to different rooms.
You can omit `#[regexp to notify]` and `@[comma separated user ids to notify]`. If do so, every tweet matched with `TRACK` parameter or `FOLLOW` parameter will be sent to the room.
Push codes:
% git push heroku master
Set worker to keep running:
% heroku ps:scale worker=1