File tree Expand file tree Collapse file tree 6 files changed +30
-11
lines changed Expand file tree Collapse file tree 6 files changed +30
-11
lines changed Original file line number Diff line number Diff line change 1+ > 对应核心版本: [ ** v4.0.1** ] ( https://github.com/simple-robot/simpler-robot/releases/tag/v4.0.1 )
2+
3+
4+ 我们欢迎并期望着您的的[ 反馈] ( https://github.com/simple-robot/simbot-component-onebot/issues ) 或[ 协助] ( https://github.com/simple-robot/simbot-component-onebot/pulls ) ,
5+ 感谢您的贡献与支持!
6+
7+ 也欢迎您为我们献上一颗 ` star ` ,这是对我们最大的鼓励与认可!
Original file line number Diff line number Diff line change 1313 <toc-element topic =" onebot11-quick-start.md" >
1414 <toc-element topic =" use-onebot11.md" />
1515 </toc-element >
16- <toc-element topic =" onebot11-bot-config.md" />
1716 <toc-element topic =" onebot11-event.md" >
1817 </toc-element >
1918 <toc-element topic =" onebot11-message.md" />
20- <toc-element topic =" onebot11-OneBotBot.md" />
19+ <toc-element topic =" onebot11-OneBotBot.md" >
20+ </toc-element >
21+ <toc-element topic =" onebot11-bot-config.md" />
2122 <toc-element topic =" onebot11-actors.md" >
2223 <toc-element topic =" onebot11-OneBotGroup.md" />
2324 <toc-element topic =" onebot11-OneBotMember.md" />
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ OneBot组件选择使用
1414
1515简单来说,就是不论是API交互还是事件订阅,都由OneBot组件作为** 主动方** :主动发起HTTP请求、主动发起WebSocket连接。
1616
17- ## 反向?
17+ ### 反向?
1818
1919如果你真的想要通过反向HTTP来接收事件推送,那么你需要自行搭建 HTTP 服务端,然后使用 ` OneBotBot.push ` 手动推送原始事件的JSON字符串。
2020你可以前往参考
Original file line number Diff line number Diff line change @@ -68,8 +68,11 @@ Bot进行API请求时使用的HttpClient。
6868<def id =" prop-apiHost " title =" apiHost " >
6969Bot进行API请求时使用的服务地址的host,来自配置信息。
7070</def >
71- <def id =" prop-accessToken " title =" accessToken " >
72- Bot进行API请求时使用的accessToken,来自配置信息。
71+ <def id =" prop-apiAccessToken " title =" apiAccessToken " >
72+ Bot进行API请求时使用的 accessToken,来自配置信息。
73+ </def >
74+ <def id =" prop-eventAccessToken " title =" eventAccessToken " >
75+ Bot进行事件订阅的ws连接请求时使用的 accessToken,来自配置信息。
7376</def >
7477<def id =" prop-userId " title =" userId " >
7578
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ switcher-label: JavaAPI风格
77## 前期准备
88
99参考
10- <a href =" onebot11-quick-start.md " />
11- 。
10+ <a href =" onebot11-quick-start.md " /> 。
1211
1312## 安装
1413### 安装组件库
@@ -420,7 +419,10 @@ public static void configure(Application application) {
420419 botConfiguration. setEventServerHost(URLUtilsKt . Url(" ws://localhost:3001" ));
421420 // 其他配置, 一般都是可选属性
422421 // / token
423- botConfiguration. setAccessToken(null );
422+ botConfiguration. accessToken(null );
423+ // 或
424+ botConfiguration. setApiAccessToken(null );
425+ botConfiguration. setEventAccessToken(null );
424426 // / ...
425427
426428 // 注册
@@ -482,7 +484,10 @@ public static void configure(Application application) {
482484 botConfiguration. setEventServerHost(URLUtilsKt . Url(" ws://localhost:3001" ));
483485 // 其他配置, 一般都是可选属性
484486 // / token
485- botConfiguration. setAccessToken(null );
487+ botConfiguration. accessToken(null );
488+ // 或
489+ botConfiguration. setApiAccessToken(null );
490+ botConfiguration. setEventAccessToken(null );
486491 // / ...
487492
488493 // 注册
@@ -545,7 +550,10 @@ public static void configure(Application application) {
545550 botConfiguration. setEventServerHost(URLUtilsKt . Url(" ws://localhost:3001" ));
546551 // 其他配置, 一般都是可选属性
547552 // / token
548- botConfiguration. setAccessToken(null );
553+ botConfiguration. accessToken(null );
554+ // 或
555+ botConfiguration. setApiAccessToken(null );
556+ botConfiguration. setEventAccessToken(null );
549557 // / ...
550558
551559 // 注册
Original file line number Diff line number Diff line change 77 <var name =" jb" value =" 阻塞" />
88 <var name =" ja" value =" 异步" />
99 <var name =" jr" value =" 响应式" />
10- <var name =" version" value =" 0.8 .0" />
10+ <var name =" version" value =" 0.9 .0" />
1111 <var name =" d-group" value =" love.forte.simbot.component" />
1212 <var name =" d-ob11-id" value =" simbot-component-onebot-v11" />
1313 <var name =" minimum-core-version" value =" 4.0.1" />
You can’t perform that action at this time.
0 commit comments