Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Latest commit

 

History

History
51 lines (39 loc) · 1.57 KB

README.md

File metadata and controls

51 lines (39 loc) · 1.57 KB

Setup Development Environment

  1. Get the git repository

        git clone https://github.com/edwin-shdw/AbdiBot.git
  2. Install packages

        npm install

    Also, make sure that Node.js 16.9.0 or newer is installed on your machine as discord.js requires this.

  3. Configure environment

    Copy and rename the config.public.json file to config.json (src/configs/*) and fill all needed values. This file contains sensitive information and should not be tracked by git.

  4. Run bot

    Start the bot with the start script:

    npm start

    To make development easier and less painfull you can start the bot in dev mode:

    npm run develop

    This will start the bot with ts-node and nodemon which will restart the node application whenever file changes are detected. Thanks to ts-node running a new build on each file change is no longer required.

  5. Deployment

    Command registration to the Discord API can be done with the deploy script:

    npm run deploy

    Keep in mind that you will need to run a build before. (At least for the deploy-commands script)

  6. Usefull links