Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
go-cqhttp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
go-cqhttp
Commits
0a6ddb08
Commit
0a6ddb08
authored
Jul 26, 2020
by
Mrs4s
Committed by
GitHub
Jul 26, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1 from masnn/patch-1
update docs (config interface)
parents
56ca382a
e6ffa9fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
9 deletions
+24
-9
docs/config.md
docs/config.md
+24
-9
No files found.
docs/config.md
View file @
0a6ddb08
...
...
@@ -20,6 +20,8 @@ go-cqhttp 支持导入CQHTTP的配置文件, 具体步骤为:
"password"
:
""
,
"enable_db"
:
true
,
"access_token"
:
""
,
"relogin"
:
false
,
"relogin_delay"
:
0
,
"http_config"
:
{
"enabled"
:
true
,
"host"
:
"0.0.0.0"
,
...
...
@@ -29,16 +31,29 @@ go-cqhttp 支持导入CQHTTP的配置文件, 具体步骤为:
"enabled"
:
true
,
"host"
:
"0.0.0.0"
,
"port"
:
6700
}
},
"ws_reverse_servers"
:
[
{
"enabled"
:
false
,
"reverse_url"
:
"ws://you_websocket_universal.server"
,
"reverse_api_url"
:
"ws://you_websocket_api.server"
,
"reverse_event_url"
:
"ws://you_websocket_event.server"
,
"reverse_reconnect_interval"
:
3000
}
]
}
````
| 字段 | 类型 | 说明 |
| ------------ | ------ | ------------------------------------------------------------ |
| uin | int64 | 登录用QQ号 |
| password | string | 登录用密码 |
| enable_db | bool | 是否开启内置数据库, 关闭后将无法使用
**回复/撤回**
等上下文相关接口 |
| access_token | string | 同CQHTTP的
`access_token`
用于身份验证 |
| http_config | object | HTTP API配置 |
| ws_config | object | Websocket API 配置 |
| 字段 | 类型 | 说明 |
| ------------------ | -------- | ------------------------------------------------------------------- |
| uin | int64 | 登录用QQ号 |
| password | string | 登录用密码 |
| enable_db | bool | 是否开启内置数据库, 关闭后将无法使用
**回复/撤回**
等上下文相关接口 |
| access_token | string | 同CQHTTP的
`access_token`
用于身份验证 |
| relogin | bool | 是否自动重新登录 |
| relogin_delay | int | 重登录延时(秒) |
| http_config | object | HTTP API配置 |
| ws_config | object | Websocket API 配置 |
| ws_reverse_servers | object[] | 反向 Websocket API 配置 |
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment