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.
- Copy files into the VPS using command:
git clone https://github.com/Mbarmem/MoTwitterBot.git
- Add apt sources list for Nodejs 16 repo:
curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
- Install Node.js:
sudo apt -y install nodejs
- Run
npm install
- Copy
example.env
to.env
and edit info. - Run
node main.js
- Build the docker image using the command:
docker build -t mbarmem/motwitterbot:latest .
- Push the docker image to repository:
docker image push mbarmem/motwitterbot:latest