A simple Discord bot for book club.
- If you haven't already, install:
- git
- Node.js and npm
- You likely want to install a Node.js version manager like NVM or nvm-windows
- g++ (GCC with C++ support) using your preferred package and/or version manager(s)
- For a Linux-based OS, this is likely best achieved with the
build-essentialspackage - For a Windows-based OS, install Visual Studio Community Edition with the "Desktop development with C++" module
- For a Linux-based OS, this is likely best achieved with the
- 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
git clone https://github.com/Brinsky/librarian-botcd librarian-botcp data/config-sample.json data/config.jsonandcp data/soundboard-sample.json data/soundboard.json- Note that the sample soundboard config points to a non-existent / non-included WAV file, which you may wish to delete
- Edit
data/config.jsonand set thetokenproperty to your bot's token npm installnpx tsc(compile the TypeScript source code)- Start the server:
node build/index.js
