Skip to content

Commit

Permalink
docs: 更新设置项说明
Browse files Browse the repository at this point in the history
  • Loading branch information
Clov614 committed Jul 22, 2024
1 parent 3fff4d4 commit 0def5d9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/onebot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ Http post 上报`onebot_event`
### 关于设置

```yaml
# Http server config
http_server:
# The Robot HTTP Address default to http://127.0.0.1:10614
http_address: http://127.0.0.1:10614
# 接口鉴权
access_token: rikka-bot
# 是否启用 get_latest_events 元动作 todo 尚未实现
event_enabled: false
# 事件缓冲区大小,超过该大小将会丢弃最旧的事件,0 表示不限大小
event_buffer_size: 0
# Http 上报器,如不需要请注释掉
http_post:
- # The httpapi post URL
Expand All @@ -57,7 +67,7 @@ http_post:
# The httpapi post Access Token
secret: ""
# The maximum number of retries
max_retries: 3
max_retries: 3 # todo 尚未实现(默认就好不用管)
# 上报请求超时时间
time_out: 5
# 是否开启心跳
Expand Down

0 comments on commit 0def5d9

Please sign in to comment.