Discokit is still a work in progress!

Docs
Quick Start

Quick Start

Discokit is a library that allows you to build Discord bots. At its core, Discokit is a wrapper around the Discord API (opens in a new tab).

Before we begin

The documentation assumes you have basic knowledge about Node.js and JavaScript.

Quick Start with Template

TODO: add template

Create a new project

Install

To create a project manually, we must first install the discokit package from npm.

bash npm i discokit

Writing the code

Next, create a index.js file within your project directory and put the following code:

// TODO: add code

Adding a start script

Add a start script to your package.json:

{
  "scripts": {
    "start": "node ."
  }
}

Running the code

To run the code, simply run the following command:

bash npm start

Everytime you make changes, you must stop and restart the bot. In order to stop the bot, press CTRL + C, this will terminate the currently running command. You can then press the up arrow key to run the previous command.