Purpose: Core library for interacting with the Discord API.
Installation:
Code:
npm install discord.js
dotenv
Purpose: Loads environment variables from a .env file (token, client ID, owner ID).
Installation:
Code:
npm install dotenv
sqlite3 & sqlite
Purpose: Lightweight, file-based database for storing user balances, inventory, jobs, and server settings. No external database server required.
Installation:
Code:
npm install sqlite3 sqlite
canvas
Purpose: Used to generate the animated roulette wheel GIF in the casino.
Installation:
Code:
npm install canvas
Note: May require additional system dependencies on Linux (build-essential, libcairo2-dev, libpango1.0-dev, libjpeg-dev, libgif-dev, librsvg2-dev). Most Pterodactyl hosts have these pre-installed.
gifencoder
Purpose: Encodes multiple canvas frames into an animated GIF for the roulette wheel.
Installation:
Code:
npm install gifencoder
chalk
Purpose: Adds colors to console logs for better readability during development and debugging.
Installation:
Code:
npm install chalk
Quick Setup
All dependencies are listed in the
Code:
package.json file
included with the bot. Simply run
Code:
npm install
in the bot's root directory to install everything automatically.
Best Rated | Dashboard, Tickets, Invoices, Moderation, Music, Giveaways, Addons and much more
5.00 star(s)
109 ratings
641 purchases
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.