1.0.8 • Published 4 years ago
sun-djs-musicbot v1.0.8
🔆sun-djs-musicbot
A simple discord.js Musicbot package. Easy for use, All ready in 1 Package.
Requirements
Getting started
npm i sun-djs-musicbot
Documentation
All Method has Tested and Works Very well.
Method | Description | Parameters | Required? |
---|---|---|---|
token | A Configuration for Inserting your Discord Bots token | A string to get Token Bot Discord and Login | Y |
youtubeAPIKey | A Configuration for inserting your Youtube Data API v3 Key. | A string to get Youtube Data API v3 Key to search songs | Y |
prefix | A Configuration for inserting your Bots Prefix. | A String to get PREFIX and Set it to your Bot | N |
status | Set your custom bot status | A string to get Bot status Text in any Languange | N |
statusType | Set your custom bot status type. | A string to get Bot status type, Such as LISTENING , and etc | N |
disableHelpcmd | Permanently turn off help command | - | N |
start | Start Your Bots! | - | Y |
Example
1. Beginner / First Example
const sun = require("sun-djs-musicbot");
// Well, Variable Created!
//Let's Fill out your Bots Config
sun.token("YOUR-TOKEN");
sun.prefix("!");
sun.youtubeAPIKey("YT-API-KEY");
//Set your custom status, If you want.
sun.status("!help");
sun.statusType("LISTENING")
// Start the Bots!
sun.start();
2. Disabling help
commands because Your bots already have help
Command.
const sun = require("sun-djs-musicbot");
// Well, Variable Created!
//Let's Fill out your Bots Config
sun.token("YOUR-TOKEN");
sun.prefix("!");
sun.youtubeAPIKey("YT-API-KEY");
//Disable `help` cmd Permanent
sun.disableHelpcmd();
//Remove `sun.disableHelpcmd()` instead if you don't want disable `help` cmd
//Set your custom status, if you want.
sun.status("!help");
sun.statusType("LISTENING")
// Start the Bots!
sun.start();
Community
Any Question / Doubt can Join our Discord Server Here