113 Commits

Author SHA1 Message Date
575993ebc4 更新配置,添加主题配置和编辑链接功能,支持多语言文档编辑 2024-12-17 01:36:31 +08:00
0616ed5084 将MessageEvent改为Event基类,增强兼容性 2024-12-16 12:53:08 +08:00
dd05e603e0 添加随机数生成器插件,支持生成指定数量的随机数 2024-12-16 03:16:27 +08:00
006f925afd 优化函数参数解析,增加对JSON解析错误的处理;更新run_shell_command描述 2024-12-16 03:02:05 +08:00
dacb5aa854 更新Caller类,修复模块名称为空的情况并添加调试日志;修改run_shell_command描述并重命名 2024-12-16 02:15:55 +08:00
b3c63f0ae4 修复tools禁用plugins启用时无法响应的bug 2024-12-16 01:57:32 +08:00
86f0e395f3 移动使用文档位置,添加小棉插件开关配置项 2024-12-16 01:31:42 +08:00
be99a117f0 添加天气查询插件,更新文档以说明插件功能和安装步骤 2024-12-15 18:53:44 +08:00
eb5dcb443d 添加Bot和状态支持,重构Caller类以实现依赖注入;新增获取设备信息和运行代码的功能 2024-12-15 18:27:30 +08:00
5fc4140cf7 优化参数处理逻辑,添加默认值支持;更新天气获取函数的返回信息 2024-12-15 17:43:03 +08:00
df8bc01178 更新扩展开发文档,添加插件和工具的说明;修改获取地理位置和用户信息函数的描述 2024-12-15 17:37:33 +08:00
0379789bec 重构Caller类,移除泛型参数;添加函数签名复制装饰器 2024-12-15 17:08:02 +08:00
af9a5e3c96 删除文档字符串解析相关的未使用文件 2024-12-15 02:59:57 +08:00
6c6b45a168 添加日志输出以指示插件功能开发状态;移除未使用的函数注册模块 2024-12-15 02:59:06 +08:00
0704285cde Merge branch 'main' of https://github.com/LiteyukiStudio/nonebot-plugin-marshoai 2024-12-15 02:51:41 +08:00
f1064b65db 重构函数信息获取逻辑;移除示例测试用例文件 2024-12-15 02:51:37 +08:00
43a33f500e 修复tools函数名 2024-12-15 01:13:25 +08:00
4083aba99f 添加开发模式配置;新增入口文件和函数调用处理逻辑;重构文档字符串解析类 2024-12-15 01:06:41 +08:00
52046ba032 更新函数调用模型,添加同步函数类型支持;重构函数信息获取逻辑;新增示例测试用例
Some checks failed
Deploy VitePress site to Pages / build (push) Failing after 38s
Pre-commit checks / pre-commit (3.11) (push) Successful in 2m40s
Pre-commit checks / pre-commit (3.10) (push) Successful in 3m19s
Pre-commit checks / pre-commit (3.12) (push) Successful in 3m19s
Pre-commit checks / pre-commit (3.13) (push) Successful in 3m23s
Pytest API Testing / Pytest (3.11) (push) Failing after 2m10s
Pytest API Testing / Pytest (3.10) (push) Failing after 2m51s
Pytest API Testing / Pytest (3.12) (push) Failing after 2m46s
Pytest API Testing / Pytest (3.13) (push) Failing after 2m39s
2024-12-14 19:56:42 +08:00
2229a60a05 🔒️ 修正权限问题 2024-12-14 19:16:59 +08:00
3f969ecf33 添加插件加载模块及相关模型,支持插件的动态加载与管理;新增天气、环境和时间获取功能;重构工具函数;删除不再使用的文件 2024-12-14 05:08:24 +08:00
a9938d30ed 🎨 Apply black formatting 2024-12-14 04:43:03 +08:00
59e0871840 🎨 Apply black formatting 2024-12-14 03:34:54 +08:00
7b47606039 🎨 Apply black formatting 2024-12-14 03:33:59 +08:00
23f9a6dde4 添加插件加载模块及相关模型,支持插件的动态加载与管理 2024-12-14 03:32:56 +08:00
40f1982708 🎨 修复导入语句,添加类型忽略注释以提高代码兼容性 2024-12-14 01:50:08 +08:00
53d9cfb15a 🎨 Apply black formatting 2024-12-14 01:15:29 +08:00
bf409f8564 更新 .pre-commit-config.yaml,添加 isort 钩子;优化配置文件格式;更新 pyproject.toml 中的作者信息
All checks were successful
Pre-commit checks / pre-commit (3.11) (push) Successful in 6m17s
Pre-commit checks / pre-commit (3.10) (push) Successful in 6m20s
Pre-commit checks / pre-commit (3.12) (push) Successful in 5m47s
Pre-commit checks / pre-commit (3.13) (push) Successful in 6m31s
Pytest API Testing / Pytest (3.10) (push) Successful in 4m30s
Pytest API Testing / Pytest (3.11) (push) Successful in 4m16s
Pytest API Testing / Pytest (3.12) (push) Successful in 3m50s
Pytest API Testing / Pytest (3.13) (push) Successful in 4m23s
2024-12-13 19:05:17 +08:00
26009a3335 🎨 更新 .pre-commit-config.yaml,启用额外的钩子;优化代码格式,确保一致性;更新 pyproject.toml,添加新作者信息 2024-12-13 18:59:28 +08:00
849cc24968 🎨 Apply black formatting 2024-12-13 18:53:47 +08:00
9792a2c61f 修复字符串格式化中的引号使用,确保正确生成图像链接 2024-12-13 03:47:23 +08:00
e179543742 添加 mk_common.py 和 mk_info.py 文件,提供随机转盘和数字计算功能 2024-12-13 03:31:58 +08:00
81d9508f74 删除 mk_Common.py 和 mk_Info.py 文件,移除不再使用的功能 2024-12-13 03:31:44 +08:00
4581cab264 💩 不要用这种大小写命名规则,在大小写不敏感系统或文件系统上会搞出一堆问题 2024-12-13 03:11:48 +08:00
8f5b05c51a 重构 meogirl 模块,统一导入命名并添加类型忽略注释 2024-12-13 02:49:24 +08:00
5797381824 更新 mypy 版本至 1.13.0,重构 marshoai-megakits 模块并添加随机数和计算功能 2024-12-13 02:40:55 +08:00
8defcfdd66 🎨 更新 Python 依赖版本至 3.10,新增 pre-commit 工作流及配置文件 2024-12-13 02:23:38 +08:00
Nya_Twisuki
1a34e9b167
新增 Introduce 功能, 将其从 Search 分离 (#25)
* 修复了style和script标签无法去除的问题

* 添加了图片展示 & 统一了引号格式

* 添加了图片展示 & 统一了引号格式

* 统一引号格式并异步处理函数

* 新增了Introduce功能

* 新增了Introduce功能并将其从Search中分离
2024-12-13 00:34:50 +08:00
Nya_Twisuki
b939a48b0b
统一格式(无实质改动) & 添加了图片 (#23)
* 修复了style和script标签无法去除的问题

* 添加了图片展示 & 统一了引号格式

* 添加了图片展示 & 统一了引号格式

* 统一引号格式并异步处理函数
2024-12-12 13:47:28 +08:00
2aba05d9ae 修复完成 2024-12-11 18:37:36 +08:00
086f21272f 修改, 但搜索功能完全无法使用了 2024-12-11 18:09:08 +08:00
ccb12f0f63 改成异步了, 改完彻底不能用了 2024-12-11 01:50:06 +08:00
bb2f59eae9 接入萌娘百科搜索 2024-12-11 00:12:22 +08:00
4ca5324f69 new file: nonebot_plugin_marshoai/tools/marshoai-meogirl/__init__.py
new file:   nonebot_plugin_marshoai/tools/marshoai-meogirl/mg_Info.py
	new file:   nonebot_plugin_marshoai/tools/marshoai-meogirl/tools.json
2024-12-10 00:30:13 +08:00
910f68398c 新增禁用工具包的配置项 2024-12-07 17:14:06 +08:00
580f01d844 modified: nonebot_plugin_marshoai/tools/marshoai-megakits/mk_NyaCode.py 2024-12-07 14:15:40 +08:00
a13d49a06e modified: nonebot_plugin_marshoai/models.py
modified:   nonebot_plugin_marshoai/tools/marshoai-megakits/mk_Info.py
	modified:   nonebot_plugin_marshoai/util.py
	modified:   pyproject.toml
	nonebot_plugin_marshoai/tools/marshoai-megakits/__init__.py
	nonebot_plugin_marshoai/tools/marshoai-megakits/tools.json
2024-12-05 18:54:22 +08:00
4f67d0c794 deleted: nonebot_plugin_marshoai/tools/marshoai-megakits/a.py
new file:   nonebot_plugin_marshoai/tools/marshoai-megakits/mk_Common.py
	new file:   nonebot_plugin_marshoai/tools/marshoai-megakits/mk_Info.py
	new file:   nonebot_plugin_marshoai/tools/marshoai-megakits/mk_MorseCode.py
	new file:   nonebot_plugin_marshoai/tools/marshoai-megakits/mk_NyaCode.py
	nonebot_plugin_marshoai/tools/marshoai-megakits/__init__.py
	nonebot_plugin_marshoai/tools/marshoai-megakits/tools.json
2024-12-05 13:45:54 +08:00
4f92bdd6b6 modified: nonebot_plugin_marshoai/models.py
nonebot_plugin_marshoai/tools/marshoai-megakits/__init__.py
	nonebot_plugin_marshoai/tools/marshoai-megakits/tools.json
2024-12-05 13:13:01 +08:00
5d1cdecfc0 modified: nonebot_plugin_marshoai/models.py
new file:   nonebot_plugin_marshoai/tools/marshoai-megakits/a.py
	nonebot_plugin_marshoai/tools/marshoai-megakits/__init__.py
	nonebot_plugin_marshoai/tools/marshoai-megakits/tools.json
2024-12-05 12:29:42 +08:00