Giter VIP home page Giter VIP logo

discord-twitter-bot's Introduction

Discord Twitter Bot

Discord Twitter Follow

A Discord bot that forwards Tweets into your Discord server.

Take note that this bot uses the search API and not the streaming API. This means that the results are not exhaustive nor are they instantaneous. The trade-off is the ability to use powerful search operators to filter the results to your needs.

Twitter Developer Account Setup

Apply for a Twitter developer account in order to access their standard APIs. You will receive the necessary keys and secrets once your account is approved.

Take note of the keys and secrets provided. You will need these in the next section.

Setup

  1. Follow the instructions in create-discord-bot.

    Don't forget to give your bot the Manage Webhooks permission!

  2. Open the .env file and add your Twitter keys and secrets:

    TWITTER_CONSUMER_KEY=PLACEHOLDER
    TWITTER_CONSUMER_SECRET=PLACEHOLDER
    TWITTER_ACCESS_TOKEN_KEY=PLACEHOLDER
    TWITTER_ACCESS_TOKEN_SECRET=PLACEHOLDER
    
  3. Download this bot and move the src-discord-twitter-bot folder into the /src/bots folder from step 1.

    Run npm i -s twitter-lite@^0.14.0 to install this bot's dependencies.

  4. Open config.json to configure your own settings:

    [
      {
        "channelId": "649020657522180128",
        "delay": 3600000,
        "randomDelay": 300000,
        "embed": true,
        "spoiler": false,
        "parameters": {
          "q": "from:@NoContextWeeb exclude:replies exclude:retweets",
          "result_type": "recent",
          "count": 1
        }
      }
    ]

    Add as many rules as you want to configure for other channels/servers.

  5. npm start to run the bot.

Visit for more help or information!

discord-twitter-bot's People

Contributors

peterthehan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

discord-twitter-bot's Issues

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.