2024-01-19 14:10:50 +01:00
|
|
|
# ParkerBot
|
|
|
|
|
|
|
|
ParkerBot is a Matrix bot that monitors a channel for YouTube links and
|
|
|
|
generates weekly playlists from them.
|
|
|
|
|
2024-01-21 10:46:40 +01:00
|
|
|
## Running locally
|
2024-01-19 14:10:50 +01:00
|
|
|
|
|
|
|
1. Clone the repo
|
|
|
|
2. Install the dependencies, preferably in a venv:
|
2024-01-21 10:46:40 +01:00
|
|
|
```shell
|
|
|
|
python3 -m venv venv
|
|
|
|
source ./venv/bin/activate
|
|
|
|
pip3 install -r requirements.txt
|
|
|
|
```
|
2024-01-21 10:47:20 +01:00
|
|
|
3. Copy [example.env](example.env) to `.env`, customize it.
|
2024-01-21 10:46:40 +01:00
|
|
|
4. Source `.env`:
|
|
|
|
```shell
|
|
|
|
source .env
|
|
|
|
```
|
|
|
|
3. Execute the app:
|
|
|
|
```shell
|
|
|
|
./main.py
|
|
|
|
```
|
2024-01-19 14:10:50 +01:00
|
|
|
|
2024-01-21 10:46:40 +01:00
|
|
|
## Running as a container
|
2024-01-19 14:10:50 +01:00
|
|
|
|
2024-01-21 10:46:40 +01:00
|
|
|
1. Customize the compose.yml if necessary, you might want to change the data
|
|
|
|
volume's path or make it a named volume.
|
2024-01-21 10:47:20 +01:00
|
|
|
3. Copy [example.env](example.env) to `.env` and customize it.
|
2024-01-21 10:48:27 +01:00
|
|
|
2. Run the container, this is an example with `podman-compose`:
|
|
|
|
```shell
|
2024-01-21 10:46:40 +01:00
|
|
|
podman-compose up -d
|
|
|
|
```
|