GithubHelp home page GithubHelp logo

thelovinator1 / discord-twitter-webhooks Goto Github PK

View Code? Open in Web Editor NEW
110.0 9.0 24.0 1.39 MB

🤖Stream tweets to Discord

License: GNU General Public License v3.0

Python 59.68% Dockerfile 1.17% CSS 0.11% HTML 39.03%
discord python webhook webhooks twitter tweepy discord-twitter-webhooks tweets bot twitter-api

discord-twitter-webhooks's Introduction

Discord-twitter-webhooks

This image shows a tweet from @Steam

Theme is https://github.com/KillYoy/DiscordNight

discord-twitter-webhooks is an automated tool that sends tweets from Twitter to Discord using webhooks.

Features

  • Send tweets from Twitter to Discord using webhooks.
  • Send the tweet as an embed, link or text.
  • Support for translations via DeepL.

Installation

You have two choices, using Docker or install directly on your computer.

Run with Docker

This is the recommended way to install the bot.

Docker Hub: thelovinator/discord-twitter-webhooks

  • Data is stored in /home/botuser/.local/share/discord_twitter_webhooks in the container.
  • The container runs as the bot user with UID 1000 and GID 1000, this means your directory must be owned by UID 1000 and GID 1000.
  • The server runs on port 8000.

Install directly on your computer

This is not recommended if you don't have an init system (e.g., systemd)

  • Install the latest version of needed software:
    • Python
      • You should use the latest version.
      • You want to add Python to your PATH.
      • Windows: Find App execution aliases and disable python.exe and python3.exe
    • Poetry
      • Windows: You have to add %appdata%\Python\Scripts to your PATH for Poetry to work.
        • Open System Properties
        • Click on Environment Variables...
        • Under User variables find Path and click Edit...
        • Add %appdata%\Python\Scripts to the list.
  • Download the project from GitHub with Git or download the ZIP.
    • If you want to update the bot, you can run git pull in the project folder or download the ZIP again.
  • Open a terminal in the repository folder.
    • Windows 10: Shift + right-click in the folder and select Open PowerShell window here
    • Windows 11: Shift + right-click in the folder and Show more options and Open PowerShell window here
  • Install requirements:
    • Type poetry install into the terminal.
  • Start the bot:
    • Type poetry run bot into the PowerShell window.
      • You can stop the bot with Ctrl + c.
  • Go to http://localhost:8000 or the IP of your server.
  • You can change the Nitter instance in Settings.
  • Add a group under Add.
    • A group is a collection of Twitter accounts and Discord webhooks that will be used to send tweets.
    • Each group has its own settings. (e.g., If retweets should be sent, should be sent as an embed, etc.)

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.