Giter Club home page Giter Club logo

discordtwitterbot's Introduction

GPL Licence

otherwiseDE's Twitter Bot!

Hey. Welcome and Thanks for your interest in my Discord Twitter Bot Project. Please read this File completly to not miss out on Information.

To receive Support from me, Join my Discord and head to #support and monitor #github-feeds for any updates!

Preview

image

Dependencies

You will need:

  • NodeJS v12 (optimised, v14 works)
  • NPM v6 (or higher)

Dependencies Installation

Open the terminal / Windows PowerShell in the folder the code is (where index.js and config.json are) Please then enter the following commands:

  • npm i discord.js
  • npm i node-tweet-stream
  • npm i fs

Please do each line at one time, this shouldn’t take more than a minute.

Configuration (config.json)

The file says: “discordBotToken”:””, “twitterConsumerKey”:””, (continuous)

So when talking about for example the discordBotToken, please change it so it looks like: “discordBotToken”:””, “twitterConsumerKey”:””,

  • To find the discordBotToken, go to https://discord.com/developers/applications , create an application by pressing “New Application” or go for a pre-existing application, then in the section “Bot”, create one. Beneath the username it should say “Token”. Hit “Copy” and enter it in

Twitter Developer

You will need to have access to Twitter Developer, and create an application in https://developer.twitter.com/en/portal/dashboard for 4 of the values.

  • To find the twitterConsumerKey, in the Twitter Developer Portal, in the new project created, select “Keys and tokens” and go to “Consumer Keys”. Besides “API Keys & Secrets” please view it. Regenerate if needed. The API Key is the value
  • To find the twitterConsumerSecret, stay on the tab stated in twitterConsumerKey and copy the “API key secret”.
  • To find the twitterAccessTokenKey, go back to the “Keys and tokens” page and scroll down to “Authentication Tokens”, please regenerate the “Access Token & Secret” and copy the “Access token” into this.
  • To find the twitterAccessTokenSecret, stay on the tab stated in twitterAccessTokenKey and copy the “Access token secret” into config.json.

Twitter Configuration

  • The following is an array, so you can follow multiple people, so the value may look like [“twitter-a”] or [“twitter-a”,”twitter-b”] or even [“<twittera”,”twitter-b”,”twitter-c”]. These values however must be the user’s ID, which you can find at https://tweeterid.com/ – so for example, @ESLotherwise is 4293668297

Discord Configuration

  • The channelsToPost is also an array like following. To find these values, make sure you have developer mode on discord, then simply right click a channel and press “Copy ID” and paste it in. Please make sure it is in an array format.
  • The title is the title of what you want to come up, so for example “New Tweet”
  • The colour is the colour that the line is, so for example #1A91DA is the Twitter Blue

discordtwitterbot's People

Contributors

otherwisegg avatar

Stargazers

moka avatar

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.