All dependencies and deployment are managed through node
. So install that and the (
included) Node Package Manager npm
first.
All dependencies are aggregated in package.json
and can be installed by using
npm install
with no arguments from the root directory of the project.
Botgart has been written in Typescript.
Only ever edit the Typescript source in the src/
directory, not the Javascript files in built/
. Even if you do write
plain Javascript (you should not), put it in the src/
directory. The transpiler will just copy .js
-files and only
transpile .ts
-files.
After making your changes, call npm run build
from the root directory to transpile your code into the built/
-directory,
which can be run as a Node project (see below).
The root directory holds a config/example.config.json
. Rename it to config.json
and adjust the values inside to your
needs.
The bot token is how your app knows as which discord account it should connect. You can acquire one at the application section of discord.
You can run your bot by using
node built/index.js
from the root directory of your project.