Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caseypugh/letterboxd-discord-bot
See what your friends are watching.
https://github.com/caseypugh/letterboxd-discord-bot
discord discord-bot letterboxd movies
Last synced: 3 months ago
JSON representation
See what your friends are watching.
- Host: GitHub
- URL: https://github.com/caseypugh/letterboxd-discord-bot
- Owner: caseypugh
- Created: 2021-05-05T21:18:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-20T15:32:49.000Z (about 2 years ago)
- Last Synced: 2024-04-14T19:31:55.376Z (10 months ago)
- Topics: discord, discord-bot, letterboxd, movies
- Language: TypeScript
- Homepage: https://caseypugh.github.io/letterboxd-discord-bot/
- Size: 438 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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.
- [**Add to Server**](https://discord.com/api/oauth2/authorize?client_id=839325760501448704&permissions=2112&scope=bot%20applications.commands)### Slash Commands
- `/add` - Subscribes to a Letterboxd user's new diary entries
- `/remove` - Unsubscribe a Letterboxd user
- `/list` - See a list of all the current users
- `/channel` - Update which channel to post to. (Defaults to the system channel)### 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.```sh
git clone [email protected]: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
```sh
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
```sh
# Suports hot reloading
yarn dev
```