Skip to content

thechosenone98/Synthetix-Twitter-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synthetix-Twitter-Bot

A simple Twitter Bot to stay informed about Synthetix stats.

EDIT

Added timestamps (idea came from spiyer99).
Also decided to remove the market cap to be able to keep the total value stacked
in ETH and BTC (also from spiver99).
I did keep the total value staked (ETH+BTC) converted to USD with live rates.

As proof, here's a picture from my bot Tweeter account:
Proof

Here's a link to it if you want to go and have a look for yourself: @TwitterBot2

TODOs:

  • Setup Twitter Dev account and app
  • Setup web scraper in Python
  • Run Twitter bot in Python along with the web scraper
  • Deploy to Heroku
  • Write a nice little guide

Tutorial on how to use it

  1. git clone this repo
  2. Make a Python venv
  3. Run pip install requirement.txt in the venv you've just created
  4. Create an app in your Twitter developer account (https://developer.twitter.com/en)
  5. Create an account on https://www.cryptocompare.com/ and get your API key
  6. Fill in the bot.py file with your Twitter app, Cryptocompare API keys
  7. Create App on Heroku
  8. Go to the Settings tab of your app and add these to your Buildpacks:
    1. heroku/python
    2. heroku/google-chrome
    3. heroku/chromedriver
  9. Install Heroku CLI
  10. Follow the instruction on the Deploy tab of your Heroku App
  11. Before you push the repo to Heroku, run these two commands to make the environment variable available to the bot: 1.heroku config:set CHROMEDRIVER_PATH=/app/.chromedriver/bin/chromedriver
    2.heroku config:set GOOGLE_CHROME_BIN=/app/.apt/usr/bin/google-chrome
  12. If your app is still not running for some reason, go and make sure that your worker is enabled in the Resources tab of your App
  13. If it still does not start, run this command : heroku ps:scale worker=1
  14. 🎉Enjoy🎉 😃

About

A simple Twitter Bot to stay informed about Synthetix stats.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages