Sends a Notification to a Channel from your Twitter.
GPL-3.0 License
Hey. Welcome and Thanks for your interest in my Discord Twitter Bot Project. Please read this File completly to not miss out on Information.
You will need:
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 shouldnt take more than a minute. PLEASE NOTE THAT YOU NEED TO APPLY FOR ELEVATED ACCESS IN THE TWITTER DEVELOPER CONSOLE
The file says: discordBotToken:, twitterConsumerKey:,
(continuous)
So when talking about for example the discordBotToken
, please change it so it looks like: discordBotToken:,
twitterConsumerKey:,
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.
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 valuetwitterConsumerSecret
, stay on the tab stated in twitterConsumerKey
and copy the API key secret.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.twitterAccessTokenSecret
, stay on the tab stated in twitterAccessTokenKey
and copy the Access token secret into config.json.[twitter-a]
or [twitter-a,twitter-b]
or even [<twittera,twitter-b,twitter-c]
. These values however must be the users ID, which you can find at https://tweeterid.com/ so for example, @ESLotherwise is 4293668297channelsToPost
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.