/librarian-bot

A simple Discord bot for book club

Primary LanguageTypeScriptMIT LicenseMIT

librarian-bot

A simple Discord bot for book club.

Setup

  1. If you haven't already, install git, Node.js, npm, and g++ (GCC with C++ support) using your preferred package and/or version manager(s)
  2. Follow a tutorial ilke this one to create a Discord "application" and a corresponding bot, generate a secret token for it (used below), and add it to your server
  3. git clone https://github.com/Brinsky/librarian-bot
  4. cd librarian-bot
  5. cp data/config-sample.json data/config.json
  6. Edit data/config.json and set the token property to your bot's token
  7. npm install
  8. npx tsc (compile the TypeScript source code)
  9. Start the server: node build/index.js
    • You may prefer to run this in a detached session using e.g. screen or tmux