Replies: 25 comments 11 replies
-
ActionFailed(nonebot.adapters.onebot.exception.ActionFailed 或 aiocqhttp.exceptions.ActionFailed)此问题与 NoneBot 无关,请参考协议端(如 go-cqhttp)的输出。 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Nonebot 文档使用的主题是什么?
一款基于Docusaurus和React的文档主题, 由NoneBot团队自行研发 (当然, 你也可以用!) |
Beta Was this translation helpful? Give feedback.
-
Linux 怎么把 bot 挂到后台?使用 shell |
Beta Was this translation helpful? Give feedback.
-
初始化时出现 ModuleNotFoundError: no module named xxx请先同时卸载 NoneBot 1 和 NoneBot 2: pip uninstall nonebot
pip uninstall nonebot2 然后重新安装所需要的版本。 为了保证依赖版本不会冲突,我们强烈推荐您使用虚拟环境 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
启动后无法连接上建议检查 host 与 port 配置,检查端口占用,检查 adapter 是否注册。 |
Beta Was this translation helpful? Give feedback.
-
启动后出现 TypeError/Type xxx 报错请使用 Python 3.8+。 |
Beta Was this translation helpful? Give feedback.
-
定时任务如何获取 bot 实例
|
Beta Was this translation helpful? Give feedback.
-
nb-cli 运行出错出现 请确保系统环境变量 |
Beta Was this translation helpful? Give feedback.
-
升级 adapter 或 NoneBot 2 本体后运行出现报错尝试同时升级 adapter 与本体。 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
为何 NoneBot 2 调用
|
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
如何避免同步函数调用导致的事件循环阻塞?我们提供了以下工具函数, 通过调用线程池将任意同步步函数调用变为异步, 以避免主线程事件循环被阻塞:
以上函数的推荐用法是作为装饰器使用的 @run_sync
def some_sync_function(a,b,c):
do_something()
await some_sync_function(1,2,3) 如果你不想把它当作装饰器使用, 可以使用下面这种代码 def some_sync_function(a,b,c):
do_something()
await run_sync(some_sync_function)(1,2,3)
source: #22 |
Beta Was this translation helpful? Give feedback.
-
如何在Windows下进行异步子进程调用(如使用Playwright等)?由于Uvicorn在Windows下选择的事件循环( 不过所幸, 目前我们可以通过猴子补丁(
|
Beta Was this translation helpful? Give feedback.
-
如何进行不会阻塞事件循环的网络请求?因为NoneBot是一款异步框架,所以如果直接在代码中使用我们常用的 由于
|
Beta Was this translation helpful? Give feedback.
-
如何替换ASGI服务器uvicorn
|
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
为什么onebot的客户端莫名其妙的unexpected EOF
|
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
控制台里全是心跳包事件?关闭心跳包或者修改log-level为debug以上 |
Beta Was this translation helpful? Give feedback.
-
请不要在本帖提问,提问请登录后点击此处
如果你觉得这里的回答有帮助, 请点击回答左下角给予支持
如果您有其他这里没有提及的常见问题想要补充, 也可以随时向这里进行补充
通用
NoneBot v2
matcher.finish
之类的方法发送的消息 CQ 码未解析/为纯文本?NoneBot v1
Beta Was this translation helpful? Give feedback.
All reactions