Skip to content

A discord bot that sends messages to a channel whenever a specific user tweets.

License

Notifications You must be signed in to change notification settings

mastashake08/discord-twitter-bot

Repository files navigation

Patreon donate button npm Discord CodeLife

Discord Twitter Bot

A discord bot that sends messages to a channel whenever a specific user tweets using the Twitter Streaming API. Uses the Twit and Discord.js NPM packages

Table Of Contents

Support

Join my Masta Coders Discord server and come join a community of coders, investors and thinkers come join! CodeLife Join button

You can also support me via Patreon! Every donation helps us afford more time to create projects and classes for underserved youth!

Installation

Use the package manager npm to install the dependencies. Then copy the example .env file and fill in with appropriate values.

 git clone https://github.com/mastashake08/discord-twitter-bot.git
 npm install
 cp .env.example .env
 #set values for TWITTER and DISCORD APIs in .env
 TWITTER_USER_NAME=
 DISCORD_TOKEN=
 DISCORD_CHANNEL_ID=
 BEARER_TOKEN=
 CHANNEL_MESSAGE=


Usage

node main.js

Docker

# On linux/amd64 architechture
docker run --platform linux/amd64 --env-file=<PATH TO .ENV> -d --name=<NAME> mastashake08/discord-twitter-bot

docker run  --env-file=<PATH TO .ENV> -d --name=<NAME> mastashake08/discord-twitter-bot:latest

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

ISC