Skip to content

Commit 45b1977

Browse files
committed
Merge branch 'main' into rewrite-docs
2 parents 3d05352 + b27a6f8 commit 45b1977

File tree

325 files changed

+18999
-3964
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

325 files changed

+18999
-3964
lines changed

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: pnpm/action-setup@v4
1616
with:
17-
version: '10.11.0'
17+
version: '10.14.0'
1818

1919
- uses: actions/checkout@v4
2020

.github/workflows/publish-dev.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: pnpm/action-setup@v4
1515
with:
16-
version: '10.11.0'
16+
version: '10.14.0'
1717

1818
- uses: actions/checkout@v4
1919

@@ -60,6 +60,8 @@ jobs:
6060
"@commandkit/cache:packages/cache"
6161
"@commandkit/analytics:packages/analytics"
6262
"@commandkit/ai:packages/ai"
63+
"@commandkit/queue:packages/queue"
64+
"@commandkit/tasks:packages/tasks"
6365
)
6466
6567
for entry in "${PACKAGES[@]}"; do
@@ -82,6 +84,8 @@ jobs:
8284
"@commandkit/cache"
8385
"@commandkit/analytics"
8486
"@commandkit/ai"
87+
"@commandkit/queue"
88+
"@commandkit/tasks"
8589
)
8690
8791
for pkg in "${PACKAGES[@]}"; do

.github/workflows/publish-latest.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- uses: pnpm/action-setup@v4
1414
with:
15-
version: '10.11.0'
15+
version: '10.14.0'
1616

1717
- uses: actions/checkout@v4
1818

@@ -39,6 +39,8 @@ jobs:
3939
"@commandkit/i18n:packages/i18n"
4040
"@commandkit/devtools:packages/devtools"
4141
"@commandkit/cache:packages/cache"
42+
"@commandkit/queue:packages/queue"
43+
"@commandkit/tasks:packages/tasks"
4244
)
4345
4446
for entry in "${PACKAGES[@]}"; do

.prettierignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,7 @@ pnpm-debug.log*
2929

3030
.turbo
3131
turbo-lint.log
32-
.source
32+
.source
33+
34+
turbo/generators/templates/**/*.hbs
35+
routeTree.gen.ts

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ git checkout -b your-feature-or-bugfix
4949
3. Ensure that your changes don't break any existing functionality.
5050
You can test the functionality of your code depending on where
5151
you've made changes:
52-
5352
1. If you've made changes to the CommandKit package, you can use
5453
the "apps/test-bot" project to test your own bot. Just make sure
5554
to create a new `.env` file with the template from the

apps/test-bot/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.env
22
.commandkit
3-
compiled-commandkit.config.mjs
3+
compiled-commandkit.config.mjs
4+
*.db*

apps/test-bot/commandkit.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { i18n } from '@commandkit/i18n';
44
import { devtools } from '@commandkit/devtools';
55
import { cache } from '@commandkit/cache';
66
import { ai } from '@commandkit/ai';
7+
import { tasks } from '@commandkit/tasks';
78

89
export default defineConfig({
910
plugins: [
@@ -12,5 +13,6 @@ export default defineConfig({
1213
devtools(),
1314
cache(),
1415
ai(),
16+
tasks(),
1517
],
1618
});

apps/test-bot/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@
1616
"@commandkit/devtools": "workspace:*",
1717
"@commandkit/i18n": "workspace:*",
1818
"@commandkit/legacy": "workspace:*",
19+
"@commandkit/tasks": "workspace:*",
1920
"commandkit": "workspace:*",
20-
"discord.js": "^14.19.1",
21+
"discord.js": "catalog:discordjs",
2122
"dotenv": "^16.4.7",
23+
"ms": "^2.1.3",
2224
"zod": "^3.25.56"
2325
},
2426
"devDependencies": {
27+
"@types/ms": "^2.1.0",
2528
"tsx": "^4.7.0"
2629
}
2730
}

apps/test-bot/src/app.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { Client } from 'discord.js';
22
import { Logger, commandkit } from 'commandkit';
3-
import './ai';
3+
import { setDriver } from '@commandkit/tasks';
4+
import { SQLiteDriver } from '@commandkit/tasks/sqlite';
5+
import './ai.ts';
46

57
const client = new Client({
68
intents: [
@@ -12,6 +14,8 @@ const client = new Client({
1214
],
1315
});
1416

17+
setDriver(new SQLiteDriver('./tasks.db'));
18+
1519
Logger.log('Application bootstrapped successfully!');
1620

1721
commandkit.setPrefixResolver((message) => {

apps/test-bot/src/app/commands/(developer)/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const command: CommandData = {
99
name: 'server',
1010
description: 'server command',
1111
guilds: [process.env.DEV_GUILD_ID!],
12+
aliases: ['s', 'serv'],
1213
};
1314

1415
export const chatInput: ChatInputCommand = async (ctx) => {

0 commit comments

Comments
 (0)