Skip to content
This repository has been archived by the owner on May 2, 2019. It is now read-only.

❌ DEPRECATED - ⚡ TerremotiBot 2.0 integration - publishes earthquakes to Twitter and Facebook

License

Notifications You must be signed in to change notification settings

botfactoryit/terremotibot-social

Repository files navigation

terremotibot-social

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.

❌ DEPRECATED

This integration has been embedded in the main TerremotiBot repository.

How to run

node index.js

But before...

Configuration

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