|
1 | | -<h1 align="center"> |
2 | | - <img src="https://raw.githubusercontent.com/underctrl-io/commandkit/master/apps/docs/public/ckit_logo.png" width="50%"> |
3 | | - <br> |
4 | | -</h1> |
| 1 | +<div align="center"> |
| 2 | + <img src="https://raw.githubusercontent.com/underctrl-io/commandkit/master/apps/docs/public/ckit_logo.png" width="60%" /> |
| 3 | + <br /> |
| 4 | + <a href="https://ctrl.lol/discord"><img src="https://img.shields.io/discord/1055188344188973066?color=5865F2&logo=discord&logoColor=white" alt="support server" /></a> |
| 5 | + <a href="https://www.npmjs.com/package/commandkit"><img src="https://img.shields.io/npm/v/commandkit?maxAge=3600" alt="npm version" /></a> |
| 6 | + <a href="https://www.npmjs.com/package/commandkit"><img src="https://img.shields.io/npm/dt/commandkit?maxAge=3600" alt="npm downloads" /></a> |
| 7 | +</div> |
5 | 8 |
|
6 | | -# CommandKit |
| 9 | +## Support and Suggestions |
7 | 10 |
|
8 | | -CommandKit is a library that makes it easy to handle commands and events in your Discord.js projects. |
| 11 | +If you are looking for support or want to provide suggestions, check out the [Discord](https://ctrl.lol/discord). |
9 | 12 |
|
10 | | -**Supports Discord.js version 14** |
| 13 | +## Links |
11 | 14 |
|
12 | | -## Features |
| 15 | +- [Website](https://commandkit.js.org) ([source](https://github.com/underctrl-io/commandkit/tree/master/apps/docs)) |
| 16 | +- [Support Server](https://ctrl.lol/discord) |
| 17 | +- [CommandKit source](https://github.com/underctrl-io/commandkit/tree/master/packages/commandkit) |
| 18 | +- [npm](https://www.npmjs.com/package/commandkit) |
13 | 19 |
|
14 | | -- Very beginner friendly 🚀 |
15 | | -- Support for slash and context menu commands ✅ |
16 | | -- Automatic command registration, edits, and deletion 🤖 |
17 | | -- Supports multiple development servers 🤝 |
18 | | -- Supports multiple users as bot developers 👥 |
19 | | -- Object oriented 💻 |
| 20 | +## Contributing |
20 | 21 |
|
21 | | -## Documentation |
22 | | - |
23 | | -You can find the full documentation [here](https://commandkit.js.org) |
24 | | - |
25 | | -## Installation |
26 | | - |
27 | | -[](https://nodei.co/npm/commandkit/) |
28 | | - |
29 | | -To install CommandKit, simply run the following command: |
30 | | - |
31 | | -For npm: |
32 | | - |
33 | | -```bash |
34 | | -npm install commandkit |
35 | | -``` |
36 | | - |
37 | | -Yarn: |
38 | | - |
39 | | -```bash |
40 | | -yarn add commandkit |
41 | | -``` |
42 | | - |
43 | | -pnpm: |
44 | | - |
45 | | -```bash |
46 | | -pnpm add commandkit |
47 | | -``` |
48 | | - |
49 | | -### Install development version |
50 | | - |
51 | | -To install the development version of CommandKit, run the following command: |
52 | | - |
53 | | -```bash |
54 | | -npm install commandkit@dev |
55 | | -``` |
56 | | - |
57 | | -> ⚠️ The development version is likely to have bugs. |
58 | | -
|
59 | | -## Usage |
60 | | - |
61 | | -This is a simple overview of how to set up this library with all the options. You can read more in the [full documentation](https://commandkit.js.org) |
62 | | - |
63 | | -```js |
64 | | -// index.js |
65 | | -const { Client, GatewayIntentBits } = require('discord.js'); |
66 | | -const { CommandKit } = require('commandkit'); |
67 | | -const path = require('path'); |
68 | | - |
69 | | -const client = new Client({ |
70 | | - intents: [ |
71 | | - GatewayIntentBits.Guilds, |
72 | | - GatewayIntentBits.GuildMessages, |
73 | | - GatewayIntentBits.MessageContent, |
74 | | - ], |
75 | | -}); |
76 | | - |
77 | | -new CommandKit({ |
78 | | - // Your discord.js client object |
79 | | - client, |
80 | | - |
81 | | - // Path to the commands folder |
82 | | - commandsPath: path.join(__dirname, 'commands'), |
83 | | - |
84 | | - // Path to the events folder |
85 | | - eventsPath: path.join(__dirname, 'events'), |
86 | | - |
87 | | - // Path to the validations folder (only valid if "commandsPath" was provided) |
88 | | - validationsPath: path.join(__dirname, 'validations'), |
89 | | - |
90 | | - // Array of development server IDs (used to register and run devOnly commands) |
91 | | - devGuildIds: ['DEV_SERVER_ID_1', 'DEV_SERVER_ID_2'], |
92 | | - |
93 | | - // Array of developer user IDs (used for devOnly commands) |
94 | | - devUserIds: ['DEV_USER_ID_1', 'DEV_USER_ID_2'], |
95 | | - |
96 | | - // Array of developer role IDs (used for devOnly commands) |
97 | | - devRoleIds: ['DEV_ROLE_ID_1', 'DEV_ROLE_ID_2'], |
98 | | - |
99 | | - // A property that disables CommandKit's built-in validations |
100 | | - skipBuiltInValidations: true, |
101 | | -}); |
102 | | - |
103 | | -client.login('YOUR_TOKEN_HERE'); |
104 | | -``` |
| 22 | +Check out the [contributors guide](https://github.com/underctrl-io/commandkit/blob/master/CONTRIBUTING.md) |
0 commit comments