Giter Club home page Giter Club logo

feed2's Introduction

discord-twitter-bot

Post tweets to Discord Webhook of certain twitter users.
Got questions? Join the bot's discord server!

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.

heroku login
heroku git:clone -a <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 launcher.py
git add .
git commit -am "updated configuration"
git push heroku

Heroku is a nice solution to host the bot for free.

Normal Setup

Get Python 3.5 or later.

python3 -m venv bot-env
source bot-env/bin/activate
git clone -b rewrite --single-branch https://github.com/NNTin/discord-twitter-bot.git
python3 discord-twitter-bot/launcher.py

First two lines are skip-able but are recommended if you are relying on an older version of discord.py. Third line clones the rewrite branch. Fourth line executes launcher.py

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

Useful links:

Credits

Derpolino for providing the discord-webhook-python code.
Rokxx for providing the dota 2 twitter list.
JacobNWolf for providing the twitter lists for CS:GO, LoL, Overwatch, CoD and SSMB.

feed2's People

Contributors

cen-ios avatar

Watchers

 avatar

feed2's Issues

data.json

https://github.com/nntin/discord-twitter-bot

You shouldn't upload the data.json to GitHub. You don't need a GitHub repository.
Your data.json has your twitter credentials. If those credentials have write access people could write on Twitter on your behalf.
Furthermore you are revealing your webhook URL. An attacker could use that URL to spam your discord server with spam. GitHub repos are regularily scraped for tokens, etc.

Take care.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.