重写了GetFile的解析逻辑。

This commit is contained in:
Pyhtagodzilla
2025-07-31 00:44:06 +08:00
parent 2dc3faaf03
commit 63b97d2d2f
14 changed files with 180 additions and 135 deletions
+13 -7
View File
@@ -3,17 +3,23 @@
---
由于一上来就采用了远程开发的模式,所以在bot连接的过程中,需要在 ```bot.run()``` 函数中另外传入参数
```python
bot.run(
bt_uin = "bot account",
root = "bot's master account",
ws_uri = "ws://",
ws_token = "Your token",
webui_uri = "http://Your server:port",
webui_token = "Your token"
bt_uin="bot account",
root="bot's master account",
ws_uri="ws://",
ws_token="Your token",
webui_uri="http://Your server:port",
webui_token="Your token"
)
```
具体的信息在 [配置项文档](https://docs.ncatbot.xyz/guide/kfcvme50/#%E9%85%8D%E7%BD%AE%E9%A1%B9%E5%88%97%E8%A1%A8) 中提及。
一些报错是由于webui的token所导致的,默认值为napcat,另外连接都需要带上协议,例如连接webui时需要带上 ```http://```
一些报错是由于webui的token所导致的,默认值为napcat,另外连接都需要带上协议,例如连接webui时需要带上 ```http://```
---
官方文档已经给出了解析消息的示例,但是我仍然使用了raw_message来手动解析消息。我觉得这个锅要甩***1/3***给文档,
---