seyfert-bot-starter 1.0.1 → 1.0.2
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/package.json +1 -1
- package/template/biome.json +31 -25
- package/template/package.json +21 -21
- package/template/src/commands/ping.ts +6 -6
- package/template/src/index.ts +7 -7
- package/template/tsconfig.json +17 -17
package/package.json
CHANGED
package/template/biome.json
CHANGED
|
@@ -1,26 +1,32 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.5.12/schema.json",
|
|
3
|
+
"files": {
|
|
4
|
+
"includes": [
|
|
5
|
+
"**",
|
|
6
|
+
"!**/dist",
|
|
7
|
+
"!**/coverage",
|
|
8
|
+
"!**/node_modules",
|
|
9
|
+
"!**/bun.lock"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"formatter": {
|
|
13
|
+
"enabled": true,
|
|
14
|
+
"indentStyle": "space",
|
|
15
|
+
"indentWidth": 2,
|
|
16
|
+
"lineWidth": 120,
|
|
17
|
+
"formatWithErrors": false
|
|
18
|
+
},
|
|
19
|
+
"linter": {
|
|
20
|
+
"enabled": true,
|
|
21
|
+
"rules": {
|
|
22
|
+
"preset": "recommended"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"javascript": {
|
|
26
|
+
"formatter": {
|
|
27
|
+
"quoteStyle": "double",
|
|
28
|
+
"semicolons": "always",
|
|
29
|
+
"trailingCommas": "all"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
package/template/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
2
|
+
"name": "<PACKAGE_NAME>",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": true,
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "bun --watch src/index.ts",
|
|
8
|
+
"start": "bun src/index.ts",
|
|
9
|
+
"lint": "biome check .",
|
|
10
|
+
"typecheck": "tsc --noEmit",
|
|
11
|
+
"format": "biome format --write ."
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@dotenvx/dotenvx": "^1.40.2",
|
|
15
|
+
"seyfert": "^5.0.0"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@biomejs/biome": "^2.5.7",
|
|
19
|
+
"@types/bun": "^1.2.2",
|
|
20
|
+
"typescript": "^5.9.0"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Command, type CommandContext, Declare } from "seyfert";
|
|
2
2
|
|
|
3
3
|
@Declare({
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
name: "ping",
|
|
5
|
+
description: "Reply with pong",
|
|
6
6
|
})
|
|
7
7
|
export default class PingCommand extends Command {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
8
|
+
run(ctx: CommandContext) {
|
|
9
|
+
return ctx.write({ content: "Pong!" });
|
|
10
|
+
}
|
|
11
|
+
}
|
package/template/src/index.ts
CHANGED
|
@@ -2,15 +2,15 @@ import "@dotenvx/dotenvx/config";
|
|
|
2
2
|
import { Client } from "seyfert";
|
|
3
3
|
|
|
4
4
|
const client = new Client({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
intents: ["Guilds", "GuildMembers", "GuildMessages", "MessageContent"],
|
|
6
|
+
locations: {
|
|
7
|
+
base: "src",
|
|
8
|
+
commands: "commands",
|
|
9
|
+
},
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
client.once("ready", () => {
|
|
13
|
-
|
|
13
|
+
console.log("[seyfert] bot is online");
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
-
void client.start();
|
|
16
|
+
void client.start();
|
package/template/tsconfig.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"types": ["@types/bun"],
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noUncheckedIndexedAccess": true,
|
|
9
|
+
"verbatimModuleSyntax": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"experimentalDecorators": true,
|
|
15
|
+
"emitDecoratorMetadata": true
|
|
16
|
+
},
|
|
17
|
+
"include": ["src"]
|
|
18
|
+
}
|