Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.72 KB

CONTRIBUTING.md

File metadata and controls

43 lines (27 loc) · 1.72 KB

Contributing

What a gamer! We'd love to see where you want to take Virginity Bot!

Getting Started

  1. Create a private Discord bot for testing

    1. Enable Presence Intent and Server Member Intent.
    2. Add the TOKEN to your /.env
  2. Install Docker & Docker Compose.

  3. Start the server & dependencies.

    docker-compose -f docker-compose.dev.yaml up --build server -d
  4. Setup MinIO.

    1. Go to http://localhost:9001 and login with the root credentials in the docker-compose.dev.yaml file.
    2. Create a new bucket named intro-songs.
    3. Create a new access key and add the values to your /.env.
  5. Connect your debugger.

    The server container forwards port 9229, so you should be able to connect a NodeJS debugger there.

Upgrading NodeJS versions

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.

  1. package.json's engines.node value.
  2. Dockerfile's NODE_VERSION ARG.
  3. Dockerfile.dev's NODE_VERSION ARG.
  4. .nvmrc

Gotchas

  • 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 initial npm 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).