What a gamer! We'd love to see where you want to take Virginity Bot!
-
Create a private Discord bot for testing
- Enable
Presence IntentandServer Member Intent. - Add the
TOKENto your/.env
- Enable
-
Install Docker & Docker Compose.
-
Start the server & dependencies.
docker-compose -f docker-compose.dev.yaml up --build server -d
-
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.nodevalue.Dockerfile'sNODE_VERSIONARG.Dockerfile.dev'sNODE_VERSIONARG..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 installinside the OS that you're running the bot in. In other words, you may have done your initialnpm installon 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).