1.1 KiB
1.1 KiB
SquadMusicbot
Spaghetti code music bot, with support for streaming certain radio streams too.
Requirements
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).
- npm
- TypeScript
npm install -g typescript
- ffmpeg
- Debian/Ubuntu:
sudo apt install ffmpeg
- Debian/Ubuntu:
Using Docker
- Docker, with Docker Compose (
docker-compose-plugin
).
Setup
- Clone the repository
- Copy
config.sample.js
toconfig.js
and fill in the values - Directly using Node:
- Run
npm install
- Run
npm run start
- Alternatively, deploy it as a
pm2 service
usingnpm run deploy
- Requires you to install pm2:
npm install -g pm2
- Requires you to install pm2:
- For updating the pm2 service after changes, run
npm run update
- Alternatively, deploy it as a
- Run
- Second option is via Docker and Docker Compose:
- Copy the
docker-compose.example.yml
todocker-compose.yml
- Run
docker compose up -d
- For updating the container after changes, run
docker compose up -d --build
- Copy the