letterboxd-discord-bot

Letterboxd Discord Bot Promo

Overview

This a simple bot that posts new diary entries from your Letterboxd friends to your preferred Discord channel.

Add to your Discord server!

Use this handy link to add the bot. Or follow the instructions below on how to run it yourself.

Slash Commands

How it works

Right now all this bot does is scrape RSS feeds. I’m hoping to get access to Letterboxd API to introduce new functionality.

How to run the bot yourself

Initial setup

Clone this repo to your computer.

git clone git@github.com:caseypugh/letterboxd-discord-bot.git
cd letterboxd-discord-bot

Make sure your have Node 16 installed. If you’re using nvm

nvm install 16
nvm use 16

Create an .env from the sample file and input your Discord credentials and local Redis server URL

cp .env.sample .env

Data for this bot is stored in Postgresql and uses Prisma as the ORM. Make sure you have a Postgres server running and set the DATABASE_URL in your env.

Development

Install latest dependencies

yarn install

Run any pending database migrations

yarn db:migrate

And finally start the dev server

# Suports hot reloading
yarn dev