Basic Usage
Basic Usage
Create a new directory and open a command prompt or a terminal.
First, run npm i @n-f9/quack.js
to install the package. Also, it would be a great time to install dotenv with npm i dotenv
to store your Discord bot token (this is optional, however, recommended).
Next, open your favorite code editor or IDE and create a source directory with an index.js
in the root
Example Project Structure
The index.js should follow this format
And your modules in your source directory should follow this basic format
To start the bot simply run node .
or if you want to run this in the background you can install something like forever.
Last updated