1.3.1 • Published 4 years ago

buzzes.djs v1.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Basic Discord.js FrameWork to make bots easily

Getting Started

const { Client } = require("buzzes.djs"); //requires the lib
const client = new Client();
const prefix = "!";
client.on("ready", () => {
  client.init({ commandDir: "commands", useDefaultCommands: true }); //commandDir must be a string
});
client.on("message", (msg) => {
  if (!msg.guild || msg.author.bot || !msg.content.startsWith(prefix)) return;
  const args = msg.content.slice(prefix.length).trim().split(" ");
  client.executeCommand(msg, args); //execute string, this is handled
});
client.login("Your bot token");

Commands

Basic Command-Dir Structure

You'll need to create a category folder inside of command-Dir, then create your commands files inside of this folder

Basic Command Structure

const { Permissions } = require("buzzes.djs");
module.exports = {
  name: "Command-name-Here",
  aliases: [], // Aliases. optional
  usage: "commad usage", // Optional,
  minArgs: 1, //Min Arguments for command. optional
  minPermissions: [""], // Array of Permissions. Min Permissions to execute this command. you can view it in node_modules/buzzes.djs/lib/Permissions.js in ValidPermissions. optional
  botminPermissions: [""], // Array of Permissions. Min Permissions to the bot execute this command. you can view it in node_modules/buzzes.djs/lib/Permissions.js in ValidPermissions. optional
  /**
   * For Permissions you can use "Permissions" from Buzzes.djs
   * to get AutoComplete in Permissions
   */

  run: (client, msg, args) => {
    /**
     * Code here
     */
  },
};

ChangeLog

  • Added Extensions

DOCS

1.3.1

4 years ago

1.3.0

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.2

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago