From d056c35daaf9d4e9be2fd24886bd3463c5d26628 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E1=B4=8B=E1=B4=80=CA=99=C9=AA=CA=80=E3=80=85=EA=9C=B1?=
=?UTF-8?q?=C9=AA=C9=B4=C9=A2=CA=9C?=
<73753258+kabirsingh2004@users.noreply.github.com>
Date: Thu, 12 Jan 2023 17:27:52 +0530
Subject: [PATCH] Add files via upload
---
README.md | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 130 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
index abfe9da..b50ba8d 100644
--- a/README.md
+++ b/README.md
@@ -1,26 +1,147 @@
-
-Discord Bot Using JavaScript Discord.JS
+# Hi, I'm Kabir! 👋
-## **Installation | How to use the Bot**
+I'm a Discord Bot Developer and here is mine bot handler
-**1.** Install [node.js v16](https://nodejs.org/en/) or higher
+## **Installation | How to use the Handler**
-**2.** Download this repo and unzip it | or git clone it
+a discord.js handler which support slash commands , message commands , events
**3.** Fill in everything in **`settings/config.js`**
-**4.** start the bot with **`node index.js`**
+**4.** after Fill everything in config Type in shall **`npm install`**
+
+**5.** start the bot with **`node index.js`**
### _Modify - config.js_
+```js
+module.exports = {
+ TOKEN: process.env.TOKEN || "BOT_TOKEN",
+ PREFIX: process.env.PREFIX || "BOT_PREFIX",
+ Slash: {
+ Global: false,
+ GuildID: process.env.GuildID || "GUILD_ID",
+ },
+};
+```
+
+## Handler Features
+
+- easy to use Handler
+- support event Handler
+- slash commands support
+- message commands support
+- based on [discord.js](https://discord.js.org/#/)
+- provied code snipet for commands
+- support sub directory in commands folder
+- support code suggestions in Handler
+
+## Feedback
+
+If you have any feedback, please reach out to us at [Discord Server](https://discord.gg/PcUVWApWN3)
+
+## Usage/Examples
+
+- Commands Example
+
```javascript
+// chat input slash commands
+const {
+ CommandInteraction,
+ ApplicationCommandType,
+ PermissionFlagsBits,
+ Client,
+} = require("discord.js");
+
module.exports = {
- TOKEN : process.env.TOKEN || "BOT_TOKEN",
- PREFIX : process.env.PREFIX || "BOT_PREFIX"
-}
+ name: "",
+ description: ``,
+ userPermissions: PermissionFlagsBits.SendMessages,
+ botPermissions: PermissionFlagsBits.SendMessages,
+ category: "",
+ type: ApplicationCommandType.ChatInput,
+ /**
+ *
+ * @param {Client} client
+ * @param {CommandInteraction} interaction
+ */
+ run: async (client, interaction) => {
+ // Code
+ },
+};
+
+// message input slash commands
+const {
+ ContextMenuCommandInteraction,
+ ApplicationCommandType,
+ Client,
+} = require("discord.js");
+
+module.exports = {
+ name: "",
+ category: "",
+ type: ApplicationCommandType.Message,
+ /**
+ *
+ * @param {Client} client
+ * @param {ContextMenuCommandInteraction} interaction
+ */
+ run: async (client, interaction) => {
+ // Code
+ },
+};
+
+// user slash commands
+
+const {
+ ContextMenuCommandInteraction,
+ ApplicationCommandType,
+ Client,
+} = require("discord.js");
+
+module.exports = {
+ name: "",
+ category: "",
+ type: ApplicationCommandType.User,
+ /**
+ *
+ * @param {Client} client
+ * @param {ContextMenuCommandInteraction} interaction
+ */
+ run: async (client, interaction) => {
+ // Code
+ },
+};
+
+// message commands
+const { Message, PermissionFlagsBits, Client } = require("discord.js");
+
+module.exports = {
+ name: "",
+ description: ``,
+ userPermissions: PermissionFlagsBits.SendMessages,
+ botPermissions: PermissionFlagsBits.SendMessages,
+ category: "",
+ cooldown: 10,
+ /**
+ *
+ * @param {Client} client
+ * @param {Message} message
+ * @param {String[]} args
+ * @param {String} prefix
+ */
+ run: async (client, message, args, prefix) => {
+ // Code
+ },
+};
```
+## License
+
+[MIT](https://choosealicense.com/licenses/mit/)
+# Thanks For Using Mine Handler Please Give a Star
+
If Any Bug Open Pull Request