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
Join my Masta Coders Discord server and come join a community of coders, investors and thinkers come join!
You can also support me via Patreon! Every donation helps us afford more time to create projects and classes for underserved youth!
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=
node main.js
# 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
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.