2023-01-07 01:23:48 +01:00
|
|
|
# SquadMusicbot
|
|
|
|
|
2024-10-05 20:48:25 +02:00
|
|
|
Spaghetti code music bot, with support for streaming certain radio streams too.
|
2023-01-07 01:23:48 +01:00
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
2024-10-05 20:48:25 +02:00
|
|
|
### Using Node.js
|
|
|
|
|
|
|
|
- Node.js v20 (LTS)
|
|
|
|
- Current LTS (Long-Term Support) of Node.js. Should work with most versions shortly before or after (e.g. v18, or v22).
|
2023-01-07 01:23:48 +01:00
|
|
|
- npm
|
|
|
|
- TypeScript
|
2023-01-07 16:34:57 +01:00
|
|
|
- `npm install -g typescript`
|
|
|
|
- ffmpeg
|
|
|
|
- Debian/Ubuntu: `sudo apt install ffmpeg`
|
2023-01-07 01:23:48 +01:00
|
|
|
|
2024-10-05 20:48:25 +02:00
|
|
|
### Using Docker
|
|
|
|
|
|
|
|
- Docker, with Docker Compose (`docker-compose-plugin`).
|
|
|
|
|
2023-01-07 01:23:48 +01:00
|
|
|
## Setup
|
|
|
|
|
|
|
|
1. Clone the repository
|
2023-01-07 16:34:57 +01:00
|
|
|
2. Copy `config.sample.js` to `config.js` and fill in the values
|
2024-10-05 20:48:25 +02:00
|
|
|
3. Directly using Node:
|
|
|
|
1. Run `npm install`
|
|
|
|
2. Run `npm run start`
|
|
|
|
- Alternatively, deploy it as a `pm2 service` using `npm run deploy`
|
|
|
|
- Requires you to install pm2: `npm install -g pm2`
|
|
|
|
- For updating the pm2 service after changes, run `npm run update`
|
|
|
|
4. Second option is via Docker and Docker Compose:
|
|
|
|
1. Copy the `docker-compose.example.yml` to `docker-compose.yml`
|
|
|
|
2. Run `docker compose up -d`
|
|
|
|
3. For updating the container after changes, run `docker compose up -d --build`
|