Skip to content

robertjmarlow/my-discord-bot

Repository files navigation

Basically going through the discord.js Guide and then adding a bunch of other stuff.

Prereqs

  1. Clone this repo.
  2. Create a file called .env at the root of the repo. This needs to be filled in with enviornment variables.
    token=
    clientId=
    guildId=
    

Build + Run with Node

One-time setup steps:

  1. Install nvm
  2. Tell nvm to use the correct version of node:
    nvm use
  3. Install the TypeScript compiler globally:
    npm install -g tsc
  4. Install yarn:
    corepack enable
    yarn install

Build and run with:

yarn build-and-run

Build + Run with Docker

One-time setup steps:

  1. Install Docker

Build the image with:

docker build -t mydiscordbot .

Run the image with:

docker run --env-file=".env" --volume ./logs:/app/logs -d --rm mydiscordbot:latest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published