@julanzw/ttoolbox-discordjs-framework 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/package.json +50 -50
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# TToolbox Discord Framework
|
|
1
|
+
# TToolbox Discord.js Framework
|
|
2
2
|
|
|
3
3
|
A TypeScript-first Discord.js command framework with built-in handlers, logging, and utilities.
|
|
4
4
|
|
|
@@ -17,14 +17,14 @@ I made this for my own bots, but feel free to use it yourself!
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npm install @julanzw/ttoolbox-
|
|
20
|
+
npm install @julanzw/ttoolbox-discordjs-framework discord.js
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Quick Start
|
|
24
24
|
|
|
25
25
|
```typescript
|
|
26
26
|
import { Client, GatewayIntentBits } from 'discord.js';
|
|
27
|
-
import { Command, CommandManager, TToolboxLogger } from '@julanzw/ttoolbox-
|
|
27
|
+
import { Command, CommandManager, TToolboxLogger } from '@julanzw/ttoolbox-discordjs-framework';
|
|
28
28
|
|
|
29
29
|
const client = new Client({
|
|
30
30
|
intents: [GatewayIntentBits.Guilds]
|
|
@@ -64,6 +64,10 @@ client.on('interactionCreate', async (interaction) => {
|
|
|
64
64
|
client.login(process.env.DISCORD_TOKEN);
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
+
## Example
|
|
68
|
+
|
|
69
|
+
An actual example of the framework being used can be found [in this repo](https://github.com/JulanZw/TibboBot)
|
|
70
|
+
|
|
67
71
|
## Documentation
|
|
68
72
|
|
|
69
73
|
(hopefully soon)
|
package/package.json
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@julanzw/ttoolbox-discordjs-framework",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "A Discord.js command framework with built-in handlers and utilities",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"README.md",
|
|
11
|
-
"LICENSE"
|
|
12
|
-
],
|
|
13
|
-
"scripts": {
|
|
14
|
-
"build": "tsc",
|
|
15
|
-
"prepublishOnly": "npm run build",
|
|
16
|
-
"publish": "npm publish --access public",
|
|
17
|
-
"dev": "tsc --watch"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [
|
|
20
|
-
"discord",
|
|
21
|
-
"discord.js",
|
|
22
|
-
"bot",
|
|
23
|
-
"framework",
|
|
24
|
-
"commands",
|
|
25
|
-
"typescript"
|
|
26
|
-
],
|
|
27
|
-
"author": "JulanZw",
|
|
28
|
-
"license": "AGPL-3.0",
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "https://github.com/JulanZw/TToolbox.git"
|
|
32
|
-
},
|
|
33
|
-
"bugs": {
|
|
34
|
-
"url": "https://github.com/JulanZw/TToolbox/issues"
|
|
35
|
-
},
|
|
36
|
-
"homepage": "https://github.com/JulanZw/TToolbox#readme",
|
|
37
|
-
"peerDependencies": {
|
|
38
|
-
"discord.js": "^14.0.0"
|
|
39
|
-
},
|
|
40
|
-
"peerDependenciesMeta": {
|
|
41
|
-
"@prisma/client": {
|
|
42
|
-
"optional": true
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@prisma/client": "^6.11.1",
|
|
47
|
-
"@types/node": "^24.0.14",
|
|
48
|
-
"discord.js": "^14.21.0",
|
|
49
|
-
"typescript": "^5.8.3"
|
|
50
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@julanzw/ttoolbox-discordjs-framework",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "A Discord.js command framework with built-in handlers and utilities",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md",
|
|
11
|
+
"LICENSE"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc",
|
|
15
|
+
"prepublishOnly": "npm run build",
|
|
16
|
+
"publish": "npm publish --access public",
|
|
17
|
+
"dev": "tsc --watch"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"discord",
|
|
21
|
+
"discord.js",
|
|
22
|
+
"bot",
|
|
23
|
+
"framework",
|
|
24
|
+
"commands",
|
|
25
|
+
"typescript"
|
|
26
|
+
],
|
|
27
|
+
"author": "JulanZw",
|
|
28
|
+
"license": "AGPL-3.0",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/JulanZw/TToolbox.git"
|
|
32
|
+
},
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/JulanZw/TToolbox/issues"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/JulanZw/TToolbox#readme",
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"discord.js": "^14.0.0"
|
|
39
|
+
},
|
|
40
|
+
"peerDependenciesMeta": {
|
|
41
|
+
"@prisma/client": {
|
|
42
|
+
"optional": true
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@prisma/client": "^6.11.1",
|
|
47
|
+
"@types/node": "^24.0.14",
|
|
48
|
+
"discord.js": "^14.21.0",
|
|
49
|
+
"typescript": "^5.8.3"
|
|
50
|
+
}
|
|
51
51
|
}
|