Integration for TerremotiBot.
Receives earthquakes details and image cards through Amazon SQS for every 'big' earthquake, and publishes text and image to Twitter and Facebook.
This integration has been embedded in the main TerremotiBot repository.
node index.jsBut before...
A config.json file should be placed in the src/config directory. The template for the configuration file is example.config.json.
| Key | Required | Explanation |
|---|---|---|
sqs.* |
Yes | Amazon SQS queue configuration |
facebook.accessToken |
Yes | Generate a permanent access token for the page you want to publish to. See Facebook docs or StackOverflow |
facebook.pageId |
Yes | The ID of the page you want to publish the post to |
twitter.* |
Yes | Twitter keys |