Skip to content

Telegram bot for selecting movies to watch together

License

Notifications You must be signed in to change notification settings

gpont/watch_together

Repository files navigation

Watch Together Telegram Bot

CI Coverage Last commit Issues

preview-image

Telegram bot for selecting movies to watch together. @watch_together_tg_bot

Bot commands

  • /start - Welcome message and information about commands.
  • /help - Show the list of commands and their descriptions.
  • /create_group - Create a new group for group movie watching.
  • /join_group <code> - Join an existing group by code.
  • /leave_group - Leave current group.
  • /suggest <movie name> - Suggest a movie for watching.
  • /vote <movie number> - Vote for a suggested movie.
  • /list - Show the list of suggested movies.
  • /watched <movie number> - Mark a movie as watched.
  • /random - Show a random movie from list.
  • /veto <movie number> - Remove movie from random.

Development

Install

git clone https://github.com/gpont/watch_together.git
cd watch_together
npm i

Run and developing

  1. Create .env file with BOT_TOKEN variable;
  2. Run npm init:db;
  3. Run npm start;

Testing

npm test

Lint and format

npm run lint-format

Build

npm run build

Run Docker

docker build -t watch_together .
docker run -d watch_together

or

docker run -d ghcr.io/gpont/watch_together:latest

Docker compose

docker compose up -d

Other links

Tech info