What a gamer! We'd love to see where you want to take Virginity Bot!
-
Create a private Discord bot for testing
- Enable
Presence Intent
andServer Member Intent
. - Add the
TOKEN
to your/.env
- Enable
-
Install Docker & Docker Compose.
-
Start the server & dependencies.
docker-compose -f docker-compose.dev.yaml up --build server -d
-
Setup MinIO.
- Go to http://localhost:9001 and login with the root credentials in the
docker-compose.dev.yaml
file. - Create a new bucket named
intro-songs
. - Create a new access key and add the values to your
/.env
.
- Go to http://localhost:9001 and login with the root credentials in the
-
Connect your debugger.
The server container forwards port
9229
, so you should be able to connect a NodeJS debugger there.
There are a few places where the node version number needs to be bumped in order to upgrade. Unfortunately, not all of them share the same syntax.
package.json
'sengines.node
value.Dockerfile
'sNODE_VERSION
ARG
.Dockerfile.dev
'sNODE_VERSION
ARG
..nvmrc
-
The bot joins a VC to play an intro song, but then immediately leaves without playing any audio
Ensure that you've done your
npm install
inside the OS that you're running the bot in. In other words, you may have done your initialnpm install
on your macOS host OS, but then are running the bot inside a Docker container (AKA a Linux guest OS). This can lead to the incorrect binaries being downloaded for certain dependencies (eg.ffmpeg-static
).