A Mastodon bot to post a feed of articles from The Verge - @the_verge@mastodon.social
Go to file
InterSocial c9899efa2a news
2023-06-03 17:28:05 -04:00
app news 2023-06-03 17:28:05 -04:00
.dockerignore init docker 2023-01-14 15:22:40 -06:00
.gitignore update file struct 2023-01-14 15:26:53 -06:00
docker-compose.example.yml customizable instance url, default fetch int = 5, better startup handling 2023-01-15 17:45:51 -06:00
Dockerfile update info 2023-04-10 21:05:02 -05:00
LICENSE Initial commit 2022-11-07 22:00:26 -06:00
package.json update deps 2023-06-01 15:52:39 -05:00
process.json remove unnecessary files 2022-11-08 20:46:18 -06:00
README.md Update .env configuration in README.md 2023-05-13 12:32:09 -05:00
renovate.json Add renovate.json 2022-11-08 04:00:36 +00:00
yarn.lock update deps 2023-06-01 15:52:39 -05:00

verge-mastodon-bot

A Mastodon bot to post a feed of articles from The Verge - @the_verge@mastodon.social

Setup

Docker

NOTE: The Docker Compose file is located at docker-compose.example.yml in the root directory. If you want to run the bot using Docker Compose, refer to that file. Run the Docker container (remove the -d flag to run in the foreground)

docker run -d --env ACCESS_TOKEN=YOUR_ACCESS_TOKEN INSTANCE_URL=https://your-instance.url --name verge-mastodon-bot ghcr.io/milanmdev/verge-mastodon-bot

Manual

  1. Clone the repository
git clone github.com/milanmdev/verge-mastodon-bot
  1. Install the dependencies
yarn install
  1. Create a .env file in the root directory of the project and add the following environment variables:
ACCESS_TOKEN=token
INSTANCE_URL=https://your-instance.url
FETCH_URL=https://www.theverge.com/rss/index.xml
FETCH_INTERVAL=5
NODE_ENV=production
  1. Run the bot
yarn start