a-kirami / matcha Goto Github PK
View Code? Open in Web Editor NEW💬 Matcha is mock chat. 模拟聊天交互的辅助开发工具
License: GNU Affero General Public License v3.0
💬 Matcha is mock chat. 模拟聊天交互的辅助开发工具
License: GNU Affero General Public License v3.0
当前对 OneBot v11 协议的支持并不完全,为提供更好的支持和体验,后续将逐步补全协议
gocq快不行了,希望能测试Satori Protocol的消息
idk:(
No response
No response
No response
v0.2.5
创建的用户不能编辑,删除,修改,界面无法编辑用户和bot的资料
创建的用户不能编辑,删除,修改,界面无法编辑用户和bot的资料
No response
No response
No response
聊天列表里面,创建了群聊就不能删除和编辑了;
用户列表里面,也不能删除、编辑用户的信息
聊天列表里面添加拖动排序,并且添加右键菜单,让他可以删除或进入编辑
用户列表里面,添加拖动排序,并且添加右键菜单,让他可以删除或进入编辑
而且,添加用户应该放在用户列表里面才对吧。
No response
No response
略略略
重装系统后快速恢复之前的配置。
支持导入和导出配置。
No response
No response
No response
比较大的图片在图像预览界因为无法缩放导致看不清
请问能否在图像预览界面支持下鼠标滚轮缩放?
No response
No response
No response
在重启bot后,弹出的断连/重连日志消息会遮挡发送按钮
或许可以把日志丢中间悬浮或者直接关掉
添加日志消息的位置选项
No response
No response
No response
0.2.4-0.2.5
发送echo+图片后卡住然后闪退
不闪退
No response
v0.2.5
连接 nonebot2 时 OneBot v11 协议下配置 ACCESS_TOKEN 无效
nonebot2==2.0.1
nonebot-adapter-onebot==2.2.4
DRIVER=~fastapi+~httpx+~websockets
HOST=127.0.0.1
PORT=3322
ONEBOT_ACCESS_TOKEN=123456
协议: OneBot v11 标准
驱动: 反向 websocket
链接地址: ws://127.0.0.1:3322/onebot/v11/ws/
访问令牌: 123456
正常连接
08-28 03:24:41 [SUCCESS] nonebot | NoneBot is initializing...
08-28 03:24:41 [INFO] nonebot | Current Env: blank
08-28 03:24:41 [DEBUG] nonebot | Loaded Config: {'driver': '~fastapi+~httpx+~websockets', 'host': IPv4Address('127.0.0.1'), 'port': 3322, 'log_level': 'TRACE', 'api_timeout': 60.0, 'superusers': set(), 'nickname': set(), 'command_start': {'/'}, 'command_sep': {'.'}, 'session_expire_timeout': datetime.timedelta(seconds=60), 'environment': 'blank', 'onebot_access_token': 123456}
08-28 03:24:41 [TRACE] nonebot | Detected driver <class 'nonebot.drivers.fastapi.Driver'> with mixins [<class 'nonebot.drivers.httpx.Mixin'>, <class 'nonebot.drivers.websockets.Mixin'>].
08-28 03:24:41 [DEBUG] nonebot | OneBot V12 | Model for key "" <class 'nonebot.adapters.onebot.v12.event.BotEvent'> is overridden by <class 'nonebot.adapters.onebot.v12.event.Event'>
08-28 03:24:41 [DEBUG] nonebot | Succeeded to load adapter "OneBot V11"
08-28 03:24:41 [SUCCESS] nonebot | Running NoneBot...
08-28 03:24:41 [DEBUG] nonebot | Loaded adapters: OneBot V11
08-28 03:24:41 [INFO] uvicorn | Started server process [25032]
08-28 03:24:41 [INFO] uvicorn | Waiting for application startup.
08-28 03:24:41 [INFO] uvicorn | Application startup complete.
08-28 03:24:41 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:3322 (Press CTRL+C to quit)
08-28 03:24:43 [WARNING] nonebot | OneBot V11 | Missing Authorization Header
08-28 03:24:43 [INFO] uvicorn | ('127.0.0.1', 57341) - "WebSocket /onebot/v11/ws/" 403
08-28 03:24:43 [INFO] websockets | connection failed (403 Forbidden)
08-28 03:24:43 [INFO] websockets | connection closed
08-28 03:24:46 [WARNING] nonebot | OneBot V11 | Missing Authorization Header
08-28 03:24:46 [INFO] uvicorn | ('127.0.0.1', 57342) - "WebSocket /onebot/v11/ws/" 403
08-28 03:24:46 [INFO] websockets | connection failed (403 Forbidden)
08-28 03:24:46 [INFO] websockets | connection closed
nonebot2 不配置 ONEBOT_ACCESS_TOKEN
时, 不论 matcha 是否配置 访问令牌
均能正常连接
v0.2.5
申请入群后在群聊中发送指令,可以发送和接受,但matcha会弹窗显示我不是本群成员,同时控制台报错:
(比如我发送 /图像超分)
08-05 19:07:37 [SUCCESS] nonebot | OneBot V11 2871703871 | [message.group.normal]: Message 10008 from 2740324073@[群:413820772] '/图
像超分'
08-05 19:07:37 [INFO] nonebot | Event will be handled by AlconnaMatcher(type='message', module=sora.plugins.real_esrgan)
08-05 19:07:37 [ERROR] nonebot | Running AlconnaMatcher(type='message', module=sora.plugins.real_esrgan) failed.
(省略部分日志)
nonebot.adapters.onebot.v11.exception.ActionFailed: ActionFailed(status='failed', retcode=1000, data={'message': 'Error: 不是本群成员'}, echo='1')
退群后正常接收退群事件:
08-05 19:09:10 [SUCCESS] nonebot | OneBot V11 2871703871 | [notice.group_decrease.leave]: {'time': 1691233751, 'self_id': 2871703871, 'post_type': 'notice', 'notice_type': 'group_decrease', 'sub_type': 'leave', 'user_id': 2740324073, 'group_id': 413820772, 'operator_id': 2740324073}
好像只有我发送 /图像超分
指令会遇到上述问题,别的指令不会,但也没响应
正常响应
控制台日志(第一个error是我重新打开matcha复现的时候忘记申请入群了):
nb日志:
08-05 19:06:21 [SUCCESS] nonebot | OneBot V11 2871703871 | [notice.group_increase.approve]: {'time': 1691233581, 'self_id': 2871703871, 'post_type': 'notice', 'notice_type': 'group_increase', 'sub_type': 'approve', 'user_id': 2740324073, 'group_id': 413820772, 'operator_id': 2740324073}
08-05 19:07:37 [SUCCESS] nonebot | OneBot V11 2871703871 | [message.group.normal]: Message 10008 from 2740324073@[群:413820772] '/图
像超分'
08-05 19:07:37 [INFO] nonebot | Event will be handled by AlconnaMatcher(type='message', module=sora.plugins.real_esrgan)
08-05 19:07:37 [ERROR] nonebot | Running AlconnaMatcher(type='message', module=sora.plugins.real_esrgan) failed.
Traceback (most recent call last):
File "D:\sorabot\sorabot\bot.py", line 25, in <module>
nonebot.run()
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\__init__.py", line 309, in run
get_driver().run(*args, **kwargs)
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\drivers\fastapi.py", line 198, in run
uvicorn.run(
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\uvicorn\main.py", line 578, in run
server.run()
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\uvicorn\server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\mute2\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\mute2\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 636, in run_until_complete
self.run_forever()
File "C:\Users\mute2\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Users\mute2\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 603, in run_forever
self._run_once()
File "C:\Users\mute2\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1909, in _run_once
handle._run()
File "C:\Users\mute2\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\message.py", line 467, in check_and_run_matcher
await _run_matcher(
> File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\message.py", line 419, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\internal\matcher\matcher.py", line 753, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "D:\sorabot\sorabot\matcher_patch.py", line 46, in simple_run
await handler(
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\dependencies\__init__.py", line 104, in __call__
values = await self.solve(**kwargs)
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\dependencies\__init__.py", line 216, in solve
await param._solve(**params)
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\internal\params.py", line 163, in _solve
return await task
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot_plugin_alconna\matcher.py", line 142, in _key_getter
await matcher.reject(prompt)
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\internal\matcher\matcher.py", line 514, in reject
await cls.send(prompt, **kwargs)
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\internal\matcher\matcher.py", line 466, in send
return await bot.send(event=event, message=_message, **kwargs)
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\adapters\onebot\v11\bot.py", line 220, in send
return await self.__class__.send_handler(self, event, message, **kwargs)
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\adapters\onebot\v11\bot.py", line 174, in send
return await bot.send_msg(**params)
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\internal\adapter\bot.py", line 120, in call_api
raise exception
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\internal\adapter\bot.py", line 98, in call_api
result = await self.adapter._call_api(self, api, **data)
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\adapters\onebot\v11\adapter.py", line 140, in _call_api
return handle_api_result(await self._result_store.fetch(seq, timeout))
File "C:\Users\mute2\AppData\Local\pypoetry\Cache\virtualenvs\sorabot-hOzgpBQQ-py3.10\lib\site-packages\nonebot\adapters\onebot\v11\utils.py", line 58, in handle_api_result
raise ActionFailed(**result)
nonebot.adapters.onebot.v11.exception.ActionFailed: ActionFailed(status='failed', retcode=1000, data={'message': 'Error: 不是本群成员'}, echo='3')
08-05 19:09:10 [SUCCESS] nonebot | OneBot V11 2871703871 | [notice.group_decrease.leave]: {'time': 1691233751, 'self_id': 2871703871, 'post_type': 'notice', 'notice_type': 'group_decrease', 'sub_type': 'leave', 'user_id': 2740324073, 'group_id': 413820772, 'operator_id': 2740324073}
该插件在私信、tg中都可以正常响应,应该没问题(?
My plugin.zip
希望能够支持ARM64架构系统
能够在ARM64架构系统上运行
No response
No response
No response
每次发完消息等bot回复完需要手动滑动滚轮,希望可以直接显示bot回复的消息
发送消息时或收到新消息时,将当前聊天页面滑动到最下方
添加一个到达最下方的按钮
No response
No response
v0.4.0
macos下不显示windowcontrols
No response
No response
No response
需要在安卓上使用
直接在浏览器运行 或 安卓 App
No response
No response
No response
0.4.1
打开正确的图片
No response
使用msi安装时,需要请求管理员权限。然而我所在公司的电脑没有管理员权限,因此无法使用。
提供exe免安装版本,或者压缩包。可以下载后双击直接运行的。
No response
No response
No response
添加一个开关,以禁用此错误提示
添加频率限制或过滤功能?
No response
No response
我可以重写一部分vue的内容,或许可以详细讨论下。
No response
No response
No response
0.1.0
断开连接后,无法自动重连
1.在正常连接状态下,退出 NoneBot2
2.重新启动 NoneBot2
之后似乎 Matcha 就不会重新连上 NoneBot2 了,即使重连间隔设置为3秒,点击保存设置后才会重新连上
No response
No response
翻了程序目录和UI我似乎没看到有可以输出日志的地方...是有什么隐秘的小开关吗
No response
窗口平滑移动可能看起来很酷炫,但是对于移动窗口来说,此项功能完全华而不实,甚至会影响移动窗口的精度,因此市面上几乎没有任何应用采用了此功能
移除或添加开关以禁用此功能
No response
No response
No response
https://github.com/A-kirami/matcha/actions/runs/8676870755
见问题描述
No response
No response
根据我的测试,此问题的成因可能是在更改配置后未切断原有连接而直接以新配置创建了新连接,如果不断修改配置可以观察到同时发起的连接数不断上升,且不随时间推移而下降
配置 OneBot 实现的 http server 相关配置,开启 HTTP 服务器监听,用于调用 API。
配置 OneBot 实现的 http post 相关配置,将上报地址改为以下地址其一:
http://127.0.0.1:8080/onebot/v11/
http://127.0.0.1:8080/onebot/v11/http
http://127.0.0.1:8080/onebot/v11/http/
其中,127.0.0.1 和 8080 分别对应 NoneBot 配置的 HOST 和 PORT。
No response
No response
No response
v0.2.4
1、启动nonebot后打开matcha,在matcha上创建的Bot不会连接到nonebot,且无法自动重连;
2、matcha的应用窗口无法被拖动,且无法通过窗口标题栏关闭按钮关闭;
3、无法成功发送消息 是不是需要改名才能发送消息
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.