Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Oct 13, 2024
1 parent 04439c3 commit 9c32a7c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 13 deletions.
1 change: 0 additions & 1 deletion zh-CN/api/core/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Koishi 使用了组合 (Compose) 的开发方式,绝大部分上下文属性
- [ctx.setInterval](../service/timer.md#ctx-setinterval)
- [ctx.setTimeout](../service/timer.md#ctx-settimeout)
- [ctx.sleep](../service/timer.md#ctx-sleep)
- [ctx.start](../service/registry.md#ctx-start)
- [ctx.stop](../service/registry.md#ctx-stop)
- [ctx.throttle](../service/timer.md#ctx-throttle)
- [ctx.timer](../service/timer.md)
Expand Down
4 changes: 2 additions & 2 deletions zh-CN/api/resources/channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export interface Channel {
export enum ChannelType {
TEXT = 0,
DIRECT = 1,
VOICE = 2,
CATEGORY = 3,
CATEGORY = 2,
VOICE = 3,
}
```

Expand Down
6 changes: 0 additions & 6 deletions zh-CN/api/service/registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@

安装一个存在服务依赖的插件。参见 [服务的依赖关系](../../guide/plugin/service.md#服务的依赖关系)

### ctx.start()

- 返回值: `Promise<void>`

启动此应用。

### ctx.stop()

- 返回值: `Promise<void>`
Expand Down
2 changes: 1 addition & 1 deletion zh-CN/guide/develop/workspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,6 @@ yarn workspace @root/koishi build
```
:::

通常来说,非插件仓库在克隆下来之后还需经过路径配置才可以正常使用。不过不同担心,模板项目支持已经内置了 Koishi 生态中的几个核心仓库 ([koishi](https://github.com/koishijs/koishi), [satori](https://github.com/satorijs/satori), [minato](https://github.com/shigma/minato)) 的路径配置。
通常来说,非插件仓库在克隆下来之后还需经过路径配置才可以正常使用。不过不同担心,模板项目支持已经内置了 Koishi 生态中的几个核心仓库 ([koishi](https://github.com/koishijs/koishi), [satori](https://github.com/satorijs/satori), [minato](https://github.com/cordiverse/minato)) 的路径配置。

完成上述操作后,现在你的 `yarn dev` 已经能直接使用 Koishi 的 TypeScript 源码了!
3 changes: 0 additions & 3 deletions zh-CN/manual/starter/direct.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ ctx.plugin(server, {
ctx.plugin(console) // 提供控制台
ctx.plugin(sandbox) // 提供调试沙盒
ctx.plugin(echo) // 提供回声指令

// 启动应用
ctx.start()
```

接着运行这个文件:
Expand Down
2 changes: 2 additions & 0 deletions zh-CN/plugins/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ Koishi 官方提供了许多插件。为了更好地模块化开发,它们被
## 开发工具

- [@koishijs/plugin-hmr](./develop/hmr.md):模块热替换
- [@koishijs/plugin-http](./develop/http.md):网络请求
- [@koishijs/plugin-mock](./develop/mock.md):测试工具
- [@koishijs/plugin-notifier](./develop/notifier.md):通知服务
- [@koishijs/plugin-proxy-agent](./develop/proxy-agent.md):网络代理
- [@koishijs/plugin-server](./develop/server.md):服务器
- [@koishijs/plugin-server-satori](./develop/server-satori.md):API 服务器
- [@koishijs/plugin-server-temp](./develop/server-temp.md):临时服务器

0 comments on commit 9c32a7c

Please sign in to comment.