Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samn/auto-rt
a script to automatically RT Twitter @mentions
https://github.com/samn/auto-rt
Last synced: about 21 hours ago
JSON representation
a script to automatically RT Twitter @mentions
- Host: GitHub
- URL: https://github.com/samn/auto-rt
- Owner: samn
- Created: 2012-09-21T02:40:22.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-08-07T14:37:21.000Z (over 11 years ago)
- Last Synced: 2024-04-14T23:39:19.413Z (7 months ago)
- Language: Clojure
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# auto-rt
A script that listens for @ mentions using the Twitter Streaming API and automatically retweets them.
This isn't very robust, a loss of connection to the Streaming API will cause the process to die. Heroku will restart it but it won't be instantaneous. This script won't poll for updates that could've happened while the connection was lost.
It's deployed against http://twitter.com/gotanysnacks, an anonymous Twitter account. (hint: send a txt/email to skcansynatog at gotanysnacks.com, or mention it from your account)
## Usage
This script is intended to be deployed on Heroku.
There are several environment variables used for configuration:
* USER_ID: the id of the Twitter account this is running against. Used to determine
if activity in the Streaming API is a mention or a post by this user.
* APP_CONSUMER_KEY: OAuth consumer key
* APP_CONSUMER_SECRET: OAuth consumer secret
* USER_ACCESS_TOKEN: OAuth access token for the account to watch
* USER_ACCESS_TOKEN_SECRET: OAuth secret for the account to watchProcfile:
```
run: lein run -m auto-rt
```Do something like
```
heroku ps:scale web=0 run=1
```To run this script without requiring it to listen for HTTP connections.
## License
Copyright © 2012 DGAF
Distributed under the Eclipse Public License, the same as Clojure.