- Install Poetry
Linux, macOS, Windows (WSL)
$ curl -sSL https://install.python-poetry.org | python3 -
Windows (Powershell)
$ (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
- Clone repo
$ git clone https://github.com/LukeSchmitt96/movie-bet-bot.git
- Install project with Poetry
$ poetry install --with test,dev
- Seed bot's database
contests:
- members:
- contest_url: https://letterboxd.com/PROFILE/list/LIST_NAME/detail/
list:
films: []
url: https://letterboxd.com/PROFILE/list/LIST_NAME/detail/
name: NAME
profile_url: https://letterboxd.com/PROFILE/
watchtime: 0
- contest_url: https://letterboxd.com/NAME/list/LIST_NAME/detail/
list:
films: []
url: https://letterboxd.com/PROFILE/list/LIST_NAME/detail/
name: NAME
profile_url: https://letterboxd.com/PROFILE/
watchtime: 0
...
name: CONTEST_NAME
- Configure bot's
<project_root>/.env
file. See the example environment file for a template.
DB_PATH="..."
DISCORD_TOKEN="..."
DISCORD_CHANNEL_ID="..."
TMDB_API_KEY="..."
- (Optional) Run tests, pre-commit hooks
$ poetry run task test
$ poetry run task pre-commit
- Run bot
$ poetry run task start