kaogeek / kaogeek-discord-bot

Discord bot for KaoGeek, built with TypeScript
MIT License
197 stars 59 forks source link

Kao.Geek bot

Discord bot for KaoGeek, built with TypeScript and discord.js

Workspace Setup

  1. Make sure to use same node version as specified in .nvmrc by using nvm

    nvm use

    If not installed, use nvm install to install specified version in .nvmrc (at the time of writing lts/hydrogen)

  2. Enable Corepack (if not yet), this will automatically install pnpm with the version specified in package.json#packageManager.

    corepack enable

    This will ensure all developers use the same version of pnpm. Corepack will automatically switch pnpm's version when you switch to different workspace.

  3. Install dependencies

    pnpm install

Discord Bot & Server Setup (For Development)

Development

Production deployment

The production instance of the Discord bot is hosted by Yue.sh. To deploy to production, trigger the Deployment workflow on GitHub Actions.

image

Log from the production bot is sent to Papertrail. If you have access to Papertrail, you can view the logs at https://my.papertrailapp.com/systems/kaogeek/events

Running