Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

单纯自己本地使用的话,nonebot的Console适配器好像用不了? #91

Open
weiby3 opened this issue May 2, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@weiby3
Copy link

weiby3 commented May 2, 2023

本地nb create创建的demo,fastapi+console。
看日志显示调用到了帮助信息输出,但没回复。
image

@Ljzd-PRO
Copy link
Owner

Ljzd-PRO commented May 3, 2023

应该是的,因为使用的是onebot适配器,应该可以再改进

@Ljzd-PRO Ljzd-PRO added the enhancement New feature or request label May 3, 2023
@weiby3
Copy link
Author

weiby3 commented May 4, 2023

没有相关经验的话,看部署教程确实不知道该怎么部署,我就折腾了几个小时都不行

@Ljzd-PRO
Copy link
Owner

Ljzd-PRO commented May 4, 2023

目前的话是需要使用go-cqhttp + onebot v11适配器,作为QQ机器人运行。go-cqhttp是完成QQ登录和消息发送这些操作的,onebot适配器可以连接到go-cqhttp实例,提供API给nonebot插件用。

@Ljzd-PRO
Copy link
Owner

Ljzd-PRO commented May 4, 2023

可能是连接到go-cqhttp比较不好搞,WebSocket链接端口如果要改的话需要设置NoneBot的env环境变量文件。然后go-cqhttp的配置文件里也要把WebSocketlj链接改为onebot适配器要求的。

@Ljzd-PRO Ljzd-PRO added help wanted Extra attention is needed good first issue Good for newcomers labels May 9, 2023
@Yinhaoran1128
Copy link
Contributor

试了一下,设置一个默认event参数勉强就行了,Console发出的信息不带event参数,导致函数不运行直接退出了

@Ljzd-PRO Ljzd-PRO removed help wanted Extra attention is needed good first issue Good for newcomers labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants