Skip to content

Repository files navigation

Greggs Bot

Build Status

An all purpose Discord bot for the Greggs guild on Draenor-EU.

Building

Both prod and dev builds create ./dist/main.js.

Create environment.env from the environment.env.example file. Populate with the following values:

  • DISCORD_TOKEN
  • WCL_TOKEN
  • PREFIX
    • The command prefix people should use to communicate with Greggs bot.
    • Example: PREFIX=!
  • API
    • The base URL for the JSON API
      • Used to fetch data for different modules
      • See each module's api.d.ts

Development build

yarn dev or npm run dev

Source maps are generated for debugging. See debugging below.

Production build

yarn build or npm run build

A docker container can also be created for Greggs bot. Check out the Dockerfile provided. You will need to provide the environment.env file to the container.

Debugging

Visual Studio Code

// Launch.json
"configurations": [
    {
        "type": "node",
        "request": "launch",
        "name": "Run Greggs Bot",
        "program": "${workspaceFolder}/dist/main.js",
        "envFile": "${workspaceFolder}/environment.env"
    }
]

About

An all purpose Discord bot for the Greggs guild on Draenor-EU.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages