从外部导入词库,可在群内管理(自定义回复)
-
@Anstiya 好像还是不行,而且main的master改成我的号之后显示没有权限
-
@YoakeAki 这个是之前忘记解决的一个问题,刚想起来,现在已经解决了。
不更新项目的话(只是微调,所以更新与否都可以)在群里发送一次
授权#你的qq 来给自己授权,例如
授权#1840094972
还是不行的话看看报错,可能我漏推送了什么东西,已经把本地的项目压缩并放在release了。 -
[31m2023-01-14 22:16:05 - ERROR [0m
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\client.py", line 666, in await_impl
await protocol.handshake(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\client.py", line 332, in handshake
raise InvalidStatusCode(status_code, response_headers)
websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 404During handling of the above exception, another exception occurred:
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py", line 490, in wait_for
return fut.result()
asyncio.exceptions.CancelledErrorThe above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\wReply-master\main.py", line 631, in <module>
bot.run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 199, in run
MiraiRunner(self).run(host, port, asgi_server, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 276, in run
asyncio.run(self._run())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 647, in run_until_complete
return future.result()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 240, in _run
await self.startup()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 228, in startup
await asyncio.gather(*coros)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 137, in startup
await self._adapter.login(self.qq)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\adapters\base.py", line 35, in wrapped
return await func(self, *args, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\adapters\websocket.py", line 187, in login
self.connection = await connect(self.host_name, extra_headers=headers)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\client.py", line 659, in await_impl_timeout
return await asyncio.wait_for(self.await_impl(), self.open_timeout)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\tasks.py", line 492, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
新问题 -
@YoakeAki 在 从外部导入词库,可在群内管理(自定义回复) 中说:
websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 404
连接超时,这是我的mirai-api-http配置文件,虽然不知道有用没有......试一下看看吧。
-
词库导出到xlsx存在问题,已解决。支持相互导入
-
-
-
@Anstiya 修改了选择关键词的方式,会比原来快点。