create-seedcord 0.0.1 → 0.1.0-next.0
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 +38 -2
- package/dist/index.mjs +11208 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -15
- package/templates/README.md.hbs +62 -0
- package/templates/env.hbs +13 -0
- package/templates/eslint.config.mjs.hbs +8 -0
- package/templates/gitignore.hbs +12 -0
- package/templates/package.json.hbs +19 -0
- package/templates/prettier.config.mjs.hbs +3 -0
- package/templates/prettierignore.hbs +1 -0
- package/templates/seedcord.config.ts.hbs +10 -0
- package/templates/src/bot.ts.hbs +44 -0
- package/templates/src/commands/Ping.ts.hbs +13 -0
- package/templates/src/events/Mentioned.ts.hbs +18 -0
- package/templates/src/events/Ready.ts.hbs +16 -0
- package/templates/src/handlers/Ping.ts.hbs +15 -0
- package/templates/src/index.ts.hbs +3 -0
- package/templates/tsconfig.build.json.hbs +11 -0
- package/templates/tsconfig.json.hbs +10 -0
- package/dist/index.cjs +0 -8
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.mts +0 -6
package/README.md
CHANGED
|
@@ -5,8 +5,44 @@
|
|
|
5
5
|
</picture>
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# create-seedcord
|
|
9
9
|
|
|
10
|
-
Scaffold a new seedcord bot project
|
|
10
|
+
Scaffold a new seedcord bot project.
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
pnpm create seedcord my-bot
|
|
16
|
+
npm create seedcord my-bot
|
|
17
|
+
yarn create seedcord my-bot
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
It asks where the project goes, how Discord reaches your bot, what the bot should react to, your bot token, and an accent color. Then it writes the project, installs, formats, generates your command types, and makes the first commit.
|
|
21
|
+
|
|
22
|
+
## Flags
|
|
23
|
+
|
|
24
|
+
Every question has a flag. Pass them all to skip all questions. `--help` prints the list.
|
|
25
|
+
|
|
26
|
+
npm forwards flags to the package only after a `--`:
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
npm create seedcord my-bot -- --transport gateway --capabilities reactions
|
|
30
|
+
pnpm create seedcord my-bot --transport gateway --capabilities reactions
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
`--no-install` and `--no-git` turn off those two steps.
|
|
34
|
+
|
|
35
|
+
With no terminal to ask on, it reads the flags alone. It names the flag that would supply any answer you left out.
|
|
36
|
+
|
|
37
|
+
## What you get
|
|
38
|
+
|
|
39
|
+
You get a TypeScript project with one slash command, its handler, a sample event handler (if you picked `gateway`), `seedcord.config.ts`, eslint, prettier, and a `.env` listing every key the framework reads.
|
|
40
|
+
|
|
41
|
+
`pnpm dev` starts it with hot reload. On the http transport it also opens a cloudflared tunnel and sets it up, and Discord posts interactions to that URL.
|
|
42
|
+
|
|
43
|
+
## Docs
|
|
44
|
+
|
|
45
|
+
- Guide: <https://guide.seedcord.org>
|
|
46
|
+
- API reference: <https://docs.seedcord.org>
|
|
11
47
|
|
|
12
48
|
Part of the [seedcord](https://github.com/seedcord/seedcord) framework. Until a major v1.0.0 release, expect breaking changes in minor versions.
|