Discord Twitter Bot

by NNTin

GitHub Readme.md

discord-twitter-bot

Posts Twitter Tweets to Discord through Webhook

Invite Link License: MIT Build Status Code style: black Last Commit Pull Requests

Preview

Heroku Deployment

Deploy

Remember to activate the app. View the logs here.
Use this to initially deploy your discord-twitter-bot.

To further configure the bot get Heroku CLI and run launcher.py. (Warning: This is not recommended for inexperienced users since a lot of things could go wrong. Troubleshooting support will not be provided.)

heroku login
heroku create <your heroku app name>
cd <your heroku app name>
git remote add origin https://github.com/NNTin/discord-twitter-bot
git pull origin master
python bot/launcher.py
git add .
git commit -am "updated configuration"
git push heroku

This will create a data.json and the bot will ignore any set environment variable.

YT Video to Heroku Deployment

YT Video

Normal Setup

(Warning: This is only recommended for experienced users who have some basic experience with CLI.)

Get Python >=3.6.0, <3.7.0

git clone https://github.com/NNTin/discord-twitter-bot.git
cd discord-twitter-bot      # ^ download the project and cd into it
python3 -m venv venv        # optional virtual environment, recommended
source venv/bin/activate    # only run if you did venv
python3 bot/launcher.py     # configure the bot, this create a config.json
python3 bot/main.py         # run the bot

Once you have set everything up you can run main.py directly. (Useful in combination with systemd, Upstart, PM2, etc.)

Useful links:

Credits

Rokxx for providing the dota 2 twitter list.
JacobWolf for providing the twitter lists for CS:GO, LoL, Overwatch, CoD and SSMB.