Skip to content

Commit 467ac03

Browse files
committed
move test bot to new app directory
1 parent c78f2a4 commit 467ac03

File tree

14 files changed

+41
-42
lines changed

14 files changed

+41
-42
lines changed
File renamed without changes.

apps/test-bot/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

apps/test-bot/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This app is used to test `/packages/commandkit`
File renamed without changes.

apps/test-bot/package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "test-bot",
3+
"scripts": {
4+
"test": "echo \"Error: no test specified\" && exit 1"
5+
},
6+
"dependencies": {
7+
"commandkit": "workspace:*",
8+
"discord.js": "^14.16.3",
9+
"dotenv": "^16.4.7"
10+
},
11+
"devDependencies": {
12+
"tsx": "^4.7.0"
13+
}
14+
}

packages/commandkit/tests/src/commands/misc/giveaway.ts renamed to apps/test-bot/src/commands/misc/giveaway.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
CommandData,
1010
ButtonKit,
1111
AutocompleteProps,
12-
} from '../../../../src/index';
12+
} from 'commandkit';
1313

1414
export const data: CommandData = {
1515
name: 'ping',

packages/commandkit/tests/src/commands/misc/ping.ts renamed to apps/test-bot/src/commands/misc/ping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
CommandData,
1010
ButtonKit,
1111
AutocompleteProps,
12-
} from '../../../../dist/index.mjs';
12+
} from 'commandkit';
1313

1414
export const data: CommandData = {
1515
name: 'ping',

packages/commandkit/tests/src/commands/misc/reload.ts renamed to apps/test-bot/src/commands/misc/reload.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import {
2-
SlashCommandProps,
3-
CommandOptions,
4-
CommandData,
5-
} from '../../../../src/index';
1+
import { SlashCommandProps, CommandOptions, CommandData } from 'commandkit';
62

73
export const data: CommandData = {
84
name: 'reload',
File renamed without changes.

packages/commandkit/tests/src/events/ready/console-log.ts renamed to apps/test-bot/src/events/ready/console-log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Client } from 'discord.js';
2-
import type { CommandKit } from '../../../../src';
2+
import type { CommandKit } from 'commandkit';
33

44
export default function (c: Client<true>, client, handler: CommandKit) {
55
console.log(`${c.user.username} is online.`);

0 commit comments

Comments
 (0)