Compare commits

...

1640 Commits

Author SHA1 Message Date
Rumio
c9f0a8b9d9
♻️ refactor(llm): 重构 LLM 服务架构,引入中间件与组件化适配器 (#2073)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
* ♻️ refactor(llm): 重构 LLM 服务架构,引入中间件与组件化适配器

- 【重构】LLM 服务核心架构:
    - 引入中间件管道,统一处理请求生命周期(重试、密钥选择、日志、网络请求)。
    - 适配器重构为组件化设计,分离配置映射、消息转换、响应解析和工具序列化逻辑。
    - 移除 `with_smart_retry` 装饰器,其功能由中间件接管。
    - 移除 `LLMToolExecutor`,工具执行逻辑集成到 `ToolInvoker`。
- 【功能】增强配置系统:
    - `LLMGenerationConfig` 采用组件化结构(Core, Reasoning, Visual, Output, Safety, ToolConfig)。
    - 新增 `GenConfigBuilder` 提供语义化配置构建方式。
    - 新增 `LLMEmbeddingConfig` 用于嵌入专用配置。
    - `CommonOverrides` 迁移并更新至新配置结构。
- 【功能】强化工具系统:
    - 引入 `ToolInvoker` 实现更灵活的工具执行,支持回调与结构化错误。
    - `function_tool` 装饰器支持动态 Pydantic 模型创建和依赖注入 (`ToolParam`, `RunContext`)。
    - 平台原生工具支持 (`GeminiCodeExecution`, `GeminiGoogleSearch`, `GeminiUrlContext`)。
- 【功能】高级生成与嵌入:
    - `generate_structured` 方法支持 In-Context Validation and Repair (IVR) 循环和 AutoCoT (思维链) 包装。
    - 新增 `embed_query` 和 `embed_documents` 便捷嵌入 API。
    - `OpenAIImageAdapter` 支持 OpenAI 兼容的图像生成。
    - `SmartAdapter` 实现模型名称智能路由。
- 【重构】消息与类型系统:
    - `LLMContentPart` 扩展支持更多模态和代码执行相关内容。
    - `LLMMessage` 和 `LLMResponse` 结构更新,支持 `content_parts` 和思维链签名。
    - 统一 `LLMErrorCode` 和用户友好错误消息,提供更详细的网络/代理错误提示。
    - `pyproject.toml` 移除 `bilireq`,新增 `json_repair`。
- 【优化】日志与调试:
    - 引入 `DebugLogOptions`,提供细粒度日志脱敏控制。
    - 增强日志净化器,处理更多敏感数据和长字符串。
- 【清理】删除废弃模块:
    - `zhenxun/services/llm/memory.py`
    - `zhenxun/services/llm/executor.py`
    - `zhenxun/services/llm/config/presets.py`
    - `zhenxun/services/llm/types/content.py`
    - `zhenxun/services/llm/types/enums.py`
    - `zhenxun/services/llm/tools/__init__.py`
    - `zhenxun/services/llm/tools/manager.py`

* 📦️ build(deps): 移除 bilireq 并添加 json_repair 依赖

* 🐛 (llm): 移除图片生成模型能力预检查

* ♻️ refactor(llm.session): 重构记忆系统以分离存储和策略

* 🐛 fix(reload_setting): 重载配置时清除LLM缓存

*  feat(llm): 支持结构化生成函数接收 UniMessage

*  feat(search): 为搜索功能默认启用 Gemini Google Search 工具

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-12-14 20:27:02 +08:00
Rumio
e5b2a872d3
feat(group-settings): 实现群插件配置管理系统 (#2072)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
*  feat(group-settings): 实现群插件配置管理系统

- 引入 GroupSettingsService 服务,提供统一的群插件配置管理接口
- 新增 GroupPluginSetting 模型,用于持久化存储插件在不同群组的配置
- 插件扩展数据 PluginExtraData 增加 group_config_model 字段,用于注册分群配置模型
- 新增 GetGroupConfig 依赖注入,允许插件轻松获取和解析当前群组的配置

【核心服务 GroupSettingsService】
- 支持按群组、插件名和键设置、获取和删除配置项
- 实现配置聚合缓存机制,提升配置读取效率,减少数据库查询
- 支持配置继承与覆盖逻辑(群配置覆盖全局默认值)
- 提供批量设置功能 set_bulk,方便为多个群组同时更新配置

【管理与缓存】
- 新增超级用户命令 pconf (plugin_config_manager),用于命令行管理插件的分群和全局配置
- 新增 CacheType.GROUP_PLUGIN_SETTINGS 缓存类型并注册
- 增加 Pydantic model_construct 兼容函数

* 🐛 fix(codeql): 移除对 JavaScript 和 TypeScript 的分析支持

---------

Co-authored-by: webjoin111 <455457521@qq.com>
2025-12-01 14:52:36 +08:00
Rumio
68460d18cc
Feat: 增强 LLM、渲染与广播功能并优化性能 (#2071)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
* ️ perf(image_utils): 优化图片哈希获取避免阻塞异步

*  feat(llm): 增强 LLM 管理功能,支持纯文本列表输出,优化模型能力识别并新增提供商

- 【LLM 管理器】为 `llm list` 命令添加 `--text` 选项,支持以纯文本格式输出模型列表。
- 【LLM 配置】新增 `OpenRouter` LLM 提供商的默认配置。
- 【模型能力】增强 `get_model_capabilities` 函数的查找逻辑,支持模型名称分段匹配和更灵活的通配符匹配。
- 【模型能力】为 `Gemini` 模型能力注册表使用更通用的通配符模式。
- 【模型能力】新增 `GPT` 系列模型的详细能力定义,包括多模态输入输出和工具调用支持。

*  feat(renderer): 添加 Jinja2 `inline_asset` 全局函数

- 新增 `RendererService._inline_asset_global` 方法,并注册为 Jinja2 全局函数 `inline_asset`。
- 允许模板通过 `{{ inline_asset('@namespace/path/to/asset.svg') }}` 直接内联已注册命名空间下的资源文件内容。
- 主要用于解决内联 SVG 时可能遇到的跨域安全问题。
- 【重构】优化 `ResourceResolver.resolve_asset_uri` 中对命名空间资源 (以 `@` 开头) 的解析逻辑,确保能够正确获取文件绝对路径并返回 URI。
- 改进 `RenderableComponent.get_extra_css`,使其在组件定义 `component_css` 时自动返回该 CSS 内容。
- 清理 `Renderable` 协议和 `RenderableComponent` 基类中已存在方法的 `[新增]` 标记。

*  feat(tag): 添加标签克隆功能

- 新增 `tag clone <源标签名> <新标签名>` 命令,用于复制现有标签。
- 【优化】在 `tag create`, `tag edit --add`, `tag edit --set` 命令中,自动去重传入的群组ID,避免重复关联。

*  feat(broadcast): 实现标签定向广播、强制发送及并发控制

- 【新功能】
  - 新增标签定向广播功能,支持通过 `-t <标签名>` 或 `广播到 <标签名>` 命令向指定标签的群组发送消息
  - 引入广播强制发送模式,允许绕过群组的任务阻断设置
  - 实现广播并发控制,通过配置限制同时发送任务数量,避免API速率限制
  - 优化视频消息处理,支持从URL下载视频内容并作为原始数据发送,提高跨平台兼容性
- 【配置】
  - 添加 `DEFAULT_BROADCAST` 配置项,用于设置群组进群时广播功能的默认开关状态
  - 添加 `BROADCAST_CONCURRENCY_LIMIT` 配置项,用于控制广播时的最大并发任务数

*  feat(renderer): 支持组件变体样式收集

*  feat(tag): 实现群组标签自动清理及手动清理功能

* 🐛 fix(gemini): 增加响应验证以处理内容过滤(promptFeedback)

* 🐛 fix(codeql): 移除对 JavaScript 和 TypeScript 的分析支持

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-11-26 14:13:19 +08:00
ThelevenFD
c839b44256
转换specify_probability为float 增加鉴权配置 (#2067)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
* 转换specify_probability为float

* 解决#2045 添加密钥配置

* Revise access token configuration in .env.example

Updated comments and modified access token configuration.

---------

Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2025-11-03 16:36:43 +08:00
Rumio
70bde00757
feat(core): 增强定时任务与群组标签管理,重构调度核心 (#2068)
*  feat(core): 更新群组信息、Markdown 样式与 Pydantic 兼容层

- 【group】添加更新所有群组信息指令,并同步群组控制台数据
- 【markdown】支持合并 Markdown 的 CSS 来源
- 【pydantic-compat】提供 model_validate 兼容函数

*  feat(core): 增强定时任务与群组标签管理,重构调度核心

 新功能

* **标签 (tags)**: 引入群组标签服务。
    * 支持静态标签和动态标签 (基于 Alconna 规则自动匹配群信息)。
    * 支持黑名单模式及 `@all` 特殊标签。
    * 提供 `tag_manage` 超级用户插件 (list, create, edit, delete 等)。
    * 群成员变动时自动失效动态标签缓存。
* **调度 (scheduler)**: 增强定时任务。
    * 重构 `ScheduledJob` 模型,支持 `TAG`, `ALL_GROUPS` 等多种目标类型。
    * 新增任务别名 (`name`)、创建者、权限、来源等字段。
    * 支持一次性任务 (`schedule_once`) 和 Alconna 命令行参数 (`--params-cli`)。
    * 新增执行选项 (`jitter`, `spread`) 和并发策略 (`ALLOW`, `SKIP`, `QUEUE`)。
    * 支持批量获取任务状态。

♻️ 重构优化

* **调度器核心**:
    * 拆分 `service.py` 为 `manager.py` (API) 和 `types.py` (模型)。
    * 合并 `adapter.py` / `job.py` 至 `engine.py` (统一调度引擎)。
    * 引入 `targeting.py` 模块管理任务目标解析。
* **调度器插件 (scheduler_admin)**:
    * 迁移命令参数校验逻辑至 `ArparmaBehavior`。
    * 引入 `dependencies.py` 和 `data_source.py` 解耦业务逻辑与依赖注入。
    * 适配新的任务目标类型展示。

* 🐛 fix(tag): 修复黑名单标签解析逻辑并优化标签详情展示

*  feat(scheduler): 为多目标定时任务添加固定间隔串行执行选项

*  feat(schedulerAdmin): 允许定时任务删除、暂停、恢复命令支持多ID操作

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-11-03 10:53:40 +08:00
molanp
eb6d90ae88
docs(data-source): 更新插件安装函数的参数文档说明 (#2069)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
修改 StoreManager 类中安装插件函数的文档字符串,更新参数列表说
明。将原有的 github_url、module_path、is_dir 参数说明替换为
plugin_info 和 source 参数说明,保持文档与实际函数签名一致。
2025-10-22 20:57:07 +08:00
molanp
4b8013d2d6
Feat: Add spaces (#2064)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
2025-10-17 09:22:18 +08:00
HibiKier
d528711641
🐛 fix(http_utils): 增强错误处理,记录请求失败的详细信息 (#2065)
Some checks are pending
检查bot是否运行正常 / bot check (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions
Release Drafter / Update Release Draft (push) Waiting to run
Force Sync to Aliyun / sync (push) Waiting to run
Update Version / update-version (push) Waiting to run
* 🐛 fix(http_utils): 增强错误处理,记录请求失败的详细信息

* 🐛 fix(http_utils): 改进HTTP错误处理,记录请求失败的状态码和响应内容
2025-10-16 17:31:08 +08:00
molanp
1cc18bb195
fix(shop): 修改道具不存在时的提示信息 (#2061)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
- 将道具不存在时的提示信息从具体的道具名称改为通用提示,避免暴露内部实现细节,
提升用户体验和安全性。
- resolve Bug: 使用道具功能优化
Fixes #2060
2025-10-09 09:01:20 +08:00
Rumio
74a9f3a843
feat(core): 支持LLM多图片响应,增强UI主题皮肤系统及优化JSON/Markdown处理 (#2062)
- 【LLM服务】
  - `LLMResponse` 模型现在支持 `images: list[bytes]`,允许模型返回多张图片。
  - LLM适配器 (`base.py`, `gemini.py`) 和 API 层 (`api.py`, `service.py`) 已更新以处理多图片响应。
  - 响应验证逻辑已调整,以检查 `images` 列表而非单个 `image_bytes`。
- 【UI渲染服务】
  - 引入组件“皮肤”(variant)概念,允许为同一组件提供不同视觉风格。
  - 改进了 `manifest.json` 的加载、合并和缓存机制,支持基础清单与皮肤清单的递归合并。
  - `ThemeManager` 现在会缓存已加载的清单,并在主题重载时清除缓存。
  - 增强了资源解析器 (`ResourceResolver`),支持 `@` 命名空间路径和更健壮的相对路径处理。
  - 独立模板现在会继承主 Jinja 环境的过滤器。
- 【工具函数】
  - 引入 `dump_json_safely` 工具函数,用于更安全地序列化包含 Pydantic 模型、枚举等复杂类型的对象为 JSON。
  - LLM 服务中的请求体和缓存键生成已改用 `dump_json_safely`。
  - 优化了 `format_usage_for_markdown` 函数,改进了 Markdown 文本的格式化,确保块级元素前有正确换行,并正确处理段落内硬换行。

Co-authored-by: webjoin111 <455457521@qq.com>
2025-10-09 08:50:40 +08:00
HibiKier
e7f3c210df
修复并发时数据库超时 (#2063)
* 🔧 修复和优化:调整超时设置,重构检查逻辑,简化代码结构

- 在 `chkdsk_hook.py` 中重构 `check` 方法,提取公共逻辑
- 更新 `CacheManager` 中的超时设置,使用新的 `CACHE_TIMEOUT`
- 在 `utils.py` 中添加缓存逻辑,记录数据库操作的执行情况

*  feat(auth): 添加并发控制,优化权限检查逻辑

* Update utils.py

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-09 08:46:08 +08:00
molanp
f94121080f
fix(check): 修复自检插件在ARM设备下的CPU频率获取逻辑 (#2057)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
- 将插件版本从0.1更新至0.2
- 新增安全获取ARM设备CPU频率的函数get_arm_cpu_freq_safe
- 优化CPU信息采集逻辑,提高在ARM架构下的兼容性
2025-10-01 18:42:47 +08:00
HibiKier
761c8daac4
feat(configs): 优化 ConfigsManager 中的键值获取逻辑,确保未定义键时自动创建 ConfigGroup 实例 (#2058) 2025-10-01 18:42:19 +08:00
Rumio
c667fc215e
feat(llm): 增强LLM服务,支持图片生成、响应验证与OpenRouter集成 (#2054)
*  feat(llm): 增强LLM服务,支持图片生成、响应验证与OpenRouter集成

- 【新功能】统一图片生成与编辑API `create_image`,支持文生图、图生图及多图输入
- 【新功能】引入LLM响应验证机制,通过 `validation_policy` 和 `response_validator` 确保响应内容符合预期,例如强制返回图片
- 【新功能】适配OpenRouter API,扩展LLM服务提供商支持,并添加OpenRouter特定请求头
- 【重构】将日志净化逻辑重构至 `log_sanitizer` 模块,提供统一的净化入口,并应用于NoneBot消息、LLM请求/响应日志
- 【修复】优化Gemini适配器,正确解析图片生成响应中的Base64图片数据,并更新模型能力注册表

*  feat(image): 优化图片生成响应并返回完整LLMResponse

*  feat(llm): 为 OpenAI 兼容请求体添加日志净化

* 🐛 fix(ui): 截断UI调试HTML日志中的长base64图片数据

---------

Co-authored-by: webjoin111 <455457521@qq.com>
2025-10-01 18:41:46 +08:00
Rumio
07be73c1b7
feat(avatar): 引入头像缓存服务并优化头像获取 (#2055)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
Co-authored-by: webjoin111 <455457521@qq.com>
2025-09-28 08:53:10 +08:00
molanp
7e6896fa01
🚑fix(data_source): 修复插件商店更新路径错误 (#2056)
* 🚑fix(data_source): 修复插件商店更新路径错误

* fix(plugin_store): 修复插件模块路径处理逻辑

简化了插件模块路径的赋值逻辑,直接使用插件对象的模块路径,避免不必要的路径分割操作。
同时修复了目标目录判断条件,确保只有在模块路径为根目录时才使用插件名称作为目录。
2025-09-28 08:50:54 +08:00
Rumio
3cc882b116
feat(auto_update): 增强自动更新与版本检查 (#2042)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
- 优化 `检查更新` 默认行为,未指定类型时直接显示版本信息
- 扩展版本详情显示:当前版本、最新开发版/正式版(含日期)、资源版本及更新提示
- 新增更新后资源兼容性检查,自动读取 `resources.spec` 并提示更新
- 使用 `asyncio.gather` 并发获取版本信息,引入 `packaging` 库提高比较准确性
- 优化错误处理与日志记录

Co-authored-by: webjoin111 <455457521@qq.com>
2025-09-12 17:38:41 +08:00
molanp
ee699fb345
fix(plugin_store): 修复插件商店的安装与卸载逻辑 (#2050)
* fix(plugin_store): 修复插件商店的安装与卸载逻辑

- 优化了插件安装、更新和移除的逻辑
- 调整了插件路径的处理方式,支持更灵活的安装位置
- 重构了 `install_plugin_with_repo` 方法,使用 `StorePluginInfo` 对象作为参数
- 修复了一些潜在的路径问题和模块命名问题

* refactor(zhenxun): 优化插件信息获取逻辑

- 将 PluginInfo.get_or_none 替换为 get_plugin 方法,简化插件信息获取逻辑
- 优化了插件移除操作中的插件信息获取流程

* refactor(zhenxun): 优化 sparse_checkout_clone 函数的实现

- 将 git 操作移至临时目录中执行,避免影响目标目录中的现有内容
- 简化了稀疏检出的配置和执行过程
- 改进了错误处理和回退逻辑
- 优化了文件移动和目录清理的操作

* 🐛 添加移除插件时二次查询

*  plugin_info.get_plugin参数包含plugin_type时无效过滤

---------

Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2025-09-12 17:38:24 +08:00
molanp
631e66d54f
fix(htmlrender): 更新htmlrender 导入 路径 (#2051)
- 将 get_browser 的导入路径从 nonebot_plugin_htmlrender 更新为 nonebot_plugin_htmlrender.browser
2025-09-12 16:41:43 +08:00
Rumio
c7ef6fdb17
feat(ui): 增强表格构建器并完善组件模型文档 (#2048)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
*  feat(table): 添加 ComponentCell 以支持表格单元格中嵌入可渲染组件

*  feat(ui): 增强表格构建器并完善组件模型文档

- 增强 `TableBuilder`,新增 `_normalize_cell` 辅助方法,支持自动将原生数据类型(如 `str`, `int`, `Path`)转换为 `TableCell` 模型,简化了表格行的创建。
- 完善 `zhenxun/ui/models` 目录下所有组件模型字段的 `description` 属性和文档字符串,显著提升了代码可读性和开发者体验。
- 优化 `shop/_data_source.py` 中 `gold_rank` 函数的平台路径判断格式,并统一 `my_props` 函数中图标路径的处理逻辑。

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-09-11 10:31:49 +08:00
molanp
fb0a9813e1
fix(ui): 修复表格组件中对本地图片的显示问题 (#2047)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
- 在 ImageCell 中添加对 Path 类型的支持,并在验证器中处理路径解析
- 优化 ShopManage 和 SignManage 类中的代码,使用新的 ImageCell 构造方式
- 更新 TableData 类中的注释,提高代码可读性
2025-09-09 15:01:45 +08:00
molanp
6940c2f37b
🚑 修复 我的道具 渲染异常 (#2046)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
2025-09-08 08:43:56 +08:00
molanp
74ce848127
修复对 Uninfo 错误的版本限制 (#2041)
Some checks failed
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
2025-09-01 17:20:24 +08:00
molanp
9e5c4aa3e7
build(deps): 更新项目依赖项 (#2038)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
- 移除了大量不再需要的依赖项
- 更新了部分依赖项的版本,指定了版本范围
- 添加了少数新的依赖项
2025-08-30 18:13:56 +08:00
Rumio
7f460296dd
feat(ui): 添加富文本单元格并迁移UI表格渲染 (#2039)
*  feat(ui): 添加富文本单元格并迁移UI表格渲染

- 【新功能】
  - 添加 `RichTextCell` 模型,支持在表格单元格中显示多个带样式的文本片段。
  - `TableCell` 类型别名更新以包含 `RichTextCell`。
- 【迁移】
  - 将`ShopManage`、`SignManage` 和 `SchedulerManager` 中所有基于 `ImageTemplate.table_page` 的表格图片生成逻辑迁移至新的 `TableBuilder` 和 `ui.render` 系统。
  - 移除旧的 `ImageTemplate` 导入和 `RowStyle` 函数。
  - 将 `ThemeManager` 中的资源解析逻辑提取到独立的 `ResourceResolver` 类中,增强模块化和可维护性。
  - 优化 `ThemeManager.load_theme` 中 `ChoiceLoader` 的处理逻辑。
  - 优化签到卡片数据结构,移除 `last_sign_date_str` 字段,并调整 `reward_info` 在卡片视图下的结构。
  - 移除 `_generate_html_card` 中 `favorability_info` 的 `attitude` 和 `relation` 字段。

* 🎨 (log): 优化消息日志格式,摘要base64内容

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-30 18:13:37 +08:00
HibiKier
b505307f2f
🐛 优化CacheDict类中的键存在性检查和获取逻辑,简化代码结构,提高可读性。 (#2037)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
2025-08-29 16:07:04 +08:00
molanp
4ab9382205
build(deps): 更新依赖版本 (#2034) 2025-08-29 15:08:17 +08:00
HibiKier
1e2aa99207
Bugfix/fix aliyun (#2036)
* 🐛 修复数据库超时问题

* 🔧 移除帮助图片清理功能.

*  更新插件商店功能,允许在添加插件时指定源类型为 None。优化插件 ID 查找逻辑,增强代码可读性。新增 zhenxun/ui 模块导入。

* 🔧 优化数据访问和数据库上下文逻辑,移除不必要的全局变量和日志信息,调整日志级别为调试,提升代码可读性和性能。

*  增强插件商店功能,支持在下载文件时指定稀疏检出路径和目标目录。优化二进制文件处理逻辑,提升文件下载的准确性和效率。

*  增强阿里云和GitHub的文件管理功能,新增Git不可用异常处理,优化稀疏检出逻辑,提升代码可读性和稳定性。

*  增强插件下载功能,新增对下载结果的异常处理,确保在Git不可用时抛出相应异常信息。优化错误提示,提升用户体验。

*  增强插件商店功能,优化添加插件时的提示信息,明确区分插件模块和名称。新增 Windows 下删除只读文件的处理逻辑,提升插件管理的稳定性和用户体验。

*  优化文件内容获取逻辑,新增对非二进制文件的UTF-8解码处理,提升文件读取的稳定性和准确性。
2025-08-29 14:57:08 +08:00
Rumio
7472cabd48
feat!(ui): 重构图表组件架构,实现数据与样式分离 (#2035)
*  feat!(ui): 重构图表组件架构,实现数据与样式分离

🏗️ **架构重构**
- 移除charts.py中所有硬编码样式参数(grid、tooltip、legend等)
- 将样式配置迁移至主题层style.json文件
- 统一图表模板消费样式文件的能力

📊 **图表组件优化**
- bar_chart: 移除grid和坐标轴show参数
- pie_chart: 移除tooltip、legend样式和series视觉参数
- line_chart: 移除tooltip、grid和坐标轴配置
- radar_chart: 移除tooltip硬编码

🎨 **主题系统增强**
- 新增pie_chart、line_chart、radar_chart的style.json配置
- 更新bar_chart/style.json,添加grid、xAxis、yAxis样式
- 所有图表模板支持deepMerge样式合并逻辑

🔧 **Breaking Changes**
- 图表工厂函数不再接受样式参数
- 主题开发者现可通过style.json完全定制图表外观
- 提升组件可维护性和主题灵活性

* 📦️ build(pyinstaller): 引入 resources.spec 并更新 .gitignore 规则

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-28 09:20:15 +08:00
HibiKier
d9e65057cf
减少数据库查询次数,提高数据库查询方面性能 (#2030)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
* 🐛 修复数据库超时问题

* 🔧 移除帮助图片清理功能.

*  更新插件商店功能,允许在添加插件时指定源类型为 None。优化插件 ID 查找逻辑,增强代码可读性。新增 zhenxun/ui 模块导入。

* 🔧 优化数据访问和数据库上下文逻辑,移除不必要的全局变量和日志信息,调整日志级别为调试,提升代码可读性和性能。
2025-08-26 16:53:14 +08:00
molanp
b12168b6b9
refactor(zhenxun): 移除失效的 GitHub 代理 (#2029)
- 从 get_fastest_raw_formats、get_fastest_archive_formats 和 get_fastest_release_formats 函数中移除了 ghproxy.cc 代理地址
2025-08-26 16:48:02 +08:00
HibiKier
a63f26c3b6
增强插件商店功能,支持添加插件时指定源类型。 (#2028)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
2025-08-21 11:08:34 +08:00
HibiKier
095a123c3c
🔧 移除帮助图片删除功能,简化插件切换逻辑。更新相关导入,优化代码结构。 (#2027)
Some checks are pending
检查bot是否运行正常 / bot check (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions
Release Drafter / Update Release Draft (push) Waiting to run
Force Sync to Aliyun / sync (push) Waiting to run
Update Version / update-version (push) Waiting to run
2025-08-20 21:18:57 +08:00
HibiKier
f9a38a26b2
🐛 修复群组申请通知 (#2026)
Some checks are pending
检查bot是否运行正常 / bot check (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions
Release Drafter / Update Release Draft (push) Waiting to run
Force Sync to Aliyun / sync (push) Waiting to run
Update Version / update-version (push) Waiting to run
*  修复一些bug

- 移除不必要的定时器类,简化代码结构
- 优化好友请求处理逻辑,确保在自动同意和手动处理之间的清晰区分
- 更新缓存机制,避免重复处理相同的好友请求
- 新增判断文件是否为二进制文件的功能,提升文件处理的准确性
- 优化缓存字典的过期检查逻辑,提高性能和可读性

*  更新 get_async_client 函数,支持字符串类型的代理参数

- 修改 proxies 参数类型,允许传入字符串形式的代理地址
- 增强代理处理逻辑,将字符串代理转换为字典格式,提升灵活性和可用性
2025-08-19 16:20:52 +08:00
Rumio
6124e217d0
♻️ refactor(UI): 重构UI渲染服务为组件化分层架构 (#2025)
Some checks failed
检查bot是否运行正常 / bot check (push) Waiting to run
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions
Release Drafter / Update Release Draft (push) Waiting to run
Force Sync to Aliyun / sync (push) Waiting to run
Update Version / update-version (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
* ♻️ refactor(UI): 重构UI渲染服务为组件化分层架构

♻️ **架构重构**
- UI渲染服务重构为组件化分层架构
- 解耦主题管理、HTML生成、截图功能

 **新增功能**
- `zhenxun.ui` 统一入口,提供 `render`、`markdown`、`vstack` 等API
- `RenderableComponent` 基类和渲染协议抽象
- 新增主题管理器和截图引擎模块

⚙️ **配置优化**
- UI配置迁移至 `superuser/ui_manager.py`
- 新增"重载UI主题"管理指令

🔧 **性能改进**
- 优化渲染缓存,支持组件级透明缓存
- 所有UI组件适配新渲染流程

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-18 23:08:22 +08:00
Rumio
11524bcb04
♻️ refactor: 统一图片渲染架构并引入通用UI组件系统 (#2019)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
* ♻️ refactor: 统一图片渲染架构并引入通用UI组件系统

🎨 **渲染服务重构**
- 统一图片渲染入口,引入主题系统支持
- 优化Jinja2环境管理,支持主题覆盖和插件命名空间
- 新增UI缓存机制和主题重载功能

 **通用UI组件系统**
- 新增 zhenxun.ui 模块,提供数据模型和构建器
- 引入BaseBuilder基类,支持链式调用
- 新增多种UI构建器:InfoCard, Markdown, Table, Chart, Layout等
- 新增通用组件:Divider, Badge, ProgressBar, UserInfoBlock

🔄 **插件迁移**
- 迁移9个内置插件至新渲染系统
- 移除各插件中分散的图片生成工具
- 优化数据处理和渲染逻辑

💥 **Breaking Changes**
- 移除旧的图片渲染接口和模板路径
- TEMPLATE_PATH 更名为 THEMES_PATH
- 插件需适配新的RendererService和zhenxun.ui模块

*  test(check): 更新自检插件测试中的渲染服务模拟

* ♻️ refactor(renderer): 将缓存文件名哈希算法切换到 SHA256

* ♻️ refactor(shop): 移除商店HTML图片生成模块

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-15 16:34:37 +08:00
HibiKier
d5e5fac02d
🐛 修复webui移除插件bug (#2018)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
* 🐛 修复webui移除插件bug

* test: 使用 xfail 替代 skip 标记测试用例 (#2020)

* test: 暂时跳过插件商店相关测试 (#2015)

- 在五个测试文件中,为所有测试函数添加了 @pytest.mark.skip("修不好") 装饰器
- 导入了 pytest 模块以支持跳过测试
- 保留了现有的测试逻辑,仅添加了跳过标记
- 等以后能修好了再说,不能因为它影响测试流程

* test: 使用 xfail 替代 skip 标记测试用例

- 将多个测试用例中的 @pytest.mark.skip 标记替换为 @pytest.mark.xfail
- 这一变更可以更准确地反映测试用例的预期行为
- 主要涉及 auto_update、plugin_store 相关的测试文件

* test: 标记 test_check 和 test_check_arm 测试用例为预期失败

- 在 test_check.py 文件中,为 test_check 和 test_check_arm 两个异步测试用例添加了 pytest.mark.xfail 装饰器
- 这表示这两个测试用例预期会失败,可能是由于已知的错误或不稳定因素
- 使用 xfail 标记可以帮助区分正常的测试失败和预期的失败,避免误报

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

---------

Co-authored-by: molanp <104612722+molanp@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-14 09:06:16 +08:00
molanp
55da0046a2
test: 暂时跳过插件商店相关测试 (#2015)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
- 在五个测试文件中,为所有测试函数添加了 @pytest.mark.skip("修不好") 装饰器
- 导入了 pytest 模块以支持跳过测试
- 保留了现有的测试逻辑,仅添加了跳过标记
- 等以后能修好了再说,不能因为它影响测试流程
2025-08-12 21:33:37 +08:00
molanp
977f0b13b3
fix(zhenxun): 修复 HTTP 客户端初始化逻辑错误 (#2014)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
- 将 httpx.AsyncClient 实例化逻辑封装到 get_async_client 函数中
- 统一全局客户端和测试环境客户端的创建方式
- 提高代码复用性和可维护性
2025-08-11 10:18:15 +08:00
molanp
2fed781350
fix(scheduler_admin): 修复定时任务列表页码显示逻辑 (#2016)
* fix(scheduler_admin): 修复定时任务列表页码显示逻辑

- 在格式化定时任务列表图像时,添加对当前页码的可用性判断
- 如果页码不可用,则将当前页码默认设置为 1,避免显示错误的页码信息

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-11 10:15:31 +08:00
molanp
6d1789bbee
fix(zhenxun): 修正插件更新逻辑 (#2017)
- 将循环遍历的变量从 plugin_list 改为 all_plugin_list,以确保尝试更新所有插件
- 优化了插件更新日志的输出格式
2025-08-11 10:14:41 +08:00
HibiKier
3deffcb46c
增强缓存功能,优化请求管理逻辑 (#2012)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
- 在 `record_request.py` 和 `group_handle/__init__.py` 中引入了 `CacheRoot`,实现请求缓存,避免重复处理相同请求。
- 在 `exception.py` 中更新 `ForceAddGroupError` 类,新增 `group_id` 属性以便于错误处理。
- 在 `data_source.py` 中修改 `ForceAddGroupError` 的抛出逻辑,包含 `group_id` 信息。
- 更新 `cache` 类,支持类型化缓存字典和列表,增强缓存的类型安全性。

此更新提升了请求处理的效率和准确性,同时增强了错误信息的可追溯性。
2025-08-06 16:31:09 +08:00
Rumio
be86e0bb7f
♻️ refactor(scheduler): 重构定时任务系统并增强功能 (#2009)
Some checks are pending
检查bot是否运行正常 / bot check (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions
Release Drafter / Update Release Draft (push) Waiting to run
Force Sync to Aliyun / sync (push) Waiting to run
Update Version / update-version (push) Waiting to run
* ♻️ refactor(scheduler): 重构定时任务系统并增强功能

- 【模型重命名】将 `ScheduleInfo` 模型及其数据库表重命名为 `ScheduledJob`,以提高语义清晰度。
- 【触发器抽象】引入 `Trigger` 工厂类,提供类型安全的 Cron、Interval 和 Date 触发器配置。
- 【执行策略】新增 `ExecutionPolicy` 模型,允许为定时任务定义重试策略、延迟、异常类型以及成功/失败回调。
- 【任务执行】重构任务执行逻辑,支持 NoneBot 的依赖注入,并根据 `ExecutionPolicy` 处理任务的重试和回调。
- 【临时任务】增加声明式和编程式的临时任务调度能力,支持非持久化任务在运行时动态创建和执行。
- 【管理命令】更新定时任务管理命令 (`schedule_admin`),使其适配新的 `ScheduledJob` 模型和参数验证逻辑。
- 【展示优化】改进定时任务列表和状态展示,使用新的触发器格式化逻辑和参数模型信息。
- 【重试装饰器】为 `Retry.api` 装饰器添加 `on_success` 回调,允许在任务成功执行后触发额外操作。

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-06 09:02:23 +08:00
HibiKier
67a2560de4
增强权限检查,更新请求管理命令和数据库配置逻辑 (#2011) 2025-08-06 09:02:07 +08:00
ManyManyTomato
5c96761fd0
🎨更新整合包下载地址 (#2010)
Some checks are pending
检查bot是否运行正常 / bot check (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions
Release Drafter / Update Release Draft (push) Waiting to run
Force Sync to Aliyun / sync (push) Waiting to run
Update Version / update-version (push) Waiting to run
Co-authored-by: ATTomatoo <1126160939@qq.com>
2025-08-05 19:27:15 +08:00
molanp
872d2499a2
feat(ban): 在调用ban列表时主动删除过期数据 (#1997)
* feat(ban): 在调用ban列表时主动删除过期数据
- 除了接收到被ban用户的信息外,现在主动调用`ban列表`命令也会删除过期数据
- 修复 unban 返回信息错误

* refactor(ban): 优化 unban 函数返回值逻辑

- 使用或运算简化返回值判断逻辑
- 移除不必要的字符串转换

* refactor(zhenxun): 优化 unban 函数返回值类型

- 将 unban 函数的返回类型从 tuple[bool, str | None] 改为 tuple[bool, str]
- 修改返回值,确保总是返回字符串类型,避免类型检查错误
2025-08-05 19:12:15 +08:00
HibiKier
7719be9866
支持git更新(github与aliyun codeup),插件商店支持aliyun codeup (#1999)
*  feat(env): 支持git更新

*  feat(aliyun): 更新阿里云URL构建逻辑,支持组织名称并优化令牌解码处理

*  feat(config): 修改错误提示信息,更新基础配置文件名称为.env.example

*  插件商店支持aliyun

*  feat(store): 优化插件数据获取逻辑,合并插件列表和额外插件列表

* 🐛 修复非git仓库的初始化更新

*  feat(update): 增强更新提示信息,添加非git源的变更文件说明

* 🎨 代码格式化

*  webui与resources支持git更新

*  feat(update): 更新webui路径处理逻辑

* Fix/test_runwork (#2001)

* fix(test): 修复测试工作流

- 修改自动更新模块中的导入路径
- 更新插件商店模块中的插件信息获取逻辑
- 优化插件添加、更新和移除流程
- 统一插件相关错误信息的格式
- 调整测试用例以适应新的插件管理逻辑

* test(builtin_plugins): 重构插件商店相关测试

- 移除 jsd 相关测试用例,只保留 gh(GitHub)的测试
- 删除了 test_plugin_store.py 文件,清理了插件商店的测试
- 更新了 test_search_plugin.py 中的插件版本号
- 调整了 test_update_plugin.py 中的已加载插件版本
- 移除了 StoreManager 类中的 is_external 变量
- 更新了 RepoFileManager 类中的文件获取逻辑,优先使用 GitHub

*  feat(submodule): 添加子模块管理功能,支持子模块的初始化、更新和信息获取

*  feat(update): 移除资源管理器,重构更新逻辑,支持通过ZhenxunRepoManager进行资源和Web UI的更新

* test(auto_update): 修改更新检测消息格式 (#2003)

- 移除了不必要的版本号后缀(如 "-e6f17c4")
- 统一了版本更新消息的格式,删除了冗余信息

* 🐛 修复web zip更新路径问题

*  文件获取优化使用ali

* Fix/test (#2008)

* test: 修复bot测试

- 在 test_check_update.py 中跳过两个测试函数
- 移除 test_check.py 中的 mocked_api 参数和相关调用
- 删除 test_add_plugin.py 中的多个测试函数
- 移除 test_remove_plugin.py 中的 mocked_api 参数和相关调用
- 删除 test_search_plugin.py 中的多个测试函数
- 移除 test_update_all_plugin.py 和 test_update_plugin.py 中的 mocked_api 参数和相关调用

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* 修复res zip更新路径问题

* 🐛 修复zhenxun更新zip占用问题

*  feat(update): 优化资源更新逻辑,调整更新路径和消息处理

---------

Co-authored-by: molanp <104612722+molanp@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-05 17:49:23 +08:00
Rumio
7c153721f0
♻️ refactor!: 重构LLM服务架构并统一Pydantic兼容性处理 (#2002)
Some checks failed
检查bot是否运行正常 / bot check (push) Waiting to run
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions
Release Drafter / Update Release Draft (push) Waiting to run
Force Sync to Aliyun / sync (push) Waiting to run
Update Version / update-version (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
* ♻️ refactor(pydantic): 提取 Pydantic 兼容函数到独立模块

* ♻️ refactor!(llm): 重构LLM服务,引入现代化工具和执行器架构

🏗️ **架构变更**
- 引入ToolProvider/ToolExecutable协议,取代ToolRegistry
- 新增LLMToolExecutor,分离工具调用逻辑
- 新增BaseMemory抽象,解耦会话状态管理

🔄 **API重构**
- 移除:analyze, analyze_multimodal, pipeline_chat
- 新增:generate_structured, run_with_tools
- 重构:chat, search, code变为无状态调用

🛠️ **工具系统**
- 新增@function_tool装饰器
- 统一工具定义到ToolExecutable协议
- 移除MCP工具系统和mcp_tools.json

---------

Co-authored-by: webjoin111 <455457521@qq.com>
2025-08-04 23:36:12 +08:00
molanp
59d72c3b3d
feat(admin): 增加封禁用户理由并优化相关逻辑 (#1992)
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
* feat(admin): 增加封禁用户理由并优化相关逻辑

- 在 ban 命令中添加了 -r 或 --reason 选项,用于指定封禁理由
- 优化了 ban 命令的参数解析和处理逻辑
- 更新了数据库模型,增加了 ban_reason 字段用于存储封禁理由
- 修复了部分逻辑错误,如永久封禁的处理方式

* 🚨 auto fix by pre-commit hooks

* refactor(ban): 优化 ban 命令和相关功能

- 修复 ban 命令中的 reason 参数可选标记
- 完善恶意触发检测和用户昵称违规的禁言信息
- 统一禁言操作的参数顺序,提高代码可读性

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-29 17:22:27 +08:00
AkashiCoin
c571bfb133
🎉 chore(version): Update version to v0.2.4-da6d5b4 (#1822)
Some checks failed
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
2025-07-25 10:50:23 +08:00
HibiKier
da6d5b4be4
🐛 修复bot个人介绍重载后不重新读取个人介绍文件 (#1990)
Some checks failed
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions
Release Drafter / Update Release Draft (push) Waiting to run
Force Sync to Aliyun / sync (push) Waiting to run
检查bot是否运行正常 / bot check (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
2025-07-24 15:59:28 +08:00
HibiKier
62fac483f2
feat(workflow): 新增阿里云强制同步工作流配置 (#1991) 2025-07-24 15:59:17 +08:00
molanp
61251ce137
fix(zhenxun): 修复群员昵称中包含特殊字符导致的更新异常 (#1988)
- 在更新群员信息时,使用正则表达式过滤掉昵称中的控制字符
- 优化了 MemberUpdateManage 类中的代码,提高了数据的兼容性和安全性
2025-07-17 19:49:17 +08:00
xuanerwa
30fe5a5393
feat(aliyun): 添加阿里云相关配置和文件操作功能 (#1985)
*  feat(aliyun): 添加阿里云相关配置和文件操作功能

* 🐛 fix bug

* 🎨 更新requirements

* ⬆️ Update poetry.lock

*  feat(aliyun): 添加阿里云获取commit方法

* 更新env pyproject

---------

Co-authored-by: HibiKier <775757368@qq.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2025-07-17 19:48:33 +08:00
molanp
3cf7c1d237
fix(plugin_store): 修复递代错误 (#1986)
- 在查找插件时使用 next() 函数的默认值 None,避免抛出 StopIteration 异常
- 增加对未找到插件的错误处理,返回相应的错误信息
- 优化了插件查找逻辑,提高了代码的健壮性和可读性

Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2025-07-17 19:01:02 +08:00
HibiKier
91f35ad63a
feat(exceptions): 将DbUrlIsNode异常类继承自HookPriorityException (#1987) 2025-07-17 18:58:22 +08:00
Rumio
a0b57b6bea
feat(help): 引入LLM智能帮助并优化其功能 (#1982)
- 【新功能】引入LLM智能帮助功能,当传统帮助未找到结果时,可自动调用LLM提供智能回复
- 【配置项】新增多项LLM帮助相关配置:
    - `ENABLE_LLM_HELPER`: 控制LLM智能帮助的启用与禁用
    - `DEFAULT_LLM_MODEL`: 配置智能帮助使用的LLM模型
    - `LLM_HELPER_STYLE`: 设置LLM回复的口吻或风格
    - `LLM_HELPER_REPLY_AS_IMAGE_THRESHOLD`: 定义LLM回复字数超过此阈值时转为图片发送
- 【逻辑优化】帮助指令处理流程调整:
    - 优先尝试传统插件帮助查询
    - 若传统查询无结果且LLM智能帮助已启用,则调用LLM进行自然语言回答

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2025-07-16 13:48:13 +08:00
HibiKier
205f4ff1fa
添加bot画像
*  新增自我介绍功能及自动发送图片支持

- 在 bot_profile.py 中实现自我介绍指令及重载功能
- 在 group_handle 中添加自动发送自我介绍图片的逻辑
- 在 fg_request 中实现添加好友时自动发送自我介绍图片
- 新增 bot_profile_manager.py 管理 BOT 自我介绍及图片生成
- 更新 models.py 以支持插件自我介绍和注意事项字段

* 🎨 调整管理帮助宽度

*  更新数据访问层,优化获取数据的方法并引入缓存机制

*  更新用户数据访问逻辑,优化获取用户信息的方法,使用新的函数替代原有实现

*  在 BotProfileManager 中添加自我介绍文件不存在的日志记录,优化文件读取逻辑

*  更新 BOT 自我介绍帮助信息,增加文件不存在时自动创建功能
2025-07-16 02:51:06 +08:00
Rumio
b993450a23
feat(limit, message): 引入声明式限流系统并增强消息格式化功能 (#1978)
- 新增 Cooldown、RateLimit、ConcurrencyLimit 三种限流依赖
- MessageUtils 支持动态格式化字符串 (format_args 参数)
- 插件CD限制消息显示精确剩余时间

- 重构限流逻辑至 utils/limiters.py,新增时间工具模块
- 整合时间工具函数并优化时区处理
- 新增 limiter_hook 自动释放资源,CooldownError 优化异常处理

- 冷却提示从固定文本改为动态显示剩余时间
- 示例:总结功能冷却中,请等待 1分30秒 后再试~

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2025-07-15 17:13:33 +08:00
HibiKier
d218c569d4
格式化db_context (#1980)
*  格式化db_context

* 🔥 移除旧db-context

*  添加旧版本兼容
2025-07-15 17:08:42 +08:00
molanp
faa91b8bd4
🚑 修复数据迁移SQL (#1969)
* perf(zhenxun): 优化签到和道具 SQL 查询语句

- 改为通用SQL

* style(zhenxun): 优化签到 SQL 查询格式

- 调整 SQL 查询的缩进和格式,提高可读性
- 没有修改实际的查询逻辑,仅优化代码结构

---------

Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2025-07-14 23:20:13 +08:00
HibiKier
582ad8c996
🐛 修复sqlite连接问题 (#1979)
* 🚑 修复sqlite连接问题

* 🔧 移除db_url参数以简化数据库配置获取逻辑
2025-07-14 22:59:56 +08:00
Rumio
46a0768a45
feat(llm): 新增LLM模型管理插件并增强API密钥管理 (#1972)
🔧 新增功能:
- LLM模型管理插件 (builtin_plugins/llm_manager/)
  • llm list - 查看可用模型列表 (图片格式)
  • llm info - 查看模型详细信息 (Markdown图片)
  • llm default - 管理全局默认模型
  • llm test - 测试模型连通性
  • llm keys - 查看API Key状态 (表格图片,含健康度/成功率/延迟)
  • llm reset-key - 重置API Key失败状态

🏗️ 架构重构:
- 会话管理: AI/AIConfig 类迁移至独立的 session.py
- 类型定义: TaskType 枚举移至 types/enums.py
- API增强:
  • chat() 函数返回完整 LLMResponse,支持工具调用
  • 新增 generate() 函数用于一次性响应生成
  • 统一API调用核心方法 _perform_api_call,返回使用的API密钥

🚀 密钥管理增强:
- 详细状态跟踪: 健康度、成功率、平均延迟、错误信息、建议操作
- 状态持久化: 启动时加载,关闭时自动保存密钥状态
- 智能冷却策略: 根据错误类型设置不同冷却时间
- 延迟监控: with_smart_retry 记录API调用延迟并更新统计

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2025-07-14 22:39:17 +08:00
HibiKier
8649aaaa54
引入缓存机制 (#1889)
* 添加全局cache

*  构建缓存,hook使用缓存

*  新增数据库Model方法监控

*  数据库添加semaphore锁

* 🩹 优化webapi返回数据

*  添加增量缓存与缓存过期

* 🎨 优化检测代码结构

*  优化hook权限检测性能

* 🐛 添加新异常判断跳过权限检测

*  添加插件limit缓存

* 🎨 代码格式优化

* 🐛  修复代码导入

* 🐛 修复刷新时检查

* 👽 Rename exception for missing database URL in initialization

*  Update default database URL to SQLite in configuration

* 🔧 Update tortoise-orm and aiocache dependencies restrictions; add optional redis and asyncpg support

* 🐛 修复ban检测

* 🐛 修复所有插件关闭时缓存更新

* 🐛 尝试迁移至aiocache

* 🐛 完善aiocache缓存

*  代码性能优化

* 🐛 移除获取封禁缓存时的日志记录

* 🐛 修复缓存类型声明,优化封禁用户处理逻辑

* 🐛 优化LevelUser权限更新逻辑及数据库迁移

*  cache支持redis连接

* 🚨 auto fix by pre-commit hooks

*  :增强获取群组的安全性和准确性。同时,优化了缓存管理中的相关逻辑,确保缓存操作的一致性。

*  feat(auth_limit): 将插件初始化逻辑的启动装饰器更改为优先级管理器

* 🔧 修复日志记录级别

* 🔧 更新数据库连接字符串

* 🔧 更新数据库连接字符串为内存数据库,并优化权限检查逻辑

*  feat(cache): 增加缓存功能配置项,并新增数据访问层以支持缓存逻辑

* ♻️ 重构cache

*  feat(cache): 增强缓存管理,新增缓存字典和缓存列表功能,支持过期时间管理

* 🔧 修复Notebook类中的viewport高度设置,将其从1000调整为10

*  更新插件管理逻辑,替换缓存服务为CacheRoot并优化缓存失效处理

*  更新RegisterConfig类中的type字段

*  修复清理重复记录逻辑,确保检查记录的id属性有效性

*  超级无敌大优化,解决延迟与卡死问题

*  更新封禁功能,增加封禁时长参数和描述,优化插件信息返回结构

*  更新zhenxun_help.py中的viewport高度,将其从453调整为10,以优化页面显示效果

*  优化插件分类逻辑,增加插件ID排序,并更新插件信息返回结构

---------

Co-authored-by: BalconyJH <balconyjh@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-14 22:35:29 +08:00
HibiKier
6283c3d13d
更新README.md (#1976) 2025-07-13 20:07:40 +08:00
HibiKier
8f1e35954b
恢复RegisterConfig的type默认值为None (#1975) 2025-07-12 23:48:07 +08:00
molanp
9686a31419
🚑refactor(config): 修复模型type校验 (#1974)
* 🚑refactor(config): 修复模型type校验

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-12 00:05:24 +08:00
molanp
632ec3e46e
fix(zhenxun): 修复初始化配置文件时的类型判断逻辑 (#1971)
- 修改了配置类型判断逻辑,当 reg_config.type 为 None 时,使用 reg_config.value 的类型
- 这样可以更准确地处理配置项的类型,避免潜在的类型错误
2025-07-11 17:15:17 +08:00
molanp
fb8811207e
🚑 修复配置类型处理逻辑 (#1970)
- 在 init_config.py 中,增加了对注册配置类型为空时的处理,使用配置的值类型作为默认类型
- 在 models.py 中,将 RegisterConfig 类的 type 字段默认值从 str 改为 None,以支持更灵活的配置类型
2025-07-11 15:45:12 +08:00
Rumio
99eacdfc12
feat(http_utils): 优化AsyncHttpx类,解决并发下载问题 (#1968)
- 分离客户端配置和请求参数,避免不必要的临时客户端创建
- 添加可选下载进度条,解决并发下载时Progress实例冲突
- 优化 AsyncHttpx 方法文档字符串

Co-authored-by: webjoin111 <455457521@qq.com>
2025-07-11 10:13:02 +08:00
HibiKier
acfed0837a
检查更新支持webui更新 (#1925)
*  检查更新支持webui跟新

* 🎨 移除无用导入
2025-07-11 10:11:14 +08:00
HibiKier
4bcc5aeea5
新增依赖管理功能,支持安装和卸载虚拟环境依赖,同时优化相关API和数据模型 (#1936) 2025-07-11 10:10:53 +08:00
HibiKier
bd62698ea5
优化配置管理和数据处理逻辑 (#1949) 2025-07-11 10:10:33 +08:00
HibiKier
2921aed248
🐛 修复sqlite下的日统计查询和0权限功能调用 (#1943) 2025-07-11 10:07:23 +08:00
HibiKier
579558e59b
🐛 修复被动的默认开关指令 (#1948)
* 🐛 修复被动的默认开关指令

*  优化插件开关命令,增强用户体验

*  移除旧_task配置
2025-07-11 10:07:09 +08:00
Rumio
fcb385cf01
♻️ refactor(scheduler): 重构定时任务服务架构并增强用户体验 (#1967)
**架构重构**
- 拆分为 Service、Repository、Adapter 三层架构,提升模块化
- 统一 APScheduler Job ID 生成方式,优化 ScheduleTargeter 逻辑

**新增功能**
- 支持定时任务时区配置
- 新增"运行中"任务状态显示
- 为"所有群组"任务增加随机延迟,分散并发压力

**用户体验优化**
- 重构操作反馈消息,提供详细的成功提示卡片
- 优化任务查看命令的筛选逻辑
- 统一删除、暂停、恢复、执行、更新操作的响应格式

Co-authored-by: webjoin111 <455457521@qq.com>
2025-07-10 22:20:08 +08:00
Rumio
c3193dd784
🎨 (config): 优化配置值解析与错误处理 (#1962)
Co-authored-by: webjoin111 <455457521@qq.com>
2025-07-08 23:20:13 +08:00
Rumio
48cbb2bf1d
feat(llm): 全面重构LLM服务模块,增强多模态与工具支持 (#1953)
*  feat(llm): 全面重构LLM服务模块,增强多模态与工具支持

🚀 核心功能增强
- 多模型链式调用:新增 `pipeline_chat` 支持复杂任务流处理
- 扩展提供商支持:新增 ARK(火山方舟)、SiliconFlow(硅基流动) 适配器
- 多模态处理增强:支持URL媒体文件下载转换,提升输入灵活性
- 历史对话支持:AI.analyze 方法支持历史消息上下文和可选 UniMessage 参数
- 文本嵌入功能:新增 `embed`、`analyze_multimodal`、`search_multimodal` 等API
- 模型能力系统:新增 `ModelCapabilities` 统一管理模型特性(多模态、工具调用等)

🔧 架构重构与优化
- MCP工具系统重构:配置独立化至 `data/llm/mcp_tools.json`,预置常用工具
- API调用逻辑统一:提取通用 `_perform_api_call` 方法,消除代码重复
- 跨平台兼容:Windows平台MCP工具npx命令自动包装处理
- HTTP客户端增强:兼容不同版本httpx代理配置(0.28+版本适配)

🛠️ API与配置完善
- 统一返回类型:`AI.analyze` 统一返回 `LLMResponse` 类型
- 消息转换工具:新增 `message_to_unimessage` 转换函数
- Gemini适配器增强:URL图片下载编码、动态安全阈值配置
- 缓存管理:新增模型实例缓存和管理功能
- 配置预设:扩展 CommonOverrides 预设配置选项
- 历史管理优化:支持多模态内容占位符替换,提升效率

📚 文档与开发体验
- README全面重写:新增完整使用指南、API参考和架构概览
- 文档内容扩充:补充嵌入模型、缓存管理、工具注册等功能说明
- 日志记录增强:支持详细调试信息输出
- API简化:移除冗余函数,优化接口设计

* 🎨  feat(llm): 统一LLM服务函数文档格式

*  feat(llm): 添加新模型并简化提供者配置加载

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-08 11:15:15 +08:00
molanp
1e7ae38684
fix(zhenxun): 修复广播插件未传入 Bot 对象时的处理逻辑 (#1960)
- 增加了当未传入 Bot 对象时,尝试使用默认 Bot 的逻辑
- 优化了错误日志和异常处理,提高了代码的健壮性
2025-07-07 09:12:30 +08:00
Rumio
1c5f66beee
feat(http_utils): 重构网络请求工具链,增强稳定性与易用性 (#1951)
*  feat(http_utils): 重构网络请求工具链,增强稳定性与易用性

🔧 HTTP工具优化:
  • 全局httpx.AsyncClient管理,提升连接复用效率
  • AsyncHttpx类重构,支持临时客户端和配置覆盖
  • 新增JSON请求方法(get_json/post_json),内置重试机制
  • 兼容httpx>=0.28.0版本

🔄 重试机制升级:
  • Retry装饰器重构,提供simple/api/download预设
  • 支持指数退避、条件重试和自定义失败处理
  • 扩展异常覆盖范围,提升网络容错能力

🏗️ 架构改进:
  • 新增AllURIsFailedError统一异常处理
  • 浏览器工具模块化,提升代码组织性

* 🚨 auto fix by pre-commit hooks

* 🎨 代码格式化

* 🐛 测试修复

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
Co-authored-by: HibiKier <775757368@qq.com>
2025-07-03 17:39:13 +08:00
molanp
e0773174d0
chore: 清理仓库索引 (#1947)
- 移除了多个无需跟踪的文件和文件夹
- 删除了冗余的配置文件引用
- 清理了测试相关的代码文件

Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2025-07-02 19:53:05 +08:00
Rumio
8996cdf8f1
feat(scheduler): 增强定时任务管理系统 (#1940)
*  feat(scheduler): 增强定时任务管理系统

- 新增状态查看、每日定时、私聊操作等功能
- 引入 Pydantic 参数验证,重构目标解析逻辑
- 添加并发控制,优化触发器显示格式
- 修复 ORM KeyError 问题,确保数据一致性
- 支持私聊通过 -g/-all 参数操作群组任务

* 🎨 修复pyright报错

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-01 10:31:38 +08:00
molanp
87f02fd0ef
使用更大更清晰的用户头像 (#1939) 2025-07-01 10:30:22 +08:00
molanp
9625bdcd26
refactor(nickname): 使用 nonebot_plugin_alconna 重构昵称设置功能 (#1946)
* refactor(nickname): 使用 nonebot_plugin_alconna 重构昵称设置功能

- 替换 on_regex 为 on_alconna,实现更灵活的命令解析
- 重构 CheckNickname 函数,改为异步函数并直接处理逻辑
- 更新昵称设置流程,提高代码可读性和维护性
- 优化消息回复逻辑,提升用户体验
- 优化昵称设置命令,防止误触发

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-01 10:29:27 +08:00
Rumio
8b9ae7255b
feat!(scheduler): 引入通用持久化定时任务系统 (#1933)
*  feat!(scheduler): 引入通用持久化定时任务系统

*  feat(scheduler): 支持全局定时任务(__ALL_GROUPS__)和多Bot管理

---------

Co-authored-by: webjoin111 <455457521@qq.com>
2025-06-26 11:13:36 +08:00
HibiKier
b537ec15b7
优化虚拟环境管理,插件管理支持名称添加 (#1932) 2025-06-23 19:29:03 +08:00
HibiKier
d0f296bc9c
新增html详细帮助模板以及md模板和文本模板 (#1919)
*  添加markdown构建类

*  添加html帮助样式和文本模板
2025-06-23 15:33:46 +08:00
Rumio
a020ea5c87
feat(llm): 实现LLM服务模块,支持多提供商统一接口和高级功能 (#1923)
*  feat(llm): 实现LLM服务模块,支持多提供商统一接口和高级功能

* 🎨 Ruff

*  Config配置类支持BaseModel存储

* 🎨 代码格式化

* 🎨 代码格式化

* 🎨 格式化代码

*  feat(llm): 添加 AI 对话历史管理

*  feat(llmConfig): 引入 LLM 配置模型及管理功能

* 🎨 Ruff

---------

Co-authored-by: fccckaug <xxxmio123123@gmail.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
Co-authored-by: HibiKier <775757368@qq.com>
Co-authored-by: fccckaug <xxxmcsmiomio3@gmail.com>
Co-authored-by: webjoin111 <455457521@qq.com>
2025-06-21 16:33:21 +08:00
xuanerwa
14f5842f10
重构插件商店,支持Gitee插件管理,更新相关逻辑和配置 (#1931) 2025-06-20 19:08:06 +08:00
zclkkk
6298685e09
chore: Publish Docker images with github action (#1863) 2025-06-20 18:51:56 +08:00
molanp
96db5bf2a5
向后兼容httpx传参方式 (#1930) 2025-06-20 16:53:05 +08:00
molanp
d6d54175f6
🚑 修复代理设置问题 (#1928) 2025-06-17 19:51:24 +08:00
molanp
10e883f0ca
🚑 修复代理问题 (#1927) 2025-06-17 18:27:46 +08:00
HibiKier
a4ddfcd8ac 优化日志记录器,简化日志文件命名和模板解析逻辑 2025-06-17 09:16:22 +08:00
molanp
ee9a2a6cb0
🚑 修复 httpx 初始化传参错误 (#1926) 2025-06-17 03:58:10 +08:00
molanp
62b0b02466
增强 httpx 兼容性 (#1915)
* 增强 httpx 兼容性

* 顺便修了对tx图片服务器的ssl错误

* 🚨 auto fix by pre-commit hooks

* 修复通不过检查的问题

* 🚨 auto fix by pre-commit hooks

* 适配 httpx 0.28.0+版本

* 🚨 auto fix by pre-commit hooks

* 🎨 代码格式化

*  代码优化

* 🎨 代码格式化

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2025-06-16 11:14:19 +08:00
HibiKier
4cc800c832
添加bot消息发送记录 (#1893)
*  添加bot消息发送记录

* 💬 文本内容修正

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-06-16 09:21:41 +08:00
HibiKier
13579f5842
使用道具允许at目标用户 (#1877)
*  使用道具允许at目标用户

*  修改帮助配置项默认值

*  修改帮助配置项默认值

* 🎨 优化广播方法

* 💡 添加广播方法注释
2025-06-16 09:18:58 +08:00
HibiKier
99f1388e23
首次启动时提供使用web ui方式完全配置 (#1870)
*  添加全局优先级hook

*  添加基础配置api

*  添加数据库连接测试

* 💬 提示重启

* 🩹 填充过配置时友好提示

* 🐛 首次生成简易配置后自动加载

*  添加配置后重启接口

*  添加重启标志文件

*  添加重启脚本命令

*  添加重启系统限制

*  首次配置判断是否为win系统

* 🔥 移除bat

*  添加关于菜单

*  支持整合包插件安装和添加整合包文档

* 🩹 检测数据库路径

* 🩹 修改数据库路径检测

* 🩹 修改数据库路径检测

* 🩹 修复路径注入

* 🎨 显示添加优先级

* 🐛 修改PriorityLifecycle字典类名称

*  修复路径问题

*  修复路径检测

*  新增路径验证功能,确保用户输入的路径安全并在项目根目录内

*  优化路径验证功能,增加对非法字符和路径长度的检查,确保用户输入的路径更加安全

* 🚨 auto fix by pre-commit hooks

*  优化获取文件列表的代码格式

* 📝 修改README中webui示例图

*  更新PriorityLifecycle.on_startup装饰器

*  简化安装依赖的命令构建逻辑

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-06-16 09:11:41 +08:00
ATTomatoo
bcfb47d9fd resolve#1921 2025-06-12 17:26:36 +08:00
molanp
e1bf1ba87f
修复调用统计性能问题 (#1916)
* 修复调用统计性能问题

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-06-10 15:55:47 +08:00
尝生
46a652bb27
修复插件商店获取插件信息提示302异常 (#1904)
* 由于调用加速地址的时候状态码为302会被认为正常返回,但是所有的加速地址又没有调用完毕导致的插件商店经常报错302异常

* 优化异常代码行

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-06-09 14:41:19 +08:00
HibiKier
e7bae73c8f
ban支持ai调用 (#1880) 2025-06-09 14:40:19 +08:00
HibiKier
611f0b62ba
引用消息同意好友/群组请求 (#1902)
*  提供event日志表, 新增引用消息同意好友/群组请求

*  移除城市列表更新

*  新增申请入群功能

* 💬 文本修改
2025-06-09 14:39:28 +08:00
codeofrina
a8447b7074
📝 修改md错字(#1918) 2025-06-08 23:26:42 +08:00
HibiKier
7baf9f296c
🚑 修复道具使用问题 (#1917) 2025-06-04 14:58:17 +08:00
Hanako Uesugi
53eb8c8484
🐛 取消mirror.ghproxy.com, 当前已不可用 (#1913) 2025-05-30 08:16:23 +08:00
HibiKier
b0461865a5
添加真寻银行 2025-05-26 10:55:30 +08:00
HibiKier
b5c2850e28
🐛 修复踢出群组回复内容错误 (#1911)
* 🐛 修复文本显示错误

* 💬 文本修容修正
2025-05-25 11:47:38 +08:00
mio
8c0a600525 增强消息统计功能
- 新增用户头像显示
- 添加是否显示已退群用户的配置选项
- 优化移除退群用户后的排行数量显示
- 新增季消息排行选项
- 更新插件版本至0.2
2025-05-16 14:30:48 +08:00
HibiKier
9cda0e5d8f
适配新版本webui (#1905)
Co-authored-by: molanp <104612722+molanp@users.noreply.github.com>
Co-authored-by: BalconyJH <73932916+BalconyJH@users.noreply.github.com>
2025-05-15 23:52:20 +08:00
Rumio
6546eb990b
增强广播插件功能 2025-05-12 16:15:25 +08:00
Rumio
ff75e2ee92
增加webui批量接口 2025-04-26 20:15:44 +08:00
HibiKier
6769c724cb 🐛 修复群被动开关 2025-04-17 16:58:45 +08:00
HibiKier
b38509b2f5
🐛 插件获取默认过滤父插件 (#1894)
* 🐛 插件获取默认过滤父插件

* 🐛 修复插件获取
2025-04-17 16:58:06 +08:00
BalconyJH
5a0af6a64b 🔧 Add Docker Compose configuration for PostgreSQL, Redis, and monitoring stack 2025-04-09 16:03:05 +08:00
BalconyJH
bc2e06a9ec 🔧 Add Prometheus configuration for PostgreSQL and Redis exporters 2025-04-09 16:03:05 +08:00
BalconyJH
b5f101546a ⬆️ lock multidict != 6.3.2 duo to Memory leak 2025-04-09 16:03:05 +08:00
HibiKier
ccc4f27e3d 💬 修改README中文档地址 2025-04-07 17:33:48 +08:00
HibiKier
2d8320b5a0
🚑 修复pydantic2情况下的商店模型构造 (#1883) 2025-04-05 23:19:24 +08:00
BalconyJH
b548ea522b 🐛 Refactor chat message handling to improve message storage and error logging 2025-04-04 20:41:17 +08:00
BalconyJH
057975a3b9 ⬆️ Update poetry.lock 2025-04-04 20:41:17 +08:00
HibiKier
36bbaa3ae1
🐛 修复获取群组时会修改群组插件关闭状态 (#1869)
* 🐛 修复获取群组时会修改群组插件关闭状态

*  支持https图片地址转换

*  支持https图片地址转换

* 🎨 移除多余导入

* 🎨  优化GroupConsole设置插件默认状态代码结构

* 🎨 优化群组表代码结构

*  移除build_message的https默认转图片
2025-04-02 17:25:38 +08:00
HibiKier
737a740968
Feature/pyright check (#1845)
*  新增Pyright Lint工作流

*  新增Ruff Lint工作流

* 👷 添加pydanitc矩阵

* 👷 添加手动触发支持

---------

Co-authored-by: BalconyJH <balconyjh@gmail.com>
2025-03-25 00:23:34 +08:00
HibiKier
629b4256af
🐛 修复群欢迎消息删除问题 (#1864)
* 🐛 修复群欢迎消息删除问题

* 🩹 优化笨蛋检测和修复商店图标问题

* 🎨 笨蛋检测更多规则移入rule

* 🎨 优化我的道具方法
2025-03-03 22:19:34 +08:00
HibiKier
f1d32bff89
提供qq协议端判断方法,广播添加to_me规则以及延迟 (#1858)
*  提供qq协议端判断方法

* 🩹 API重试添加额外错误捕获

* 🩹 广播添加延迟,添加to_me规则
2025-02-24 09:33:06 +08:00
ChthollyWn
a6ddb726d3
新增插件智能模式适配 (#1850)
* 新增插件智能模式适配

* 🚨 auto fix by pre-commit hooks

* 更改类名,命名更清晰

* 🎨 添加模块化参数

* 🎨  AI模块化修改

* 🩹  道具调用修复

* 🩹 修复商品使用前检测

*  retry增加参数适配

*   修改道具使用函数参数传递

*  捕获道具无法使用异常

* 🐛 添加依赖require

* 🐛  修复插件使用问题

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2025-02-24 09:28:53 +08:00
Komorebi
78df9ed086
📝 添加 Badge (#1859) 2025-02-23 15:13:16 +08:00
BalconyJH
39b39e3fdb
📝 Update bug report and feature request templates (#1857) 2025-02-22 22:25:51 +08:00
BalconyJH
2323ec1bf6 👷 Add CodeQL workflow for code security analysis 2025-02-19 09:08:12 +08:00
AkashiCoin
0e5a79ce2c
🐛 fix(plugin-store): 优先获取commit号在进行插件下载 (#1853)
* 🐛  fix(plugin-store): 优先获取commit号在进行插件下载

*   perf(github-utils): 使用sourcery建议,封装更新commit方法
2025-02-18 15:32:26 +08:00
HibiKier
aef2597b46
添加自动同意群组请求 (#1848)
*  添加自动同意群组请求

*  Add nonebot-plugin-waiter

---------

Co-authored-by: BalconyJH <balconyjh@gmail.com>
2025-02-12 23:32:46 +08:00
HibiKier
41613c09a9
提供一个插件好感度限制 (#1846)
*  提供一个插件好感度限制

* 💬 在提示中显示需要的好感度
2025-02-10 15:39:18 +08:00
BalconyJH
ee55078b56
⬆️ Upgrade nonebot-plugin-htmlrender to version 0.6.0 (#1844) 2025-02-07 13:16:24 +08:00
HibiKier
5fd746a52a
🚑 修复field在pyd1下报错 (#1842)
* 🚑 修复field在pyd1下报错

* 🐛 修正字段
2025-02-04 02:15:21 +08:00
HibiKier
4ed1791b30
🐛 修复添加插件依赖更新 (#1837)
* 🐛 修复添加插件依赖更新

* 🔧 修改插件依赖安装命令为使用poetry运行pip

* 🐛 修复群组入群与退群提示

* 🐛 修复群组踢出用户提醒

* 🎨 代码优化

* 🎨 群欢迎迁移优化

* 🩹 精确webui调用统计

* 🚨 auto fix by pre-commit hooks

* 🐛 修复测试

* 🎨 fix pre-commit.ci

* 🎨  fix pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-02-03 21:23:14 +08:00
BalconyJH
d6fd5f170a
🚨 Make pyright happy (#1840) 2025-01-27 03:40:50 +08:00
molanp
40779e05e8
修复文本错误 (#1839)
Co-authored-by: molanp <molanp>
2025-01-25 18:29:14 +08:00
HibiKier
d0b1024566
🐛 修复Config add配置时显示问题 (#1835) 2025-01-16 09:13:28 +08:00
HibiKier
63145ffee0
🐛 修复商店购买 (#1834)
*  优化商店模块查询与修复购买逻辑

*  修复商店购买逻辑及优化商品展示
2025-01-13 14:33:38 +08:00
HibiKier
264929e5cb
新增好感度/金币设置和详细帮助 (#1831)
*  新增好感度/金币设置和详细帮助

* 🔧 修复html帮助
2025-01-10 18:39:23 +08:00
HibiKier
dc143c0682 🔧 Update SESSION_EXPIRE_TIMEOUT configuration 2025-01-10 12:19:11 +08:00
HibiKier
0462703b13 Repair self-test 2025-01-10 12:19:11 +08:00
HibiKier
73d2ed444e Add fastapi dependency and remove nonebot-plugin-userinfo 2025-01-10 12:19:11 +08:00
BalconyJH
e2111278d2 ⬆️ Upgrade nonebot-plugin-apscheduler to version 0.5.0, pytest-asyncio to version 0.25.1 and adjust dependencies 2025-01-10 12:19:11 +08:00
BalconyJH
73c4b327df 🔧 Refactor dev dependencies section in pyproject.toml 2025-01-10 12:19:11 +08:00
BalconyJH
2afda7b284 Unlock pydantic version 2025-01-10 12:19:11 +08:00
HibiKier
ccee16bed2 🚨 Add specific ignore items in pyright ignore
🚨 Make pyright happy
♻️ Remove unused adapter
2025-01-10 12:19:11 +08:00
HibiKier
e814469b75 Compatible with pydantic 2.0 using the pydantic compatibility layer provided by nonebot 2025-01-10 12:19:11 +08:00
HibiKier
23ef00d01f
🐛 移除神秘药水2道具 (#1828) 2025-01-09 00:11:38 +08:00
HibiKier
893611def0
🚑 修复插件配置项显示 (#1824) 2025-01-07 16:41:42 +08:00
HibiKier
e124c1dbdb
🚑 修复商品图标显示 (#1823) 2025-01-07 14:50:47 +08:00
HibiKier
2c798a6cd8
使用env中的日志等级记录日志 (#1821) 2025-01-07 10:11:57 +08:00
AkashiCoin
d274b18adb
🎉 chore(version): Update version to v0.2.4-2c97eea (#1797) 2025-01-07 09:28:23 +08:00
HibiKier
2c97eeac79
🐛 移除resources,图标不存在时不会显示图片 (#1820)
Co-authored-by: Flern <cb56ec362bbbfb5272eb941281299d8d-qq_connect@git.osc>
2025-01-07 09:26:05 +08:00
HibiKier
2f939ff52b
🐛 修复商品图标显示问题,移除测试道具 (#1817)
Co-authored-by: Flern <cb56ec362bbbfb5272eb941281299d8d-qq_connect@git.osc>
2025-01-06 21:23:15 +08:00
HibiKier
2a5c06702a
新增全新商店界面 (#1816)
* 🎉 新增商店模板及样式配置

* 🎨 移除webui注释

* 🎨 新增神秘药水道具及商店样式调整

* 🎨 添加商店样式底部边距调整

---------

Co-authored-by: Flern <cb56ec362bbbfb5272eb941281299d8d-qq_connect@git.osc>
2025-01-06 19:21:35 +08:00
HibiKier
ec70144d7e
资源下载分离 (#1814)
* 🚀 资源文件单独下载,分离被动任务初始化

* 🔥 移除resources文件夹

* 🚀 优化版本更新逻辑,增加资源下载异常处理

* 🚀 增加资源下载失败异常处理及提示信息

* 🚀 增加资源下载选项及异常处理优化

* 🚀 移除空ID检查及资源更新条件处理

*  简易配置中未加载的配置将被移除

* 🐛 测试更新

*  修复更新完成消息格式

---------

Co-authored-by: Flern <cb56ec362bbbfb5272eb941281299d8d-qq_connect@git.osc>
2025-01-06 11:32:56 +08:00
HibiKier
91dce56bf8
🐛 修复群组中插件默认状态 (#1810) 2024-12-30 16:44:13 +08:00
HibiKier
35014e4048
重构webui适配 (#1801)
* ♻️ 使用Uninfo重构PlatformUtils基础方法

* 🩹 优化插件加载与模块格式转换逻辑

* 🚑 修复商店道具无法使用

* 🚑 修复道具无法正常使用

* 🔧 增加Bot状态管理及模块禁用功能

* 🎨  优化Web UI代码结构,修改target方法

* 🚨 auto fix by pre-commit hooks

* 🎨 添加菜单API及优化异常处理

* 🐛 优化菜单API及模型结构,修复WebUi插件列表Api

* 📝 更新仓库readme

* 🚨 add mdlint file

* 📝 Add help chapter.

* 🐛 修复优化AuthChecker逻辑

* 🐛 优化数据库API,移除冗余导入及修正SQL_DICT引用

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: BalconyJH <balconyjh@gmail.com>
2024-12-25 12:03:49 +08:00
HibiKier
ebf05fd884
🚑 修复道具购买限制检查 (#1796) 2024-12-24 11:26:52 +08:00
HibiKier
108cdd45b1
🐛 修复自检测试 (#1795) 2024-12-24 11:15:42 +08:00
AkashiCoin
012a23008b
🎉 chore(version): Update version to v0.2.4-4291cda (#1776) 2024-12-23 10:09:52 +08:00
AkashiCoin
c84e99d084
🐛 fix(github_utils): 适配插件仓库根目录语法 (#1784) 2024-12-23 10:09:38 +08:00
HibiKier
4291cda244
️ 优化自检插件逻辑,增加规则判断,添加nonebug配置 (#1792)
* ⬆️ Expand the range of nonebug version restrictions and update nonebot-plugin-alconna.

*  Update pytest configuration.

*  Add pytest hook to tag async tests with session-scoped event loop.

* ️ 优化自检插件逻辑,增加规则判断

---------

Co-authored-by: BalconyJH <balconyjh@gmail.com>
2024-12-23 10:09:06 +08:00
HibiKier
3a197c0c1d
🐛 修复使用道具错误 (#1790) 2024-12-21 23:52:17 +08:00
BalconyJH
a34e433ebf
🐛 Fix help_type in create_help_img may be none and cause AttributeError. (#1791) 2024-12-21 20:46:00 +08:00
梦璃雨落
176b5c9afd
🐞 fix(web_ui): 修复webui导入路径错误 (#1785) 2024-12-20 10:28:36 +08:00
HibiKier
a8e4d29031
🐛 修改webui导入路径 (#1783)
* 🐛 修改webui导入路径

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-12-19 09:51:31 +08:00
molanp
a15303a891
重构插件商店更新逻辑&彻底修复工作流 (#1782)
* 修复bot-check工作流

* Update bot_check.yml

* 修复依赖问题

* 修复戳一戳自检鉴权

* 🚨 auto fix by pre-commit hooks

* 优化工作流执行顺序

* 更新插件测试

* 更新插件商店

* 🚨 auto fix by pre-commit hooks

* Update bot_check.yml

* Update bot_check.yml

* Update bot_check.yml

* 请求 @ThelevenFD 修复测试

* 🚨 auto fix by pre-commit hooks

* Update zhenxun/builtin_plugins/plugin_store/data_source.py

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>

* 修复代码过长的问题

* 🚨 auto fix by pre-commit hooks

* 同步check.py

* Update test_check.py

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: ThelevenFD <104363913+ThelevenFD@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2024-12-19 09:15:39 +08:00
ThelevenFD
ccf043d670
修复戳一戳自检鉴权 (#1780)
* 修复戳一戳自检鉴权

* 🚨 auto fix by pre-commit hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-12-18 08:49:16 +08:00
molanp
91352e4f3a
修复bot-check工作流 (#1777) 2024-12-17 01:29:11 +08:00
HibiKier
5956ec1148
♻️ 重构群欢迎消息插件,支持多条消息随机发送 (#1768) (#1774) 2024-12-16 22:56:17 +08:00
ThelevenFD
cf29fbcf74
新增戳一戳自检 (#1773)
* Update Check

增加戳一戳获取自检

* 新增获取自检状态方法

* 可和戳一戳同时触发

* 增加配置项
2024-12-16 22:55:12 +08:00
AkashiCoin
b47c4be25d
🎉 chore(version): Update version to v0.2.4-e363d29 (#1759) 2024-12-15 16:18:11 +08:00
HibiKier
e363d29b3b
🐛 优化Bot管理插件,更新使用说明及代码结构 (#1767) 2024-12-13 15:31:18 +08:00
BalconyJH
b010eac041
chore/cleanup-dependencies (#1763)
*  移除opencv-python, aiohttp依赖,更新poetry.source配置格式

* 💚 更新pre-commit配置文件

* 🚨 移除无用导入
2024-12-13 15:00:56 +08:00
BalconyJH
b6964a92fa
分阶段构建Docker镜像,精简生成镜像体积 (#1752) (#1764)
* 🚀 更新Dockerfile (#1752)

* 🙈 忽略文件夹

* 👷 更新 Dockerfile

---------

Co-authored-by: fanyinrumeng <42991257+fanyinrumeng@users.noreply.github.com>
2024-12-13 02:07:29 +08:00
HibiKier
9afb9d343b
Bugfix/fix create user a (#1766)
* 🐛 群组用户信息批量报错时使用逐个创建

* 💬 添加报错用户信息
2024-12-12 16:42:10 +08:00
HibiKier
a421902bc7
🐛 BotConsole添加迁移sql (#1765) 2024-12-12 16:25:32 +08:00
HibiKier
bd363a576b 🐛 修复webui-api路径导入 2024-12-11 17:20:25 +08:00
HibiKier
cdcca6e761
Feature/buildimage.pic2bytes gif support (#1761)
Co-authored-by: unknownsno <110149501+unknownsno@users.noreply.github.com>
Co-authored-by: BalconyJH <73932916+BalconyJH@users.noreply.github.com>
2024-12-11 10:40:05 +08:00
BalconyJH
64b5316570
🐛 fix bot console init (#1760) 2024-12-11 09:31:51 +08:00
HibiKier
5590445679
添加Bot管理插件 (#1758)
Co-authored-by: BalconyJH <73932916+BalconyJH@users.noreply.github.com>
2024-12-10 20:16:14 +08:00
BalconyJH
bc5a9c4fcc
Develop: 完全使用 ruff 替代 isort 与 black (#1757)
* 🚨 完全使用 ruff 替代 isort 与 black

* 🚨 ruff lint&format
2024-12-10 19:49:11 +08:00
HibiKier
28dd15a950
🎨 添加首席设计师 (#1756) 2024-12-09 21:27:41 +08:00
AkashiCoin
92d3a4fa86
🎉 chore(version): Update version to v0.2.4-c7c759f (#1750) 2024-11-29 10:02:52 +08:00
HibiKier
c7c759f2b1
插件配置新增is_show控制是否显示在菜单中 (#1749) 2024-11-29 10:01:50 +08:00
AkashiCoin
d00412e7fb
🎉 chore(version): Update version to v0.2.4-900cf6f (#1747) 2024-11-29 09:54:31 +08:00
HibiKier
900cf6fa53
🎨 对zhenxun版本帮助进行排序优化页面效果 (#1748) 2024-11-28 23:02:12 +08:00
HibiKier
584026c23c
⬆️ 提高pil依赖版本 (#1746) 2024-11-28 20:20:23 +08:00
AkashiCoin
c51fdc5c67
🎉 chore(version): Update version to v0.2.4-6e74065 (#1745) 2024-11-27 10:39:05 +08:00
HibiKier
6e740657b6
️ 减少插件限制查询次数 (#1743) 2024-11-26 19:29:32 +08:00
AkashiCoin
9449316a14
🎉 chore(version): Update version to v0.2.4-dd39a2a (#1742) 2024-11-25 03:12:41 +08:00
HibiKier
dd39a2ac2e 🔊 添加更多debug日志 2024-11-24 18:00:51 +08:00
HibiKier
3b1a399d5f
添加小真寻的口癖配置 (#1738) 2024-11-23 21:37:00 +08:00
HibiKier
5c0171767c 🐛 修复插件限制加载显示 2024-11-23 14:49:53 +08:00
HibiKier
dd58a4eb3a 🔥 移除过期原神日历文件 2024-11-22 17:02:14 +08:00
HibiKier
a767ad6a51 🎨 message-build判断优化 2024-11-22 16:58:14 +08:00
HibiKier
f1b2ed6350 🧑‍💻 message-build支持图片base64以及url 2024-11-22 16:56:54 +08:00
HibiKier
857999db07
🎨 重启代码结构优化 (#1737) 2024-11-22 10:27:10 +08:00
HibiKier
4e4b4590c4 🎨 排行榜代码优化与修改版本 2024-11-22 10:05:54 +08:00
BalconyJH
ee6170cd1b
Document/add conduct and contributing (#1736)
* 📝 添加贡献者指南

* 📝 添加贡献者公约
2024-11-22 08:33:46 +08:00
HibiKier
af8f58b61e 🎨 优化工具类代码 2024-11-21 15:10:07 +08:00
HibiKier
03d8b3aafd 🐛 允许超级用户撤回任意消息 2024-11-20 09:17:57 +08:00
HibiKier
d23602ac56
webui和数据库页面和查询所有表支持mysql和sqlite (#1732) 2024-11-18 11:06:13 +08:00
HibiKier
ee01e1095d
进群欢迎/退群提醒被动默认关闭 (#1731) 2024-11-17 14:33:24 +08:00
HibiKier
5e4a414861
早晚安被动默认关闭 (#1730) 2024-11-17 14:22:16 +08:00
BalconyJH
5899b8cfdb
📝 使用 issue 表单替换 issue 模板 (#1727) 2024-11-17 06:49:23 +08:00
HibiKier
ae5df38c21 🐛 修复图片模板方法 2024-11-16 17:59:15 +08:00
HibiKier
545f6fd7f9 🎨 入群检测代码优化 2024-11-14 18:56:53 +08:00
HibiKier
4c7c223b2c 🐛 修复我的信息at用户时头像不正确 2024-11-14 15:27:17 +08:00
HibiKier
14b983cfa0 💬 修改md 2024-11-09 13:53:38 +08:00
HibiKier
229908207b 💬 更新md 2024-11-09 13:53:16 +08:00
HibiKier
cfe7dfd6b5 💬 修改md 2024-11-08 21:00:48 +08:00
HibiKier
b2da0a902d 🎨 playwright添加cookie参数 2024-11-07 13:38:20 +08:00
HibiKier
3f06131c34 💬 修改md 2024-11-07 00:29:31 +08:00
HibiKier
24f1a1ca9a 💬 修改测试url 2024-11-07 00:28:41 +08:00
HibiKier
54a74cdd91 🎨 更新md 2024-11-05 20:45:11 +08:00
HibiKier
7ca4c18e1c 🎨 修改md 2024-11-05 15:54:53 +08:00
HibiKier
a2b7980ae2 💬 修改版本号 2024-11-05 15:51:19 +08:00
HibiKier
e75a56fe08 🐛 修复自定义pixiv反向代理无法对涩图生效 2024-11-05 15:47:59 +08:00
HibiKier
abd8b9b705
添加用户消息撤回命令 (#1719) 2024-11-05 15:34:45 +08:00
HibiKier
54d2ba1df4 🐛 修复邀请群组强制退出 2024-11-05 14:47:07 +08:00
HibiKier
dbfeeac313 Merge branch 'dev' of https://github.com/HibiKier/zhenxun_bot into dev 2024-10-29 08:27:02 +08:00
HibiKier
93316be5fe 🎨 工具代码优化 2024-10-29 08:26:41 +08:00
AkashiCoin
60b78a9f1c
🎉 chore(version): Update version to v0.2.4-6359ba6 (#1692) 2024-10-28 09:41:35 +08:00
HibiKier
6359ba63f9 💬 更新权限检查日志提示 2024-10-24 16:27:37 +08:00
HibiKier
2853a2feaa ban限制依赖类型插件 2024-10-24 11:09:01 +08:00
HibiKier
c9b864ca54 🐛 修复合并转发在bytes传输下图片丢失 2024-10-23 15:21:53 +08:00
梦璃雨落
6519b1cad4
🐞 fix: 更新货物未找到异常的信息处理方式 (#1713) 2024-10-23 13:19:47 +08:00
HibiKier
ebf3df046a 🎨 修改版本号 2024-10-22 10:40:00 +08:00
HibiKier
b6611d6d0e 🐛 修复admin_check 2024-10-22 10:38:40 +08:00
HibiKier
23ea21380a 🐛 导入修复 2024-10-22 09:29:11 +08:00
梦璃雨落
54a93a2f54
🎈 perf(image_utils): 在image_utils中禁用代理下载 (#1710)
* 🎈 perf(image_utils): 在image_utils中禁用代理下载

get_download_image_hash使用场景是访问腾讯服务器获取图片,无需走代理

*  Add optional proxy support to image hash download function
2024-10-21 23:49:32 +08:00
HibiKier
05f954eb8b
指定bot的功能管理 (#1706) 2024-10-21 19:07:35 +08:00
HibiKier
27d4630874 修改版本 2024-10-20 19:24:47 +08:00
HibiKier
7ac2ff92c4 本地引入echart.js 2024-10-20 13:34:47 +08:00
HibiKier
92b0c6b4bf 🎨 http_utils代码优化 2024-10-19 23:02:05 +08:00
HibiKier
75e10fe38a 🎨 修改早安时间 2024-10-19 18:12:35 +08:00
HibiKier
6dfebaae96 🎨 帮助界面优化 2024-10-19 01:26:30 +08:00
HibiKier
3ffe213652 🐛 修复签到金币排行bug以及添加官bot监控 2024-10-19 00:36:19 +08:00
HibiKier
c9aa568767 可以通过Bot判断是否为官bot 2024-10-18 23:13:16 +08:00
HibiKier
3d3a2a5f7f
部分功能适配QQ BOT (#1701) 2024-10-18 18:57:55 +08:00
HibiKier
7567bfb732 🐛 修复插件限制加载 2024-10-16 17:29:21 +08:00
HibiKier
f0f0e94a9c 🎨 引用uninfo 2024-10-16 17:18:30 +08:00
HibiKier
41b0dac223
🐛 修复群组权限刷新 (#1700) 2024-10-16 13:29:44 +08:00
HibiKier
792bcaa711 添加获取nb配置api 2024-10-16 12:58:01 +08:00
HibiKier
fe1634eb2d
🎨 代码优化 (#1698) 2024-10-15 03:44:30 +08:00
HibiKier
4a52c4825b 🐛 修复webui接口 2024-10-14 22:24:47 +08:00
HibiKier
6358ce5266 🐛 修复webui好友数量显示和登录次数 2024-10-14 22:17:05 +08:00
HibiKier
e98af0ac21 Merge branch 'dev' of https://github.com/HibiKier/zhenxun_bot into dev 2024-10-14 22:11:39 +08:00
HibiKier
48a48204f3 🐛 包优化 2024-10-14 11:00:39 +08:00
HibiKier
6f313986df 🎨 生成lock 2024-10-14 10:06:38 +08:00
HibiKier
3856ba09bb 🐛 功能调用统计只统计已加载的插件 2024-10-13 01:07:19 +08:00
HibiKier
f982d862ee 🎨 添加分支 2024-10-12 22:44:08 +08:00
HibiKier
c76566c2df 🔥 移除旧资源文件夹 2024-10-12 14:06:12 +08:00
HibiKier
e7fffa3ef4 🔥 移除dinggong语音文件夹 2024-10-12 14:02:45 +08:00
HibiKier
f7b28127e9
🐛 修复功能调用统计空白 (#1694) 2024-10-12 11:03:24 +08:00
AkashiCoin
7ea11a884b
🐳 chore: 补全release draft文件 (#1693) 2024-10-11 21:47:06 +08:00
AkashiCoin
faa0785fa1
🐳 chore(update_version): 支持选择性的更新版本 (#1691)
* 🐳 chore(update_version): 支持选择性的更新版本

* 🐳 chore: 替换邮箱格式
2024-10-11 16:18:42 +08:00
HibiKier
9e5266a491
使用uninfo进行群组成员更新 (#1690) 2024-10-10 23:25:46 +08:00
HibiKier
2f459719e8
🐛 修改禁用module (#1688)
* 🐛 修改禁用module

* chore(version): Update version to v0.2.3-4cde662

---------

Co-authored-by: HibiKier <HibiKier@users.noreply.github.com>
2024-10-09 17:45:53 +08:00
HibiKier
5f92efa658
🐛 webui 添加bot详情参数 (#1686)
* 🐛 webui 添加bot详情参数

* chore(version): Update version to v0.2.3-ba3a9f1

---------

Co-authored-by: HibiKier <HibiKier@users.noreply.github.com>
2024-10-07 15:37:55 +08:00
HibiKier
856976526f
🎨 修改限制配置文件key (#1685) 2024-10-06 18:16:35 +08:00
HibiKier
6852363a03
🐛 修复导入问题 (#1684) 2024-10-06 01:19:24 +08:00
HibiKier
862427a872
🎨 webui群组代码优化 (#1683) 2024-10-06 01:05:37 +08:00
HibiKier
fd90e1ab82
🎨 notice响应期添加rule (#1682)
* 🎨 notice响应期添加rule

* chore(version): Update version to v0.2.3-f3e5c9e

---------

Co-authored-by: HibiKier <HibiKier@users.noreply.github.com>
2024-10-05 22:37:30 +08:00
HibiKier
3117dc264f
unban支持使用id (#1681) 2024-10-05 19:07:18 +08:00
HibiKier
a28a60d9c8
🎨 功能开关代码优化 (#1680)
* 🎨 功能开关代码优化

* chore(version): Update version to v0.2.3-5f361ff

---------

Co-authored-by: HibiKier <HibiKier@users.noreply.github.com>
2024-10-05 18:02:53 +08:00
HibiKier
f0063283e7
🐛 优化功能开关管理 (#1679) 2024-10-05 16:45:02 +08:00
AkashiCoin
84680aa88d
🐳 chore(release_drafter): 支持release-drafter (#1672)
* 🐳 chore(release_drafter): 支持release-drafter

* 🐛 fix: 修复依赖字段
2024-10-05 16:37:29 +08:00
HibiKier
bd50e17c58
🐛 修复调用统计异常 (#1674) 2024-10-04 00:14:36 +08:00
HibiKier
f08114f6c5
提供新webui api (#1673) 2024-10-03 23:56:17 +08:00
moelanp
42b6e94564
更新插件商店功能,支持通过模块名操作插件(#1670)
* 更新插件商店功能,支持通过模块名操作插件

- 扩展插件添加、移除和更新功能,支持使用插件ID或模块名
- 增加更新全部插件的功能
- 优化插件商店的命令使用说明
- 修复了一些与插件模块名相关的逻辑问题

* 优化插件更新和加载机制,提供测试函数

- 修复了插件更新函数中的条件判断逻辑

* 优化插件更新通知的格式

调整了插件更新通知的文本格式,去掉了多余的换行符,使消息内容更加紧凑和清晰。

* 更新测试用例中的消息格式,将插件更新通知中的空格改为换行符

* 移除版本号更新

* 重构插件管理器的数据源解析逻辑

- 将插件ID和模块名的检查逻辑移至单独的私有方法 _resolve_plugin_key
- 简化了 get_info 和 update_plugin 方法中的逻辑
- 提高了代码的可读性和可维护性

* 优化插件商店数据源类的插件查询逻辑

简化了ShopManage类中查询插件信息的逻辑。通过新增的_resolve_plugin_key类方法来解析插件ID或模块名,如果解析失败则捕获ValueError异常并返回错误信息。这样可以更清晰地处理插件查询逻辑,并避免冗余代码。

* 移除更新全部插件日志中的f-string

更新全部插件功能中,移除了日志记录中的f-string,简化了日志消息的格式。这个更改可能是为了统一日志记录的风格或者减少不必要的字符串格式化操作。

* Revert "移除版本号更新"

This reverts commit 2bcaa6f12e.

---------

Co-authored-by: molanp <molanp@users.noreply.github.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
Co-authored-by: AkashiCoin <l1040186796@gmail.com>
2024-10-02 18:32:21 +08:00
AkashiCoin
d3a4a5bbf7
🐛 fix(github_utils): 修复路径解析问题 (#1668)
* 🐛 fix(github_utils): 修复路径解析问题

* chore(version): Update version to v0.2.3-a39d7a3

---------

Co-authored-by: AkashiCoin <AkashiCoin@users.noreply.github.com>
2024-10-02 12:54:12 +08:00
HibiKier
482eb1a214
🎨 修改requirements (#1665) 2024-10-01 00:29:29 +08:00
HibiKier
94e05944fd
🎨 修改版本号 (#1664) 2024-10-01 00:24:45 +08:00
HibiKier
2c8c46d6b1
🎨 修改README (#1663) 2024-10-01 00:17:14 +08:00
HibiKier
717a973807
将cd,block,count限制复原配置文件 (#1662) 2024-10-01 00:05:43 +08:00
HibiKier
d68a4099ba
新增插件商店api (#1659)
*  新增插件商店api

* chore(version): Update version to v0.2.2-7e15f20

---------

Co-authored-by: HibiKier <HibiKier@users.noreply.github.com>
2024-09-29 20:47:58 +08:00
HibiKier
e8425f371c
修改个人信息菜单名称 (#1658) 2024-09-29 17:06:17 +08:00
HibiKier
a3311adebb
新增个人信息命令 (#1657) 2024-09-29 17:00:31 +08:00
HibiKier
28b61e57cd
新增超级用户与管理员帮助模板 (#1655) 2024-09-27 16:59:41 +08:00
HibiKier
7890cc577f
安装/移除插件提供插件安装/卸载方法用于插件初始化 (#1654) 2024-09-27 10:29:59 +08:00
HibiKier
b14220e6e3
移除默认图片文件夹:爬 (#1653) 2024-09-27 10:27:01 +08:00
HibiKier
7ec1bc9fac
🐛 修复webui下载后首次启动错误 (#1652)
* 🐛 修复webui下载后首次启动错误

* chore(version): Update version to v0.2.2-4a8ef85

---------

Co-authored-by: HibiKier <HibiKier@users.noreply.github.com>
2024-09-25 19:41:45 +08:00
HibiKier
e89d1d4688
🐛 修复群欢迎消息设置 (#1651) 2024-09-25 19:04:36 +08:00
HibiKier
6be9e477b1
🐛 修复群组中帮助功能状态显示问题 (#1650) 2024-09-25 18:29:01 +08:00
AkashiCoin
207f947a1c
🐛 fix(http_utils): 流式下载Content-Length错误 (#1647) 2024-09-22 17:12:21 +08:00
HibiKier
32c11b9919
🎨 更新README (#1645) 2024-09-21 23:36:17 +08:00
HibiKier
3fc4eaa39a
🐛 签到名称自适应 (#1644) 2024-09-21 23:08:48 +08:00
HibiKier
a04475abc1
重构qq群事件处理 (#1643) 2024-09-21 23:07:00 +08:00
AkashiCoin
38976589ec
🐳 chore: 修改运行检查触发路径 (#1642)
* 🐳 chore: 修改运行检查触发路径

* 🐳 chore: 添加tests目录
2024-09-21 18:01:45 +08:00
AkashiCoin
f2c20b84bf
🎈 perf: 使用commit号下载插件 (#1641)
* 🎈 perf: 使用commit号下载插件

* chore(version): Update version to v0.2.2-f9c7360

---------

Co-authored-by: AkashiCoin <AkashiCoin@users.noreply.github.com>
2024-09-21 17:38:37 +08:00
HibiKier
983248374d
message_build支持AtAll (#1639) 2024-09-19 20:25:45 +08:00
HibiKier
6f635ed978
🐛 修复群权限与插件等级匹配 (#1635) 2024-09-16 21:18:42 +08:00
HibiKier
fcfaf56021
🐛 修复商店商品为空时报错 (#1634) 2024-09-16 21:17:09 +08:00
AkashiCoin
60f4406ec1
🧪 test(auto_update): 修复测试用例 (#1633) 2024-09-16 20:29:46 +08:00
AkashiCoin
51c010daa8
🎈 perf(github_utils): 支持github url下载遍历 (#1632)
* 🎈 perf(github_utils): 支持github url下载遍历

* 🐞 fix(http_utils): 修复一些下载问题

* 🦄 refactor(http_utils): 部分重构

* chore(version): Update version to v0.2.2-e6f17c4

---------

Co-authored-by: AkashiCoin <AkashiCoin@users.noreply.github.com>
2024-09-16 20:08:42 +08:00
AkashiCoin
cd88d805ce
🐳 chore: 支持自动修改版本号 (#1629) 2024-09-16 19:13:20 +08:00
HibiKier
e41e16370e
群组发言时间检测提供开关配置 (#1630) 2024-09-14 19:17:40 +08:00
HibiKier
f2e354edeb
当管理员尝试ban真寻时将被反杀 (#1628) 2024-09-14 16:29:27 +08:00
HibiKier
f1354c6264
🐛 修复群权限与插件等级匹配 (#1627) 2024-09-14 14:23:19 +08:00
HibiKier
029a731fb9
重构帮助,限制普通用户查询管理插件 (#1626) 2024-09-14 05:23:55 +08:00
AkashiCoin
d97e437e80
🎈 优先使用github api (#1625) 2024-09-13 20:41:33 +08:00
HibiKier
8a688eb4f0
🐛 好感度排行提供默认值 (#1624) 2024-09-12 22:15:04 +08:00
HibiKier
94ef33264b
🐛 签到文本适应 (#1622) 2024-09-11 12:53:12 +08:00
HibiKier
a8355fbab9
🐛 修复功能少时zhenxun帮助图片排序问题 (#1620) 2024-09-11 11:53:49 +08:00
HibiKier
95762bdddd
🐛 修复路径解压与挂载 (#1619) 2024-09-10 20:17:09 +08:00
HibiKier
4e42d1dda1 🐛 修复超级用户id获取问题 2024-09-09 23:01:15 +08:00
HibiKier
e4a92ea34b
签到/金币排行限制最大数量 (#1616)
*  签到/金币排行限制最大数量
2024-09-09 22:47:23 +08:00
AkashiCoin
f11e9c58e4 🔨 提取GitHub相关操作 (#1609)
* 🔨 提取GitHub相关操作

* 🔨 重构API策略
2024-09-08 12:38:30 +08:00
AkashiCoin
342e70cc38 📝 修改README
Co-Authored-By: HibiKier <45528451+HibiKier@users.noreply.github.com>
2024-09-08 11:34:26 +08:00
AkashiCoin
440e7b54a5 添加金币排行
Co-Authored-By: HibiKier <45528451+HibiKier@users.noreply.github.com>
2024-09-08 11:33:19 +08:00
AkashiCoin
fe11ff0772 🔧 VSCode配置修改 2024-09-07 17:51:03 +08:00
AkashiCoin
2b006b8f5e 🔧 VSCode配置修改 2024-09-07 17:11:01 +08:00
HibiKier
1790a0b09e 提供sqlite和mysql连接url示例 2024-09-07 17:10:08 +08:00
HibiKier
057001f0bd 支持mysql,psql,sqlite随机函数 2024-09-07 16:46:56 +08:00
AkashiCoin
e618b19283
🐛 修复自检在ARM上的问题 (#1607)
* 🐛 修复自检在ARM上的问题

*  优化测试
2024-09-07 16:17:29 +08:00
HibiKier
62fd93c1ff 🐛 过滤父插件 2024-09-07 13:54:25 +08:00
HibiKier
807b2f6504 🐛 私聊时修改插件时删除私聊帮助 2024-09-07 13:16:41 +08:00
HibiKier
0a5ab83ffe 🎨 代码结构优化 2024-09-07 12:46:25 +08:00
Elaga
3f4787d4c6
修复签到逻辑bug,并使代码更灵活以适应签到好感度等级配置 (#1606)
* 修复签到功能已知问题

* 修复签到功能已知问题

* 修改参数名称

* 修改uid判断

---------

Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
2024-09-07 12:35:39 +08:00
HibiKier
db9153f42c 🐛 自检html修正 2024-09-07 01:50:24 +08:00
HibiKier
3b4c206a24 重构自检ui 2024-09-07 01:25:42 +08:00
HibiKier
51371ba954 🐛 修复插件开关有时出现错误 2024-09-05 17:41:33 +08:00
HibiKier
c36bb9771c 🎨 优化代码 2024-09-04 21:10:54 +08:00
AkashiCoin
ce97dedc5f 🐛 文件下载逻辑修改 2024-09-03 17:13:31 +08:00
AkashiCoin
682d19aa2b 🎨 采取Sourcery建议 2024-09-03 16:52:11 +08:00
AkashiCoin
c3927c7f2e 添加API缓存 2024-09-03 16:52:11 +08:00
AkashiCoin
8911bbfa21 🐛 修复测试用例 2024-09-03 16:52:11 +08:00
AkashiCoin
7288d5bdba 添加仓库目录多获取渠道 2024-09-03 16:52:11 +08:00
AkashiCoin
8615eb20d4 添加github镜像 2024-09-03 16:52:11 +08:00
AkashiCoin
a61934650e 添加依赖aiocache 2024-09-03 16:52:11 +08:00
HibiKier
a2549a0ae9 🎨 更新requirements 2024-09-03 11:03:30 +08:00
fanyinrumeng
405e2d3a4c
🚀 更新Dockerfile (#1599) 2024-09-02 23:12:27 +08:00
HibiKier
02aba68269 🎨 代码优化 2024-09-02 21:45:37 +08:00
HibiKier
8d071f853b 🐛 修复更新群组成员信息 2024-09-02 17:32:12 +08:00
AkashiCoin
44e0f2d410
🐛 增加插件状态检查 (#1598)
*  优化测试用例

* 🐛 更改插件更新与安装逻辑
2024-09-02 15:00:37 +08:00
AkashiCoin
9eca6a97ca
🐛 修复插件商店检查插件更新问题 (#1597)
* 🐛 修复插件商店检查插件更新问题

* 🐛 恶意命令检测问题
2024-09-02 12:00:27 +08:00
HibiKier
a56d1f2bd8 🐛 修复超级用户对群组功能开关 2024-09-02 11:43:01 +08:00
HibiKier
133d4e193a 🐛 修改bug与版本锁定 2024-09-02 11:25:47 +08:00
HibiKier
db75c4a433
Update README.md 2024-09-02 09:53:58 +08:00
HibiKier
15ad90da88 🎨 修改readme 2024-09-02 09:51:36 +08:00
AkashiCoin
29c48765ae
🐛修复添加插件返回403的问题 (#1595)
* 完善测试方法
* vscode测试配置
* 重构插件安装过程
2024-09-02 01:50:39 +08:00
HibiKier
8fe061738a 🐛 bug修复 2024-09-01 23:30:26 +08:00
AkashiCoin
7e7436f433
添加测试:更新与添加插件 (#1594)
*  测试更新与添加插件

*  Sourcery建议

* 👷 添加pytest

* 🎨 优化代码
2024-09-01 14:53:41 +08:00
HibiKier
a3681216bd 父级插件加载 2024-08-30 23:50:45 +08:00
HibiKier
0074483280 🐛 版本锁定 2024-08-30 23:09:10 +08:00
HibiKier
e37f1c6165 🎨 修改方法名称 2024-08-30 02:45:27 +08:00
HibiKier
4882546c66 🎨 更新版本号 2024-08-29 23:21:37 +08:00
HibiKier
bd747cd0fd 🎨 添加__init__.py 2024-08-29 22:46:30 +08:00
HibiKier
a7bc1abf16 🎨 修改readme 2024-08-29 22:22:48 +08:00
HibiKier
cf7e05e9c0 🎨 修改代码 2024-08-29 22:21:13 +08:00
HibiKier
625f17a708 🎨 修复bug,移除plugins文件夹 2024-08-29 22:01:34 +08:00
HibiKier
e10fee74b3 新版帮助ui 2024-08-28 19:08:22 +08:00
AkashiCoin
756ad3dfaf 🐛 运行检查缓存修复 2024-08-28 00:44:51 +08:00
AkashiCoin
7c880497ed 🐛 更好的Bot运行检查 2024-08-28 00:12:08 +08:00
HibiKier
f15ee8fa17 Merge branch 'dev' of https://github.com/HibiKier/zhenxun_bot into dev 2024-08-27 23:32:13 +08:00
HibiKier
95ad0e6aa5 🐛 修复bug 2024-08-27 23:31:53 +08:00
HibiKier
a46cea5948 🐛 修复bug 2024-08-27 23:30:43 +08:00
AkashiCoin
ee11893074 更好的Bot运行检查 2024-08-27 23:30:14 +08:00
xuanerwa
ab1d0d22dd
🎨代码优化 (#1586)
*  更新插件俄罗斯轮盘

* 🎨代码优化
2024-08-27 17:34:44 +08:00
xuanerwa
72641c7983
更新插件俄罗斯轮盘 (#1585) 2024-08-27 15:17:42 +08:00
HibiKier
61ab7ef3d3 🎨代码优化 2024-08-27 12:38:46 +08:00
AkashiCoin
f70b07e5a3
添加代码检查 (#1583)
* 添加代码检查

* 使用Sourcery的建议
2024-08-26 23:54:07 +08:00
HibiKier
8fbb574228 🐛 词条修复 2024-08-26 20:12:54 +08:00
HibiKier
af198dcfaa 🐛 修正文本 2024-08-26 19:43:12 +08:00
AkashiCoin
6f794e82a6
🎨 代码优化 (#1582) 2024-08-26 19:20:22 +08:00
AkashiCoin
6fbc87b53f
🐛修复词库问答查看全局词条问题+代码优化 (#1580) 2024-08-26 17:03:57 +08:00
AkashiCoin
073cab5a85
Revert "🐛 WebUI初始化逻辑修改 (#1574)" (#1577)
This reverts commit 65a6f608e6.
2024-08-26 12:09:04 +08:00
AkashiCoin
b44332121a
支持bot运行检查 (#1576) 2024-08-26 11:38:19 +08:00
xuanerwa
66e6f449cc
更新插件商店 (#1573) 2024-08-26 10:39:33 +08:00
AkashiCoin
65a6f608e6
🐛 WebUI初始化逻辑修改 (#1574) 2024-08-26 10:38:42 +08:00
HibiKier
69f09b92d3 更新群组信息 2024-08-25 15:49:36 +08:00
HibiKier
8d6417b8ff 🎨 添加阴影 2024-08-25 14:10:12 +08:00
HibiKier
35699f86e3 🐛 修复群白名单和认证无法删除 2024-08-25 13:31:46 +08:00
HibiKier
910542f2b5 功能调用统计使用html截图 2024-08-25 00:02:35 +08:00
HibiKier
1236a938c9 🎨 代码优化 2024-08-24 20:32:04 +08:00
HibiKier
ceb8f663c0 🎨 插件商店代码优化 2024-08-24 20:24:05 +08:00
HibiKier
7390799c80
Merge pull request #1572 from molanp/dev
feat(plugin_store): 添加搜索插件功能和更新插件功能及更新配置URL
2024-08-24 20:05:33 +08:00
HibiKier
77673f6bed
Merge branch 'dev' into dev 2024-08-24 20:05:28 +08:00
HibiKier
c089395597
Update config.py 2024-08-24 20:04:24 +08:00
HibiKier
b10b806b76
Update data_source.py 2024-08-24 20:00:29 +08:00
HibiKier
413808300d
Update __init__.py 2024-08-24 19:47:12 +08:00
molanp
a2c3f11680 解决冲突3 2024-08-24 19:43:55 +08:00
molanp
68a71c516e 解决冲突 2024-08-24 19:42:30 +08:00
molanp
0822512c21 解决冲突 2024-08-24 19:41:48 +08:00
HibiKier
45c6dbd2ce 🎨 代码优化 2024-08-24 19:32:52 +08:00
molanp
447c558957 fix(__init__.py): 移除不必要的 type: ignore 注释 2024-08-24 19:09:04 +08:00
molanp
638efd9e07 feat(plugin_store): 添加更新插件功能
添加了更新插件的功能,现在可以通过插件商店更新已安装的插件。此更新包括了插件版本的检查和更新逻辑,
优化了插件管理的便捷性。
2024-08-24 19:07:06 +08:00
HibiKier
f69253616e 🎨 签到优化与配置修改 2024-08-24 17:06:23 +08:00
molanp
e0f323fdeb feat(plugin_store): 添加搜索插件功能及更新配置URL
添加了一个新的搜索命令,允许用户根据插件名称或作者搜索插件。此外,更新了插件配置的URL列表,以使用新的API端点。还修复了requirements.txt处理中的日志记录问题,并对插件安装和删除流程进行了微调。
2024-08-24 14:49:55 +08:00
HibiKier
28b7415581 🐛 修复bug 2024-08-24 13:25:34 +08:00
HibiKier
a9ed5d144d Merge branch 'dev' of https://github.com/HibiKier/zhenxun_bot into dev 2024-08-24 12:31:04 +08:00
HibiKier
4a9a856df5 签到ui改版 2024-08-24 12:30:49 +08:00
HibiKier
7519bad64c
Merge pull request #1569 from AkashiCoin/webui-patch
WebUI资源集成,不用另外部署
2024-08-24 03:20:12 +08:00
AkashiCoin
1787123aac 集成webui资源,可直接访问 2024-08-23 18:41:35 +08:00
HibiKier
1401b31af8
Merge pull request #1568 from AkashiCoin/webui-patch
🐛修改密钥生成为随机密钥
2024-08-23 11:18:07 +08:00
AkashiCoin
ebecffec90 🐛WebUI密钥修改为随机密钥 2024-08-23 11:15:55 +08:00
HibiKier
06b1af46ea 🎨 2024-08-22 21:38:44 +08:00
HibiKier
7e7e88557d
Merge pull request #1567 from Copaan/dev
代码优化
2024-08-22 20:01:25 +08:00
HibiKier
6679744ce5
Merge pull request #1566 from BalconyJH/dev
🐛 为 'get_browser()' 添加缺少的 'await' 关键字
2024-08-22 20:01:15 +08:00
Natalie Johnson
7c163142c4 代码优化 2024-08-22 19:10:47 +08:00
BalconyJH
f578123acb
🐛 为 'get_browser()' 添加缺少的 'await' 关键字以确保正确等待异步函数执行 2024-08-22 08:53:33 +08:00
HibiKier
2fe825f67d 新群被动添加时所有群默认状态 2024-08-21 23:36:19 +08:00
HibiKier
ef662a16df 🎨 2024-08-21 22:30:15 +08:00
HibiKier
6d58f6a188 🐛 修改bug 2024-08-21 22:22:42 +08:00
HibiKier
96ca33f878
Merge pull request #1565 from Copaan/dev
更新 data_source.py
2024-08-21 22:21:03 +08:00
Natalie Johnson
fead5a87a8 更新 data_source.py 2024-08-21 16:37:07 +08:00
HibiKier
4ed5cca0aa
Merge pull request #1564 from Copaan/dev
更新 config.py
2024-08-21 10:50:47 +08:00
Natalie Johnson
16e43de35e 更新 config.py
添加cdn
2024-08-21 10:37:55 +08:00
HibiKier
99774adc87 插件商店 2024-08-20 21:29:42 +08:00
HibiKier
1f90490230 🐛 自动更新 2024-08-20 01:09:56 +08:00
HibiKier
0fbe7be786 🐛 修改自动更新 2024-08-20 00:45:14 +08:00
HibiKier
1c58a8f021 自动更新 2024-08-19 23:07:43 +08:00
HibiKier
09f586be25 🐛 修复使用道具后未减去道具数量 2024-08-19 18:57:21 +08:00
HibiKier
862c977eda ️ 优化权限判断 2024-08-18 22:26:53 +08:00
HibiKier
369451c4a5 🎨 代码优化 2024-08-16 19:54:58 +08:00
HibiKier
23bfaa530b 🎨 代码优化 2024-08-15 23:52:19 +08:00
HibiKier
9aec2e9b86 🎨 修改md 2024-08-15 21:36:42 +08:00
HibiKier
13a33cb8f8 🎨 代码优化 2024-08-15 21:30:10 +08:00
HibiKier
8aa719cce7 🎨 代码优化 2024-08-15 21:29:49 +08:00
HibiKier
ec24bdf64f 🎨 代码优化 2024-08-15 20:27:19 +08:00
HibiKier
7dfcd0983a 🎨 代码优化 2024-08-15 00:14:09 +08:00
HibiKier
3003cbf359 Dockerfile 2024-08-14 13:35:03 +08:00
HibiKier
032c93ebf9 🐛 修改b站解析 2024-08-14 01:05:11 +08:00
HibiKier
53f4007292 🎨 修改md 2024-08-13 22:39:35 +08:00
HibiKier
2d0cee80c2 🎨 webui优化 2024-08-13 22:37:44 +08:00
HibiKier
b37e55648b 🐛 hook过滤除poke外的notice 2024-08-13 00:47:39 +08:00
HibiKier
ed963c80a9 Merge branch 'main' into dev 2024-08-12 22:32:38 +08:00
HibiKier
18f97b9bd5 添加更新好友群组与修复其他 2024-08-12 22:26:13 +08:00
HibiKier
66efc0cc72
Merge pull request #1548 from BalconyJH/dev
🚸 更新 Chromium 安装逻辑, 添加 Playwright 依赖检查逻辑
2024-08-12 19:35:30 +08:00
BalconyJH
b6fc114a14
🚸 更新 Chromium 安装逻辑, 添加 Playwright 依赖检查逻辑 2024-08-12 15:38:37 +08:00
HibiKier
e8192821cc 🎨 2024-08-12 00:10:02 +08:00
HibiKier
da595b8c8e 🎨 2024-08-12 00:09:38 +08:00
HibiKier
6c6b47c4b8 🎨 2024-08-11 21:05:04 +08:00
HibiKier
5f0797e3ed 🎨 2024-08-11 21:04:08 +08:00
HibiKier
6acfd4b9f1 Merge branch 'main' of https://github.com/HibiKier/zhenxun_bot 2024-08-11 21:02:51 +08:00
HibiKier
b7cd07e0a3 🎨 2024-08-11 21:02:43 +08:00
HibiKier
46d822a487 🎨 2024-08-11 20:52:28 +08:00
HibiKier
f4ce789ffc 🎨 2024-08-11 20:52:06 +08:00
HibiKier
2c19e16920 🎨 修改md 2024-08-11 20:42:06 +08:00
HibiKier
f5d86525d9 🎨 修改版本号 2024-08-11 20:39:36 +08:00
HibiKier
93312f74ea
Update README.md 2024-08-11 20:28:36 +08:00
HibiKier
275dc78b50
Update README.md 2024-08-11 18:45:26 +08:00
HibiKier
e4b7056b6d
Update README.md 2024-08-11 18:43:35 +08:00
HibiKier
10907dfa33
Merge pull request #1547 from HibiKier/dev
Dev
2024-08-11 18:42:15 +08:00
HibiKier
17108c1cbe Merge feature-branch into main 2024-08-11 18:41:03 +08:00
HibiKier
f28f69b00a 🎨 修改md 2024-08-11 17:59:32 +08:00
HibiKier
2e66e3f48a 修改最新md 2024-08-11 17:53:59 +08:00
HibiKier
61926b648c 🐛 修改回复bug 2024-08-11 16:04:48 +08:00
HibiKier
d0792e0a1c 移除saa依赖 2024-08-11 15:57:33 +08:00
HibiKier
71f3b031d4 🎨 修改文字getsize方法 2024-08-10 17:56:49 +08:00
HibiKier
5a5c0be51a bot已有群组添加群认证 2024-08-10 14:18:05 +08:00
HibiKier
59b32f8b25 🐛 导入缺失 2024-08-10 13:20:06 +08:00
HibiKier
ab05d8a1b5 提供database.json配置文件 2024-08-10 12:10:53 +08:00
HibiKier
d05b1fb9b2 提供全局图片统一bytes发送配置 2024-08-10 02:38:41 +08:00
HibiKier
e0a3fe526e 🎨 统一发送格式 2024-08-10 02:25:04 +08:00
HibiKier
5e4de123b0 🐛 修改webui 2024-08-09 22:27:32 +08:00
HibiKier
2251f5fafa ️ 修复管理员alc版本变更问题 2024-08-09 19:39:58 +08:00
HibiKier
f02c276310 ️ 代码优化 2024-08-08 21:43:40 +08:00
HibiKier
8470777f6c ️ 修改b站转发解析插件类型 2024-08-08 18:57:30 +08:00
HibiKier
3e29a5e3a3 ️ 优化签到天数显示 2024-08-08 13:09:49 +08:00
HibiKier
fb171e2d4b 两日内未发送消息的群组将被关闭所有被动 2024-08-08 04:41:35 +08:00
HibiKier
b4b5b4a637 🐛 命令检测过滤b站解析 2024-08-08 02:51:11 +08:00
HibiKier
96d08858a4 🎨 俄罗斯轮盘拒绝时移除定时 2024-08-08 00:37:14 +08:00
HibiKier
0b3698438b ️ 代码优化与修复 2024-08-07 23:31:25 +08:00
HibiKier
8b9fe6e2bc ️ 修复俄罗斯轮盘接受对决时未重置30s强制结算 2024-08-07 19:03:07 +08:00
HibiKier
968fb7b157 🐛 修改bug 2024-08-07 18:59:43 +08:00
HibiKier
e07851aecf 更加细致的群被动管理 2024-08-07 00:11:49 +08:00
HibiKier
45ad5d8e4e 添加开启/关闭所有群被动命令 2024-08-06 21:54:06 +08:00
HibiKier
50d8059e9f ️ 修复私聊ban后群组中回复不正确 2024-08-06 21:08:31 +08:00
HibiKier
278a5319a4 ️ 优化帮助命令匹配规则 2024-08-06 00:25:21 +08:00
HibiKier
f86bc50dba ️ 修改帮助命令匹配优先级 2024-08-06 00:00:55 +08:00
HibiKier
409a4f867d 添加功能名称当命令检测 2024-08-05 23:07:17 +08:00
HibiKier
1a8378f433 钉宫骂我 2024-08-05 22:43:55 +08:00
HibiKier
dfbb7f347e ️ 优化金币红包 2024-08-05 21:29:29 +08:00
HibiKier
4cb350a003 ️ 修复bug 2024-08-05 20:25:02 +08:00
HibiKier
b20f748b4f ️ 优化pix标签与轮盘概率显示 2024-08-05 19:57:01 +08:00
HibiKier
76663a1303 ️ 优化俄罗斯轮盘对决接受方法 2024-08-05 01:15:36 +08:00
HibiKier
2495c40423 ️ 优化金币消耗异常处理 2024-08-05 01:10:50 +08:00
HibiKier
f809f0f3b4 ️ 调整晚安定时任务时间 2024-08-05 00:22:04 +08:00
HibiKier
1dbed2beec 🐛 修复TaskInfo状态判断 2024-08-05 00:20:27 +08:00
HibiKier
2926a46ae8 🎨 优化导入 2024-08-04 23:54:54 +08:00
HibiKier
f09d4e1101 ️ 优化修改群权限正则 2024-08-04 23:54:28 +08:00
HibiKier
3a1cea0939 添加exec_sql查询操作 2024-08-04 21:16:28 +08:00
HibiKier
21b73b085e 🎨 删除多余包引入 2024-08-04 19:34:02 +08:00
HibiKier
1526611413 ️ 消息排行添加shortcut 2024-08-04 19:31:21 +08:00
HibiKier
75fb71dc88 🐛 优化更新群组成员信息 2024-08-04 19:16:20 +08:00
HibiKier
ecc8ec3fd8 ️优化ban插件 2024-08-04 18:49:39 +08:00
HibiKier
3eb107a79d 🐛 昵称功能添加shortcut 2024-08-04 17:22:30 +08:00
HibiKier
6258a42181 🐛 修复私聊下功能调用统计 2024-08-03 01:46:55 +08:00
HibiKier
321735497f 🐛 修改功能统计菜单和插件类型 2024-08-03 01:43:52 +08:00
HibiKier
e2d20b0eb4 🐛 修改俄罗斯轮盘偶尔结算失败 2024-08-03 01:28:08 +08:00
HibiKier
131cd5ea9a 🐛 统一被动技能判断 2024-08-03 00:34:19 +08:00
HibiKier
7ab800be97 🐛 修复道具仓库 2024-08-03 00:10:24 +08:00
HibiKier
9fc189b3b7 🐛 修复初始化数据库时区 2024-08-02 22:21:03 +08:00
HibiKier
51fcdf649e 🐛 修复群权限检测获取群问题并优化代码 2024-08-02 21:38:32 +08:00
HibiKier
36047693aa 🐛 修复处理问题并优化代码 2024-08-02 20:46:51 +08:00
HibiKier
fdb62f7226 🐛 代码优化 2024-08-02 19:51:52 +08:00
HibiKier
1ecb364f30 🐛 修复好友请求及群聊请求处理问题 2024-08-02 19:43:13 +08:00
HibiKier
19fa40e967 🐛 修复群权限检测获取群问题 2024-07-31 22:50:36 +08:00
HibiKier
6120c3bc44 🐛 修复日志功能中的异常处理 2024-07-31 19:54:46 +08:00
HibiKier
3b2273e75b 🐛 修复帮助功能中的菜单类型重复及图片模糊处理 2024-07-31 19:10:31 +08:00
HibiKier
9899f37528 🐛 修复插件数据迁移错误 2024-07-31 18:36:55 +08:00
HibiKier
2a49d86d9f feat: 新增功能ID搜索及修复相关错误 2024-07-31 18:34:22 +08:00
HibiKier
714f5564d0 feat: 新增消息统计功能及修复相关错误 2024-07-31 17:35:08 +08:00
HibiKier
a815c3bcc5 feat: 新增好感度总排行功能及修复相关错误 2024-07-31 17:30:59 +08:00
HibiKier
0e0e37437e 🐛 修复签到功能中的用户排序错误及好友列表获取错误 2024-07-31 17:14:46 +08:00
HibiKier
a15982df5e 🐛 修复签到功能中的用户排序错误 2024-07-31 17:12:10 +08:00
HibiKier
930ff5b09d 🐛 : 修复开箱功能中的正则表达式错误 2024-07-31 17:08:33 +08:00
HibiKier
9fc0dbfc2b 🐛 : 修复签到功能中的图片位置错误 2024-07-31 13:26:26 +08:00
HibiKier
d55d1c558c 🐛 : 修复插件数据迁移错误 2024-07-31 13:00:46 +08:00
HibiKier
870fa0b8b6 🐛 : 修复版本号类型错误 2024-07-31 05:02:51 +08:00
HibiKier
2bf5fd1a37 feat: 新增Web UI功能及数据库、日志等API接口 2024-07-31 04:58:29 +08:00
HibiKier
f0b05ec5ed 🐛 : 新增更多的数据迁移 2024-07-30 22:36:09 +08:00
HibiKier
b4b30e59c7 🐛 : 用户数据迁移包括uid 2024-07-30 00:06:29 +08:00
HibiKier
cd4da389c3 feat: 更新B站内容解析插件 2024-07-29 23:32:21 +08:00
HibiKier
c219264968 feat: 优化b站解析 2024-07-29 23:31:11 +08:00
HibiKier
ed36aebf6d
Merge pull request #1528 from MWTJC/patch-1
修正ba抽卡资源下载地址
2024-07-29 20:58:39 +08:00
HibiKier
533a55c52c
Update README.md 2024-07-29 20:38:26 +08:00
HibiKier
fb95963942
Update README.md 2024-07-29 20:28:53 +08:00
HibiKier
d4a49a47e5 feat: 添加B站转发解析功能 2024-07-28 20:29:03 +08:00
HibiKier
aa7a8271f3 feat: 添加游戏抽卡功能 2024-07-28 03:37:37 +08:00
HibiKier
86048e041c 🎨: 优化词条管理命令导入 2024-07-27 04:49:16 +08:00
HibiKier
c4712224aa feat: 更新词条管理命令示例 2024-07-27 04:48:08 +08:00
HibiKier
137870b698 feat: 添加词条word_bank 2024-07-27 04:30:03 +08:00
HibiKier
d8f339eae6
Update README.md 2024-07-25 23:13:56 +08:00
HibiKier
3d49e8ca4f
Update README.md 2024-07-25 09:40:58 +08:00
HibiKier
ee846e336d
Update README.md 2024-07-24 23:45:38 +08:00
HibiKier
597621ad2e
Update README.md 2024-07-24 23:42:47 +08:00
HibiKier
055a0bd8c1
Update README.md 2024-07-24 23:42:06 +08:00
HibiKier
8b5aa0a6bb
Update README.md 2024-07-24 23:41:03 +08:00
HibiKier
cf208e2f64 🐛 :群被动状态修改时重复发送消息 2024-07-23 19:53:42 +08:00
HibiKier
475a188a80 🐛 : 修复群被动控制 2024-07-23 19:00:38 +08:00
HibiKier
c75b0950bd 🐛 : fix uuid 2024-07-21 23:26:56 +08:00
HibiKier
487f019c89 🐛 : 修复签到问题 2024-07-21 19:06:50 +08:00
HibiKier
167555016a : 所有插件管理允许群组管理员使用 2024-07-20 00:46:21 +08:00
HibiKier
d45baaddbc 🎨 : 代码优化 2024-07-20 00:45:26 +08:00
HibiKier
4b48fc2557 feat: 插件管理添加统一开关命令 2024-07-18 23:16:29 +08:00
HibiKier
15aba0bea9 feat: 俄罗斯轮盘 2024-06-10 21:10:04 +08:00
HibiKier
899acc248d feat: roll 2024-05-29 19:27:58 +08:00
HibiKier
12b8c3e04c feat: p搜 2024-05-29 19:17:03 +08:00
HibiKier
d1fda8714d feat: 语录 2024-05-29 02:14:24 +08:00
HibiKier
bfa6896ef9 feat: 能不能好好说话 2024-05-29 02:10:33 +08:00
HibiKier
091ae93731 feat: 禁言检测 2024-05-29 02:01:26 +08:00
HibiKier
f73b40ebdb feat: 查看群欢迎消息 2024-05-28 15:35:54 +08:00
HibiKier
fabeb4711f feat: 复读 2024-05-28 14:22:24 +08:00
HibiKier
c3b2a3b623 feat: 关于 2024-05-28 03:41:32 +08:00
HibiKier
215624ad33 feat: 识番 2024-05-28 03:24:32 +08:00
HibiKier
55db970cde feat: 微博热搜 2024-05-28 02:18:50 +08:00
HibiKier
126dbc39b4 feat: 翻译 2024-05-27 23:26:24 +08:00
HibiKier
876bba479c feat: 功能调用统计 2024-05-27 16:09:52 +08:00
HibiKier
2021a2cc1c feat: 功能调用统计 2024-05-27 16:09:24 +08:00
HibiKier
2e17f56f1e fix🐛: 签到uid显示错误 2024-05-26 15:49:44 +08:00
HibiKier
27c9394b0d feat: 色图 2024-05-26 15:22:55 +08:00
HibiKier
570a8dd7f2 fix🐛: 修正包路径 2024-05-24 21:25:39 +08:00
HibiKier
bd4106190e feat: 识图 和 buff皮肤查询 2024-05-23 16:26:06 +08:00
HibiKier
1aed19035e feat: search_anime 2024-05-23 14:28:48 +08:00
HibiKier
90ef1c843a feat: p站排行/搜图 2024-05-23 13:58:53 +08:00
HibiKier
c6afb8c1e9 feat: PIX图库 2024-05-20 22:03:11 +08:00
HibiKier
c2fd8661b5 feat: CSGO开箱 2024-05-18 20:56:23 +08:00
HibiKier
f03604d3bc feat: 我有一个朋友 2024-05-16 19:54:30 +08:00
HibiKier
e2bb4d2e56 feat: 鲁迅说 2024-05-16 00:29:52 +08:00
HibiKier
ebec169e67 feat: 画廊操作 2024-05-15 23:24:35 +08:00
HibiKier
3fad6fc2ad feat: 金币红包 2024-05-04 13:48:12 +08:00
HibiKier
afc1dd7377 feat: add epic 2024-03-29 23:27:25 +08:00
HibiKier
3fcb8af756 fix🐛: fix 2024-03-27 20:12:35 +08:00
HibiKier
d96fd8191d feat: add dialogue 2024-03-27 20:09:30 +08:00
HibiKier
d37280b296 feat: add coser 2024-03-27 11:53:37 +08:00
MWTJC
4fdcac5cf9
修正ba抽卡资源下载地址 2024-03-22 22:46:48 +08:00
HibiKier
b74998db87 feat: add check 2024-03-19 00:34:04 +08:00
HibiKier
606da31851 feat: add bt 2024-03-18 17:50:07 +08:00
HibiKier
8a073aa7bc feat: add black_word 2024-03-18 16:12:27 +08:00
HibiKier
5dd03bb0ca feat: add black_word 2024-03-18 16:10:44 +08:00
HibiKier
913811b90d feat: ALAPI 2024-03-10 00:50:20 +08:00
HibiKier
960b665ba4 feat: Ai 2024-03-09 23:42:59 +08:00
HibiKier
5a50a2bff4 perf👌: 道具使用与签到 2024-03-05 08:29:46 +08:00
HibiKier
db96f46dcb feat: 数据迁移 2024-03-04 23:27:05 +08:00
HibiKier
a2d6c7f951 perf👌: 广播与全局插件/被动管理 2024-02-29 03:07:31 +08:00
HibiKier
88bda9ce2c perf👌: 优化好友群组更新 2024-02-28 13:51:16 +08:00
HibiKier
aa68553539 fix🐛: 修改图片bytes发送 2024-02-28 00:38:54 +08:00
HibiKier
9f17a525f1 perf👌: 添加shop的shortcut 2024-02-27 21:43:40 +08:00
HibiKier
f6bc6f3481 feat: 添加单个插件帮助图片 2024-02-27 16:13:06 +08:00
HibiKier
993ff81130 feat: 添加shortcut和usage 2024-02-27 16:12:56 +08:00
HibiKier
499e51e996 perf👌: 添加shortcut 2024-02-27 02:30:01 +08:00
HibiKier
2501a72bb8 feat: test hook 2024-02-27 01:14:49 +08:00
HibiKier
7b3793728a feat: 添加hook,更新其他 2024-02-26 03:04:32 +08:00
HibiKier
eb0572ea77 feat: 更新内置插件 2024-02-25 03:18:34 +08:00
HibiKier
131200a28e init🎉: 首次提交 2024-02-04 04:18:54 +08:00
HibiKier
379dd4d598
Merge pull request #1513 from HibiKier/dev
Dev
2024-01-25 18:36:12 +08:00
HibiKier
a3004438a9
Update README.md 2024-01-25 18:35:48 +08:00
HibiKier
3c9b56f35f
Update README.md 2024-01-25 18:32:51 +08:00
HibiKier
38c79a81e3 perf👌: 细节优化 2024-01-25 04:08:12 +08:00
HibiKier
66c9b8045d perf👌: webui登录细节优化 2024-01-22 05:33:41 +08:00
HibiKier
428f374a8c feat: 目录结构树编辑文件api 2024-01-21 22:34:05 +08:00
HibiKier
45d19d1cdd feat: 目录结构树编辑查看api 2024-01-21 22:27:03 +08:00
HibiKier
1a9a19e1cb feat: webui结构树添加删除/新增/重命名文件/文件夹api 2024-01-21 06:34:39 +08:00
HibiKier
72b0b011ee perf👌: 完善系统管理api 2024-01-15 13:00:17 +08:00
HibiKier
b656f89c8e perf👌: 完善系统管理api 2024-01-15 01:19:37 +08:00
HibiKier
45acf4a094 perf👌: webui完善数据库管理api 2024-01-14 17:48:15 +08:00
HibiKier
b17e0c0325
Merge pull request #1508 from Copaan/main
修复词云bug
2024-01-14 05:23:57 +08:00
HibiKier
59cb2bee8b perf👌: webui完善好友群组管理api,添加部分数据库管理接口 2024-01-14 05:20:21 +08:00
HibiKier
bf55a20241 perf👌: 实现优化webui群组/好友管理api 2024-01-09 13:47:24 +08:00
HibiKier
9a1510fe7e perf👌: 完善插件管理api 2024-01-08 15:21:07 +08:00
HibiKier
3bfb3620f1 modified: basic_plugins/init_plugin_config/init_plugins_settings.py 2024-01-08 05:41:13 +08:00
HibiKier
8acbe0bb1c perf👌: 完善插件管理api 2024-01-08 05:39:44 +08:00
HibiKier
87a39bf033 refactor🎨: 更新webui model 2024-01-06 22:09:44 +08:00
HibiKier
a5bb1f768e webui主页和插件管理api更新 2024-01-06 17:36:22 +08:00
HibiKier
c146df3d25 feat: webui新增数据库api 2023-12-31 01:58:26 +08:00
HibiKier
25af1802af 重构webui主页与好友/群组api 2023-12-30 05:27:45 +08:00
Natalie Johnson
67aeeea4d1 修复词云bug 2023-12-28 22:46:32 +08:00
HibiKier
081c86aba0 test 2023-12-28 01:52:06 +08:00
HibiKier
72e0c7fdb5 fix🐛: 修复B站动态获取失败的时候,会发送空消息 2023-12-28 01:31:52 +08:00
HibiKier
b9a39c2760 fix🐛: Update webUI 2023-09-09 09:10:29 +08:00
HibiKier
1130569a20 fix🐛: 修正b站订阅 2023-09-06 18:53:15 +08:00
HibiKier
fb26be821b feat: 开箱添加更新武器箱图片超级用户命令 2023-08-28 17:30:24 +08:00
HibiKier
3abac67b2e Merge branch 'main' of https://github.com/HibiKier/zhenxun_bot 2023-08-28 13:39:17 +08:00
HibiKier
81ddbc30f4 refactor🎨: 重构红包功能 2023-08-28 13:30:17 +08:00
HibiKier
6519ed7101 fix🐛: 修复开箱时最后开箱日期数据未更新 2023-08-21 00:31:18 +08:00
HibiKier
0a4df8296e fix🐛: 修复词条回答包含at时使用模糊|正则等问时无法正确匹配问题 2023-08-20 23:45:31 +08:00
HibiKier
38abb74c4c refactor🎨: 优化图库 2023-08-18 00:42:10 +08:00
HibiKier
48b720b00a
Merge pull request #1468 from LanluZ/main
添加 本地图库插件 防吞图特性
2023-08-17 22:38:32 +08:00
HibiKier
d2189adea0
Update __init__.py 2023-08-17 22:38:11 +08:00
HibiKier
354643f0f6
Update anti.py 2023-08-17 22:37:50 +08:00
LanluZ
6beb421dd0 引用 反吞图模块 2023-07-29 09:53:54 +08:00
LanluZ
ded6378a3f 添加 反吞图模块 2023-07-29 09:53:44 +08:00
HibiKier
83b108f91f UPDATE 2023-05-30 20:55:46 +08:00
HibiKier
372aa2c122 UPDATE 2023-05-29 21:33:53 +08:00
HibiKier
7b0785248c 修复群聊数据无法初始化 2023-05-28 22:57:18 +08:00
HibiKier
e4ca110938 UPDATE 2023-05-24 22:09:25 +08:00
HibiKier
f3eacbe639 轮盘结算信息使用图片发送 2023-05-24 21:47:22 +08:00
HibiKier
26db0fad85 修复修改图库配置重载后上传图片时提示的图库与配置不符 2023-05-23 23:49:18 +08:00
HibiKier
7d86ff057c 修复群聊数据无法初始化 2023-05-23 23:05:27 +08:00
HibiKier
ac98ec8351 修改查看词条图片等显示问题 2023-05-23 00:23:07 +08:00
HibiKier
848de7f4fe 数据库中所有user_qq改名以及user_id和group_id改为字符串 2023-05-22 20:56:42 +08:00
HibiKier
0d3c6d8684
Merge pull request #1418 from RenYuan2004/main
修复因明日方舟新增“中坚寻访”导致抽卡模拟不可用的问题
2023-05-16 20:33:00 +08:00
RenYuan2004
845e5d863a 修复因明日方舟新增“中坚寻访”导致抽卡模拟不可用的问题
修复因明日方舟新增“中坚寻访”导致抽卡模拟不可用的问题,优化up池及up概率抓取,将中坚干员排除出干员池
2023-05-14 00:47:24 +08:00
H3d9
9e0add7bde
🐛 修复好感度满后签到失败 2023-05-06 13:46:18 +08:00
mmmjie
18a220440b
Update __init__.py 2023-04-26 19:01:49 +08:00
yajiwa
bc755ea6ec
🐛 修复好感度排行榜报错 2023-04-25 20:08:58 +08:00
MobiusT
33710f16fe
🐛 user_qq → user_id 2023-04-24 19:41:42 +08:00
MobiusT
321af81d88
修复更新群组成员列表时一直【删除已退群用户】 (#1390) 2023-04-24 00:54:08 +08:00
HibiKier
6d9d71ea6d
Merge pull request #1389 from MobiusT/main
修复user_id字段名错误
2023-04-23 22:32:41 +08:00
MobiusT
7d1c6d1659 修复user_id字段名错误 2023-04-23 22:29:49 +08:00
yajiwa
d503cbaaac
🐛 update "A_nmi_114514" to 114514 (#1388) 2023-04-23 17:11:53 +08:00
HibiKier
db7de9253a
Update chat_message.py 2023-04-22 21:35:11 +08:00
HibiKier
a8a5887c28
Merge pull request #1386 from yajiwa/main
type语法适配到python3.8以上
2023-04-22 21:20:18 +08:00
yajiwa
8c65caf35f 🚑 语法适配到python3.8以上 2023-04-22 21:14:51 +08:00
HibiKier
03cfeb22d8
Update model.py 2023-04-22 19:55:47 +08:00
HibiKier
f3a5879c66
Merge pull request #1373 from yajiwa/main
🗃️  数据库字段"user_qq"改为"user_id"并更改字段类型为str
2023-04-22 19:38:14 +08:00
HibiKier
4e42f78bb0 Merge branch 'main' of https://github.com/HibiKier/zhenxun_bot 2023-04-16 03:47:34 +08:00
HibiKier
1c63384082 BilibiliSub的部分字段改为字符串 2023-04-16 03:47:09 +08:00
HibiKier
0be8533063
Merge pull request #1368 from unknownsno/main
fix bug
2023-04-16 03:07:41 +08:00
HibiKier
b1660bb9d6 修复更新色图问题 2023-04-16 03:01:00 +08:00
HibiKier
9f16f938dc 修复开箱更新未登录时没有停止更新 2023-04-16 00:37:07 +08:00
yajiwa
5f9748582d 🐛 修复帮助命令日志过长的问题 2023-04-15 13:55:26 +08:00
yajiwa
c577aa1318 🚧 Update the data types of the user_qq and group_id fields to str 2023-04-14 15:47:53 +08:00
yajiwa
0eeb55a0ca 🚧 Update the data types of the user_qq and group_id fields to str 2023-04-14 12:48:00 +08:00
yajiwa
04c516f783 🧱 Update the 'user_qq' field in the database to 'user_id' 2023-04-14 11:45:45 +08:00
unknownsno
6c898b207e fix bug 2023-04-13 10:17:29 +08:00
HibiKier
08c7aae6b7 fix bug 2023-04-11 20:13:11 +08:00
HibiKier
b6e3af45e9 fix bug 2023-04-05 22:57:14 +08:00
HibiKier
6eebb8229f 词条正则回答中允许使用$1.$2..来获取()捕获组 2023-04-05 15:51:28 +08:00
HibiKier
47531f5790 修复帮助命令-super无效 2023-04-03 21:27:17 +08:00
HibiKier
62e29f389b UPDATE WEB UI 2023-04-02 22:57:36 +08:00
HibiKier
3cc834d424 修改优化开箱显示图片 2023-04-01 01:58:36 +08:00
HibiKier
0c7c7f3987 修改优化开箱显示图片 2023-04-01 01:50:34 +08:00
HibiKier
4e35090ba6 fix 2023-03-29 20:10:46 +08:00
HibiKier
025246eacb 优化 2023-03-29 18:56:19 +08:00
HibiKier
117eb86e8c 🐛 fix bug 2023-03-29 18:47:47 +08:00
HibiKier
198386e500 补全注释SCRIPT中的sql语句 2023-03-28 23:14:02 +08:00
HibiKier
bdcdf9a9a2 优化代码 2023-03-27 22:52:29 +08:00
HibiKier
dc8eb69962 优化代码 2023-03-27 22:38:59 +08:00
HibiKier
9b33894a30 fix bug 2023-03-27 21:58:29 +08:00
HibiKier
77478e4483 fix bug 2023-03-26 23:41:54 +08:00
HibiKier
65161e9133 补全罕见物品 2023-03-26 22:39:38 +08:00
HibiKier
8946dd012c 优化 2023-03-26 21:50:40 +08:00
HibiKier
10268cbb06 fix bug 2023-03-26 21:29:44 +08:00
HibiKier
b2a2776fe3 修复词条At时bug与模糊查询时无法替换占位符问题 2023-03-25 21:16:48 +08:00
HibiKier
f72988a71a 开箱新增更新指定刀具皮肤命令 2023-03-25 15:38:12 +08:00
HibiKier
a48661745e 优化代码 2023-03-20 21:58:47 +08:00
HibiKier
fb04f7fffb 修复词条添加错误 2023-03-20 21:50:05 +08:00
HibiKier
fac1d4bff9 修复首次签到时使用道具后签到报错 2023-03-20 21:23:04 +08:00
HibiKier
99cf2b32b1 修复首次签到时使用道具后签到报错 2023-03-20 20:54:53 +08:00
HibiKier
6a3b66b266 修复色图r连发时未检测当前会话是否为群聊 2023-03-19 21:22:23 +08:00
HibiKier
1046815d37 FIX BUG 2023-03-19 21:05:34 +08:00
HibiKier
f8371e7330 FIX 2023-03-18 01:46:45 +08:00
HibiKier
040f85149b FIX 2023-03-18 01:45:00 +08:00
HibiKier
0162ab576b fix bug 2023-03-18 01:43:12 +08:00
HibiKier
379a689ebc 修复签到好感度进度条错误 2023-03-18 01:39:31 +08:00
HibiKier
09d251de21 Merge branch 'main' of https://github.com/HibiKier/zhenxun_bot 2023-03-18 00:47:25 +08:00
HibiKier
ea54edcbcf 修复色图重复发送相同图片 2023-03-18 00:45:22 +08:00
HibiKier
2860240ae8
Delete 1 2023-03-16 21:23:18 +08:00
HibiKier
b2b11da3e3
Add files via upload 2023-03-16 21:21:48 +08:00
HibiKier
88ff20593a
Create 1 2023-03-16 21:20:26 +08:00
HibiKier
2796083c4c UPDATE IMAGE 2023-03-16 21:18:56 +08:00
HibiKier
30bcef32e4
Update README.md 2023-03-12 21:56:57 +08:00
HibiKier
33d5cd6b5c fix bug 2023-03-12 21:53:15 +08:00
HibiKier
c574459485 UPDATE README.MD 2023-03-12 19:56:37 +08:00
HibiKier
ca9933a489
Merge pull request #1301 from YuS1aN/main
色图bug修复、增加指令
2023-03-12 19:55:21 +08:00
HibiKier
429b7e38b5
Update data_source.py 2023-03-12 19:54:11 +08:00
HibiKier
8c7110ae85 UPDATE README.MD 2023-03-12 19:50:24 +08:00
HibiKier
a43a7b5f75 更新开箱指令 2023-03-12 19:50:08 +08:00
HibiKier
5b9218251e
Merge pull request #1299 from LambdaYH/patch-7
签到卡片中今日增加的好感度被显示成总好感度了
2023-03-09 19:42:05 +08:00
HibiKier
461ca0af32
Merge pull request #1302 from LambdaYH/patch-8
更正sql语句
2023-03-09 19:38:49 +08:00
Cinte
97443a11e2
Update bag_user.py 2023-03-08 10:13:16 +08:00
sean
5aff21aab2 1. 修复某些情况下会发出两张图片的问题
2. 限制色图连发图片数量
3. 连发正则新增指令
2023-03-07 22:50:04 +08:00
HibiKier
1cbe807b05 fix bug 2023-03-06 22:52:15 +08:00
Cinte
d8ea0c6baf
Update utils.py 2023-03-06 13:00:11 +08:00
HibiKier
d6ef64c70a fix bug 2023-03-05 23:19:54 +08:00
HibiKier
b31fbf5810 修复开箱BUG 2023-03-05 23:11:04 +08:00
HibiKier
f2ab119397 modified: README.md 2023-03-05 21:00:28 +08:00
HibiKier
33e42be32d 更新开箱会记录箱子数据以及开箱时箱子价格加入花费 2023-03-05 21:00:05 +08:00
HibiKier
8c92756493 fix bug 2023-03-04 22:53:36 +08:00
HibiKier
c2ca09867a fix bug 2023-03-04 21:12:21 +08:00
HibiKier
a1eb981fd4 UPDATE README.MD 2023-03-04 20:38:05 +08:00
HibiKier
e32f086b8a 新增开箱日志以及自动更新武器箱 2023-03-04 20:32:03 +08:00
HibiKier
bdfdbbcaeb 重写翻译,使用百度翻译API 2023-03-04 17:51:18 +08:00
HibiKier
3cdabb7d81 修复词条单图片/表情/at无法添加 2023-03-02 22:45:37 +08:00
HibiKier
422ed2ff51 fix bug 2023-03-02 21:59:07 +08:00
HibiKier
6e76ffb60f 修复词云 2023-03-02 21:01:11 +08:00
HibiKier
eaa809931c 修复我的签到签到图片 2023-03-02 20:47:23 +08:00
HibiKier
4163435c84 更正BuffSkin添加语句 2023-03-02 19:33:08 +08:00
HibiKier
99263ab36a
Merge pull request #1287 from yajiwa/main
修复签到
2023-03-02 19:30:33 +08:00
HibiKier
0d76fa8560
Merge pull request #1288 from LambdaYH/patch-6
修复config.yaml中把False也当成None的问题
2023-03-02 19:29:41 +08:00
Cinte
c3644576b8
顺便把写错的type改回来 2023-03-02 18:31:36 +08:00
Cinte
325e345b4e
Update __init__.py 2023-03-02 18:17:07 +08:00
yajiwa
3b7972454d no message 2023-03-02 11:31:42 +08:00
yajiwa
6af5e42bf0 fix sign_in bug 2023-03-02 11:29:54 +08:00
HibiKier
edc68921c9 修复消息统计 2023-03-01 23:24:56 +08:00
HibiKier
83c3f44ae7 重写开箱更新箱子,允许更新目前所有箱子的皮肤 2023-03-01 22:54:03 +08:00
HibiKier
6d7e79e9de
Merge pull request #1282 from MobiusT/main
修复同意群聊请求以及添加群认证 更新变成查询的问题
2023-02-28 20:08:40 +08:00
HibiKier
401029bd27
Merge pull request #1283 from LambdaYH/main
把Config的type字段默认类型由str改为None
2023-02-28 20:07:03 +08:00
LambdaYH
33a0477fab 把Config的type字段默认类型由str改为None 2023-02-27 21:39:13 +08:00
HibiKier
6826c10a09 fix bug 2023-02-27 19:44:47 +08:00
HibiKier
8133b61ebd Config提供type字段确定配置项类型 2023-02-26 22:17:26 +08:00
MobiusT
898d7b40b3 补充群认证同样问题 2023-02-26 20:42:50 +08:00
MobiusT
5a9beb2e5c 修复同意群聊请求出错 2023-02-26 20:28:10 +08:00
HibiKier
a63fda8a0d UPDATE README.MD 2023-02-25 17:42:08 +08:00
HibiKier
0baf043f74
Merge pull request #1275 from unknownsno/main
修复ys查询,尘歌壶背景尺寸与内容不匹配的问题
2023-02-25 16:59:41 +08:00
HibiKier
cbc32a79d2
Merge pull request #1274 from yajiwa/main
update coser
2023-02-25 16:51:28 +08:00
HibiKier
df5a68bcec fix bug 2023-02-25 16:42:09 +08:00
HibiKier
1ca6a67a24
Update __init__.py 2023-02-23 21:01:12 +08:00
unknownsno
f27a537f70 修复ys查询,尘歌壶背景尺寸与内容不匹配的问题 2023-02-22 22:48:24 +08:00
yajiwa
aa76fae386 update coser 2023-02-22 17:51:51 +08:00
HibiKier
d35d53825c Merge branch 'main' of https://github.com/HibiKier/zhenxun_bot 2023-02-21 20:41:38 +08:00
HibiKier
7f743141fb modified: models/level_user.py 2023-02-21 20:40:51 +08:00
HibiKier
fa88a08d8e UPDATE pypoetry.toml 2023-02-21 20:38:19 +08:00
HibiKier
06d0bb1ab2
Update level_user.py 2023-02-21 20:34:45 +08:00
HibiKier
3c0f35b3b7 UPDATE pyproject.toml 2023-02-21 20:32:38 +08:00
HibiKier
396d9c1a65 Merge branch 'main' of https://github.com/HibiKier/zhenxun_bot 2023-02-20 22:14:54 +08:00
HibiKier
e41f3a4ce7 char_history新增_run_script 2023-02-20 22:14:40 +08:00
HibiKier
8f9e4d6e4f
Merge pull request #1270 from MobiusT/main
chat_history部分字段调整为可null
2023-02-20 22:09:25 +08:00
HibiKier
d0764f0865
Update chat_history.py 2023-02-20 22:08:01 +08:00
MobiusT
ab32eedbb9 chat_history部分字段调整为可null
字段group_id、text、plain_text修改为可空
使新建表结构与旧版基本一致
并且修复以下报错
CMD[定时任务] 定时批量添加聊天记录 || 错误 <class 'ValueError'>: group_id is non nullable field, but null was passed
2023-02-20 21:09:19 +08:00
HibiKier
73f858e071
Merge pull request #1266 from yajiwa/main
修复b站订阅添加失败的问题
2023-02-20 19:11:02 +08:00
yajiwa
73b4a1254c fix bilibili_sub bug 2023-02-20 00:04:05 +08:00
HibiKier
fbf82d999f 修改BUG 2023-02-19 17:17:55 +08:00
HibiKier
1f68481256 modified: README.md
modified:   basic_plugins/super_cmd/reload_setting.py
2023-02-19 12:33:22 +08:00
HibiKier
876cfb421a 执行_run_script添加try 2023-02-19 12:29:51 +08:00
HibiKier
c97f1bd750 Merge branch 'main' of https://github.com/HibiKier/zhenxun_bot 2023-02-19 00:08:45 +08:00
HibiKier
e4dec9f0de word_bank执行添加to_me字段 2023-02-19 00:08:26 +08:00
HibiKier
282b4c102f
Update README.md 2023-02-18 23:03:39 +08:00
HibiKier
37e0003810
Update config.py 2023-02-18 23:03:30 +08:00
HibiKier
42683e4f09 Merge branch 'main' of https://github.com/HibiKier/zhenxun_bot 2023-02-18 22:58:56 +08:00
HibiKier
6352ea7c6f update README.md 2023-02-18 22:57:40 +08:00
HibiKier
40c10e672c
Merge pull request #1258 from McElaga/main
细节优化,原神今日素材重写
2023-02-18 22:56:43 +08:00
HibiKier
fef85190c5
Merge branch 'main' into main 2023-02-18 22:56:25 +08:00
HibiKier
eea1be0fc1
Merge pull request #1257 from yajiwa/main
解决开红包经常误触的问题
2023-02-18 22:53:13 +08:00
HibiKier
633862d121
Merge pull request #1263 from CRAZYShimakaze/main
修复插件帮助命令不生效的问题
2023-02-18 22:05:58 +08:00
HibiKier
86ac770971 modified: README.md 2023-02-18 18:48:36 +08:00
HibiKier
7685b95031 modified: basic_plugins/admin_bot_manage/_data_source.py
modified:   basic_plugins/admin_bot_manage/admin_config.py
	modified:   basic_plugins/admin_bot_manage/custom_welcome_message.py
	modified:   basic_plugins/admin_bot_manage/timing_task.py
	modified:   basic_plugins/apscheduler/__init__.py
	modified:   basic_plugins/ban/__init__.py
	modified:   basic_plugins/ban/data_source.py
	modified:   basic_plugins/chat_history/chat_message.py
	modified:   basic_plugins/chat_history/chat_message_handle.py
	modified:   basic_plugins/group_handle/__init__.py
	modified:   basic_plugins/hooks/_utils.py
	modified:   basic_plugins/hooks/ban_hook.py
	modified:   basic_plugins/hooks/chkdsk_hook.py
	modified:   basic_plugins/init_plugin_config/__init__.py
	deleted:    basic_plugins/init_plugin_config/init_group_manager.py
	modified:   basic_plugins/invite_manager/__init__.py
	new file:   basic_plugins/invite_manager/utils.py
	modified:   basic_plugins/nickname.py
	modified:   basic_plugins/plugin_shop/__init__.py
	modified:   basic_plugins/plugin_shop/data_source.py
	modified:   basic_plugins/scripts.py
	modified:   basic_plugins/shop/__init__.py
	modified:   basic_plugins/shop/buy.py
	modified:   basic_plugins/shop/gold.py
	modified:   basic_plugins/shop/my_props/__init__.py
	deleted:    basic_plugins/shop/reset_today_gold.py
	modified:   basic_plugins/shop/shop_handle/__init__.py
	modified:   basic_plugins/shop/shop_handle/data_source.py
	modified:   basic_plugins/shop/use/__init__.py
	modified:   basic_plugins/shop/use/data_source.py
	modified:   basic_plugins/super_cmd/__init__.py
	modified:   basic_plugins/super_cmd/bot_friend_group.py
	modified:   basic_plugins/super_cmd/clear_data.py
	modified:   basic_plugins/super_cmd/exec_sql.py
	modified:   basic_plugins/super_cmd/manager_group.py
	modified:   basic_plugins/super_cmd/reload_setting.py
	modified:   basic_plugins/super_cmd/set_admin_permissions.py
	deleted:    basic_plugins/super_cmd/super_task_switch.py
	modified:   basic_plugins/super_cmd/update_friend_group_info.py
	modified:   basic_plugins/super_help/__init__.py
	modified:   basic_plugins/update_info.py
	modified:   configs/config.py
	modified:   configs/utils/__init__.py
	modified:   models/bag_user.py
	modified:   models/ban_user.py
	modified:   models/chat_history.py
	modified:   models/friend_user.py
	modified:   models/goods_info.py
	modified:   models/group_info.py
	modified:   models/group_member_info.py
	modified:   models/level_user.py
	modified:   models/sign_group_user.py
	modified:   models/user_shop_gold_log.py
	modified:   plugins/aconfig/__init__.py
	modified:   plugins/ai/__init__.py
	modified:   plugins/ai/data_source.py
	modified:   plugins/bilibili_sub/__init__.py
	modified:   plugins/bilibili_sub/data_source.py
	modified:   plugins/bilibili_sub/model.py
	modified:   plugins/black_word/__init__.py
	modified:   plugins/black_word/model.py
	modified:   plugins/black_word/utils.py
	modified:   plugins/bt/data_source.py
	modified:   plugins/genshin/almanac/__init__.py
	modified:   plugins/genshin/material_remind/__init__.py
	modified:   plugins/genshin/query_user/_models/__init__.py
	modified:   plugins/genshin/query_user/_utils/__init__.py
	modified:   plugins/genshin/query_user/bind/__init__.py
	modified:   plugins/genshin/query_user/genshin_sign/__init__.py
	modified:   plugins/genshin/query_user/genshin_sign/data_source.py
	modified:   plugins/genshin/query_user/genshin_sign/init_task.py
	modified:   plugins/genshin/query_user/mihoyobbs_sign/__init__.py
	modified:   plugins/genshin/query_user/query_memo/__init__.py
	modified:   plugins/genshin/query_user/query_memo/data_source.py
	modified:   plugins/genshin/query_user/query_role/__init__.py
	modified:   plugins/genshin/query_user/query_role/data_source.py
	modified:   plugins/genshin/query_user/reset_today_query_user_data/__init__.py
	modified:   plugins/genshin/query_user/resin_remind/__init__.py
	modified:   plugins/genshin/query_user/resin_remind/init_task.py
	modified:   plugins/gold_redbag/model.py
	modified:   plugins/image_management/send_image/__init__.py
	modified:   plugins/my_info/__init__.py
	modified:   plugins/open_cases/models/buff_prices.py
	modified:   plugins/open_cases/models/open_cases_user.py
	modified:   plugins/open_cases/open_cases_c.py
	modified:   plugins/open_cases/utils.py
	modified:   plugins/parse_bilibili_json.py
	modified:   plugins/pid_search.py
	modified:   plugins/pix_gallery/__init__.py
	modified:   plugins/pix_gallery/_data_source.py
	modified:   plugins/pix_gallery/_model/omega_pixiv_illusts.py
	modified:   plugins/pix_gallery/_model/pixiv.py
	modified:   plugins/pix_gallery/_model/pixiv_keyword_user.py
	modified:   plugins/pix_gallery/pix_add_keyword.py
	modified:   plugins/pix_gallery/pix_pass_del_keyword.py
	modified:   plugins/pix_gallery/pix_show_info.py
	modified:   plugins/pix_gallery/pix_update.py
	modified:   plugins/pixiv_rank_search/data_source.py
	modified:   plugins/poke/__init__.py
	modified:   plugins/russian/__init__.py
	modified:   plugins/russian/data_source.py
	modified:   plugins/russian/model.py
	modified:   plugins/send_dinggong_voice/__init__.py
	modified:   plugins/send_setu_/_model.py
	modified:   plugins/send_setu_/send_setu/__init__.py
	modified:   plugins/send_setu_/send_setu/data_source.py
	modified:   plugins/send_setu_/update_setu/data_source.py
	modified:   plugins/sign_in/goods_register.py
	modified:   plugins/sign_in/group_user_checkin.py
	modified:   plugins/sign_in/random_event.py
	modified:   plugins/sign_in/utils.py
	modified:   plugins/statistics/_model.py
	modified:   plugins/statistics/statistics_handle.py
	modified:   plugins/statistics/statistics_hook.py
	modified:   plugins/update_picture.py
	modified:   plugins/web_ui/api/request.py
	modified:   plugins/word_bank/_model.py
	deleted:    plugins/word_bank/_old_model.py
	modified:   plugins/word_bank/_rule.py
	modified:   plugins/word_bank/word_handle.py
	modified:   plugins/word_clouds/data_source.py
	modified:   resources/image/sign/sign_res/bar.png
	modified:   resources/image/sign/sign_res/bar_white.png
	modified:   services/db_context.py
	modified:   services/log.py
	modified:   utils/browser.py
	modified:   utils/data_utils.py
	modified:   utils/depends/__init__.py
	modified:   utils/http_utils.py
	modified:   utils/image_utils.py
	modified:   utils/manager/admin_manager.py
	modified:   utils/message_builder.py
	modified:   utils/utils.py
2023-02-18 18:46:54 +08:00
HibiKier
a6105e8a1b modified: .gitignore 2023-02-18 17:51:22 +08:00
CRAZYShimakaze
9feea3ba1d 修复插件帮助命令不生效的问题 2023-02-16 22:59:53 +08:00
McElaga
22f415abfa 重新原神素材 2023-02-09 22:11:28 +08:00
McElaga
c99292d327 重写原神今日素材 2023-02-09 22:07:08 +08:00
McElaga
362ef519b7 细节优化 2023-02-09 21:59:40 +08:00
yajiwa
a053c120c4 update gold_redbag 2023-02-06 02:06:36 +08:00
HibiKier
4d133ed2df
Merge pull request #1249 from noahzark/patch-3
修复B站转发卡片BUG
2023-02-05 17:28:20 +08:00
HibiKier
d2cf18e11d
Merge pull request #1244 from AkashiCoin/patch-1
替换pixiv反向代理地址
2023-02-05 16:37:57 +08:00
Feliciano Long
5ddfd2b5b9
修复B站转发卡片BUG
1. 最新URL `https://b23.tv/nz4tMtX`
返回
```
HTTP/2 301 
date: Tue, 31 Jan 2023 09:43:07 GMT
content-type: text/html; charset=utf-8
content-length: 781
set-cookie: ******; path=/; expires=Mon, 27 Oct 2025 09:43:07 GMT; domain=.bilibili.com
set-cookie: b_nut=1675158187; path=/; expires=Wed, 31 Jan 2024 09:43:07 GMT; domain=.bilibili.com
location: /video/BV1CM4y197A4/?buvid=******
vary: Origin,Accept-Encoding
idc: shjd
x-cache-webcdn: BYPASS from blzone07
```

这时候 url 会变成 `/video/BV1CM4y197A4/` 需要去除末尾的/来提取BVID

2. 某些转发(比如ios客户端)目前QQ小程序的desc为空,需要在prompt里检测
```json
[CQ:json,data={"app":"com.tencent.miniapp_01"&#44;"appID":"100951776"&#44;"bthirdappforward":true&#44;"bthirdappforwardforbackendswitch":true&#44;"config":{"autoSize":0&#44;"ctime":1675159871&#44;"forward":1&#44;"height":0&#44;"token":"d1dda06f69b12d511972e87ec49b2a19"&#44;"type":"normal"&#44;"width":0}&#44;"desc":""&#44;"extra":{"app_type":1&#44;"appid":100951776&#44;"uin":28696786}&#44;"meta":{"detail_1":{"appType":0&#44;"appid":"1109937557"&#44;"desc":"网络中挖到国防光缆vs现实"&#44;"gamePoints":""&#44;"gamePointsUrl":""&#44;"host":{"nick":"Noahzark"&#44;"uin":28696786}&#44;"icon":"http://miniapp.gtimg.cn/public/appicon/432b76be3a548fc128acaa6c1ec90131_200.jpg"&#44;"preview":"https://pic.ugcimg.cn/07cc5adddb5e6ef3cc27326a12b2df17/jpg1"&#44;"qqdocurl":"https://b23.tv/******"&#44;"scene":1036&#44;"shareTemplateData":{}&#44;"shareTemplateId":"8C8E89B49BE609866298ADDFF2DBABA4"&#44;"showLittleTail":""&#44;"title":"哔哩哔哩"&#44;"url":"m.q.qq.com/a/s/f6362a996fd107b3d4dbedce09c17d92"}}&#44;"prompt":"&#91;QQ小程序&#93;哔哩哔哩"&#44;"ver":"1.0.1.42"&#44;"view":"view_8C8E89B49BE609866298ADDFF2DBABA4"}]
```
2023-01-31 18:13:52 +08:00
AkashiCoin
71264bffa1
替换pixiv反向代理地址 2023-01-27 22:45:01 +08:00
HibiKier
f39005f5e1
Update README.md 2023-01-06 17:31:31 +08:00
HibiKier
9454308ba7 允许真寻自身触发命令,提供配置项 self_message:STATUS 2022-12-31 18:54:17 +08:00
HibiKier
51dd622e20 Merge remote-tracking branch 'origin/main' 2022-12-31 18:10:58 +08:00
HibiKier
05de55cc6b 原神黄历改为PIL 2022-12-31 18:10:48 +08:00
HibiKier
db441c8406
Add files via upload 2022-12-31 17:16:54 +08:00
HibiKier
295c535002
Add files via upload 2022-12-31 17:16:28 +08:00
HibiKier
b0606feff3 原神黄历改为PIL 2022-12-31 17:15:14 +08:00
HibiKier
2070014021 修复词条在某些回答下出错 2022-12-31 14:59:56 +08:00
HibiKier
def53aa22e
Merge pull request #1226 from newton-miku/main
修复epic报错,优化简介
2022-12-31 14:15:05 +08:00
newton_miku
a3d10385a0
修复epic报错,优化简介
1.修复了因报错UnboundLocalError: local variable 'game_desp' referenced before assignment而导致的发送失败
2.修复因简介过长导致的win版QQ在群聊中无法查看发送的合并转发消息的问题(疑似因为单条消息过长?测试时安卓QQ无此异常)(当存在简短介绍时,使用简短介绍)
2022-12-31 03:30:43 +08:00
HibiKier
cb7527a44b UPDATE UPDATE_INFO 2022-12-27 12:39:36 +08:00
HibiKier
32e420efbb UPDATE README.md 2022-12-27 11:32:40 +08:00
HibiKier
6db9bef115 添加权限检查依赖注入 2022-12-27 11:31:34 +08:00
HibiKier
a0b440efcd UPDATE README.md 2022-12-26 22:41:11 +08:00
HibiKier
d2bb7ae493
Merge pull request #1221 from newton-miku/main
修复epic获取到的简介不是中文的bug
2022-12-26 22:30:36 +08:00
HibiKier
b4e213518b x 2022-12-26 19:11:52 +08:00
HibiKier
e3b0da4717 Merge remote-tracking branch 'origin/main' 2022-12-26 19:00:54 +08:00
HibiKier
155de5a032 UPDATE README.md 2022-12-26 19:00:35 +08:00
HibiKier
57e166940d
Add files via upload 2022-12-26 18:59:01 +08:00
HibiKier
721efb79fd
Delete 3238573864-836268675-E2FFBB2AC143EAF4DDDF150438508721.png 2022-12-26 18:56:48 +08:00
HibiKier
5338342208
Add files via upload 2022-12-26 18:56:30 +08:00
HibiKier
c49ef3052f 提供全局被动控制 2022-12-26 18:40:34 +08:00
HibiKier
802f4df2ce 优化gamedraw插件 2022-12-26 01:30:56 +08:00
newton_miku
1edcee9ce3
修复epic获取到的简介不是中文的bug
因为epic的api获取免费游戏时简介始终是英文,故更换为使用游戏销售页面的简介
2022-12-25 14:33:40 +08:00
HibiKier
3acd7d7d41 修复群管理员权限检测会阻挡超级用户权限 2022-12-24 18:57:56 +08:00
HibiKier
83dc29a562 更新依赖 2022-12-24 01:29:21 +08:00
HibiKier
b25b9ca928 优化管理员帮助超级用户帮助图片,重新移植gamedraw,修复pil帮助私聊时无法生成 2022-12-24 00:16:17 +08:00
HibiKier
0dc11b7edb 修复查看插件仓库当已安装插件版本不一致时出错 2022-12-17 13:41:37 +08:00
HibiKier
9b477e2eb8 修复自定义群欢迎消息无法使用 2022-12-15 22:43:58 +08:00
HibiKier
272f6726ea 更新HTML菜单文件 2022-12-15 19:03:17 +08:00
HibiKier
181717001a Merge remote-tracking branch 'origin/main' 2022-12-15 18:14:39 +08:00
HibiKier
43b654285f
Merge pull request #1214 from LambdaYH/patch-5
Update zhenxun_menu.html
2022-12-15 18:10:35 +08:00
Cinte
50e7d5036e
Update zhenxun_menu.html
https://github.com/HibiKier/zhenxun_bot/issues/1206
2022-12-14 22:51:07 +08:00
HibiKier
b6b2f2e2a6 修复.unban 2022-12-13 23:01:12 +08:00
HibiKier
b9d08855d0
Add files via upload 2022-12-12 22:55:15 +08:00
HibiKier
93deb2b1be Merge remote-tracking branch 'origin/main' 2022-12-12 22:53:21 +08:00
HibiKier
b3871d550c 修复HTML帮助私聊无法生成, 修改HTML帮助禁用提示文本错误 2022-12-12 22:52:56 +08:00
HibiKier
ab8e87899c
Add files via upload 2022-12-11 23:39:20 +08:00
HibiKier
9d6f44849a UPDATE path_config 2022-12-11 23:34:54 +08:00
HibiKier
380588c11d 帮助新增HTML生成(新布局),添加配置TYPE切换 2022-12-11 23:33:16 +08:00
HibiKier
5810c28294 修复加入新群聊时初始化功能开关错误 2022-12-11 02:49:21 +08:00
HibiKier
c039015e8f 添加单例注解 2022-12-11 01:53:59 +08:00
HibiKier
0dda0a228a test 2022-12-11 01:33:31 +08:00
HibiKier
940514b16b 更正私聊时功能管理回复错误 2022-12-11 01:30:23 +08:00
HibiKier
8adff43113 添加统计表 2022-12-11 01:11:09 +08:00
HibiKier
b59699dabe 词条问题支持真寻的昵称开头与at真寻开头并优化回复 2022-12-11 00:10:07 +08:00
HibiKier
f496ce4861 重写帮助,删除 详细帮助 命令 2022-12-10 19:59:16 +08:00
HibiKier
5fb4eccd0f 优化管理代码 2022-12-04 16:47:14 +08:00
HibiKier
31e4cadecb 优化代码 2022-12-04 16:46:33 +08:00
HibiKier
994484f3b0 修复web_ui群组无法获取,修复web_ui修改插件数据时cmd格式错误 2022-11-30 23:40:55 +08:00
HibiKier
7b3a3451f6
Merge pull request #1188 from Nova-Noir/Hibikier-main
🐛 Fix a bug in open_cases to get vanilla knives' prices
2022-11-28 20:14:57 +08:00
HibiKier
14d075bc17 修复管理员插件加载路径错误 2022-11-24 19:16:31 +08:00
HibiKier
75369411b3 修复管理员插件加载路径错误 2022-11-24 19:16:04 +08:00
HibiKier
d97542a3fd 修复webui插件无法获取修改 2022-11-23 23:11:36 +08:00
Nova-Noir
2f70fcd92a 🐛 Fix a bug in open_cases to get vanilla knives' prices 2022-11-23 15:33:49 +08:00
HibiKier
182f93d618
Merge pull request #1185 from LambdaYH/patch-3
fix switch_rule
2022-11-22 20:14:10 +08:00
Cinte
34e28384dd
check_plugin_status 中判断是否加载失败的逻辑似乎反了 2022-11-22 11:31:42 +08:00
Cinte
f6f095f949
去掉没有用处还会引发异常的一行 2022-11-22 11:23:29 +08:00
Cinte
08609bdf53
fix switch_rule 2022-11-22 11:06:48 +08:00
HibiKier
5de5667f80 更新manage models 2022-11-21 22:20:19 +08:00
HibiKier
69b3ba47b3 update README.md 2022-11-21 20:52:07 +08:00
HibiKier
11c1d0b827
Update __version__ 2022-11-21 20:51:17 +08:00
HibiKier
8f97880754 update README.md 2022-11-21 20:50:21 +08:00
HibiKier
ff435bea95
Merge pull request #1180 from PercyDan54/patch-1
修复pid搜图
2022-11-21 20:49:49 +08:00
HibiKier
cd66b7f5b8 优化manager代码 2022-11-21 20:43:41 +08:00
PercyDan
a60286c328
Fix pid search 2022-11-20 16:52:51 +08:00
HibiKier
49e38862af 修改优化帮助图片生成逻辑 2022-11-19 01:05:08 +08:00
HibiKier
75b8cc0766
Merge pull request #1176 from yajiwa/main
poetry添加适配器依赖,更新支持py3.10
2022-11-17 11:31:51 +08:00
yajiwa
a8e2f00e16 poetry flie add adapter 2022-11-15 22:04:13 +08:00
HibiKier
d099a85c59 限制帮助图片最小宽度 2022-11-13 04:46:08 +08:00
HibiKier
55b2a86397 使用道具可以附带额外信息供函数使用 2022-11-13 04:12:56 +08:00
HibiKier
d39dfbe62f 更新天气api 2022-11-13 02:05:34 +08:00
HibiKier
a41e62cefe update README.md 2022-11-13 00:37:22 +08:00
HibiKier
c981562f90
Merge pull request #1168 from wse320/main
更新yiqing插件数据显示
2022-11-11 23:11:50 +08:00
HibiKier
e6cd57cc26
Merge pull request #1162 from DDS-DS/main
fix: B站直播订阅的相关问题(issues 1158)
2022-11-10 19:52:46 +08:00
wse320
074152ae14
Update data_source.py 2022-11-07 20:24:49 +08:00
DDS-DS
91ca7b40b8 补充代码 2022-11-05 02:17:04 +08:00
dingshan
5321c8d9c0 fix:
1、兼容B站下播的两种状态
2、更改订阅入库逻辑,加入订阅类型
2022-10-31 15:47:40 +08:00
HibiKier
b7f753ebb6 商店简介动态行数,根据文字长度自动换行 2022-10-30 18:28:10 +08:00
HibiKier
c5e8ba3cdf
Merge pull request #1154 from guohu7777/main
把某人漏掉的给复制上去
2022-10-28 18:29:38 +08:00
HibiKier
658ef5309b
Merge pull request #1155 from Lycoiref/main
为exec指令进行了SELECT语句适配,添加了查看所有表指令
2022-10-28 18:29:27 +08:00
HDU_Nbsp
823f642225 为exec指令进行了SELECT语句适配,添加了查看所有表指令 2022-10-25 03:27:26 +08:00
guohu7777
57ea6bad07
把某人漏掉的给复制上去
1111
2022-10-24 22:13:25 +08:00
HibiKier
109c645e68 复读修改回图片下载 2022-10-23 11:49:15 +08:00
HibiKier
5ef0ce5aa8 Merge remote-tracking branch 'origin/main' 2022-10-23 00:34:03 +08:00
HibiKier
f6d9e083b8
Merge pull request #1151 from DDS-DS/main
update bt url
2022-10-22 18:26:59 +08:00
HibiKier
499517e882 更新依赖注入 2022-10-22 18:12:55 +08:00
dingshan
648db532bb update bt url 2022-10-21 10:07:55 +08:00
HibiKier
1ce4537605 upadte README.md 2022-10-16 22:54:34 +08:00
HibiKier
701812ed9d upadte README.md 2022-10-16 22:39:57 +08:00
HibiKier
8d9e81827b 修改版本 2022-10-16 22:38:12 +08:00
HibiKier
f51a2816b4 修改依赖注入方法 2022-10-16 22:37:58 +08:00
HibiKier
3d4a7950c5 修改依赖注入方法 2022-10-16 22:36:13 +08:00
HibiKier
ba6668f144 修改商店道具icon可以为空 2022-10-16 11:46:56 +08:00
HibiKier
e1f7a77d15 修正 2022-10-16 00:21:42 +08:00
HibiKier
64e2c512d3 Merge remote-tracking branch 'origin/main' 2022-10-16 00:21:30 +08:00
HibiKier
6082e68a1f
Delete Generate.yml 2022-10-16 00:21:00 +08:00
HibiKier
f135d48e55 Merge remote-tracking branch 'origin/main' 2022-10-16 00:20:24 +08:00
HibiKier
751fc8fdb4 修复我的道具仅有被动或主动道具时图片显示错误 2022-10-16 00:19:55 +08:00
github-actions[bot]
df73e79ee4 Auto generate poetry.lock 2022-10-15 15:10:25 +00:00
HibiKier
fa6cfdb609 修正 2022-10-15 23:07:26 +08:00
HibiKier
b057a05520 更多的依赖注入 2022-10-15 22:13:41 +08:00
HibiKier
cb0938721c 新增用户使用道具,花费金币及用途记录表以及更细致的金币使用依赖注入 2022-10-15 21:21:23 +08:00
HibiKier
4f3f8de734 错误捕获 2022-10-15 20:50:02 +08:00
HibiKier
5ba303aada
Merge pull request #1139 from yuzb1beiz/main
色图插件p站反向代理失效
2022-10-15 20:42:49 +08:00
yusean
bd42fefe4e
Merge branch 'HibiKier:main' into main 2022-10-15 20:15:29 +08:00
sean
d24c081973 修复色图插件p站反向代理失效问题 2022-10-15 20:00:06 +08:00
HibiKier
1b9eddd905
Add files via upload 2022-10-15 19:53:11 +08:00
HibiKier
0bfe398dc4 更新至nonebot-rc1 2022-10-15 19:49:53 +08:00
HibiKier
e9216a472f
Add files via upload 2022-10-13 19:36:54 +08:00
HibiKier
8b93ec0df6
Delete poetry.lock 2022-10-13 19:36:40 +08:00
HibiKier
7497706a0d
Merge pull request #1124 from DDS-DS/main
修复碧蓝档案角色获取问题,换源
2022-10-09 19:14:35 +08:00
dingshan
6e41cb0630 修复碧蓝档案角色获取问题,换源 2022-10-09 16:08:55 +08:00
HibiKier
62d99e7e90 Merge remote-tracking branch 'origin/main' 2022-10-07 22:07:51 +08:00
HibiKier
43cddb3580 关闭功能与被动时不再区分大小写 2022-10-07 22:07:36 +08:00
github-actions[bot]
c9c1beda75 Auto generate poetry.lock 2022-10-07 13:00:26 +00:00
HibiKier
3ee9ae5fb8
Merge pull request #1119 from SK-415/main
修复 B 站请求返回 -401 错误
2022-10-07 20:57:33 +08:00
github-actions[bot]
ea6344fae1 Auto generate poetry.lock 2022-10-02 22:53:37 +00:00
SK
6f54e91f5c ⬆️ Bump bilireq to v0.2.3 2022-10-02 22:50:00 +00:00
HibiKier
27fb3aaa19
Merge pull request #1118 from guohu7777/main
修改重置开箱的使用权限
2022-09-29 18:01:39 +08:00
guohu7777
86d736745d
修改重置开箱的使用权限
禁止普通群员使用重置每日开箱次数指令
2022-09-28 01:23:42 +08:00
HibiKier
821fe21c2b
Merge pull request #1117 from yajiwa/main
更新b站转发解析
2022-09-27 19:31:11 +08:00
yajiwa
7f4aa518dc update parse_bilibili 2022-09-27 03:11:57 +08:00
HibiKier
8cf589e433 UPDATE README.md 2022-09-25 21:43:23 +08:00
HibiKier
105a29cd70
Merge pull request #1114 from DDS-DS/main
fix: 重载赛马娘卡池失败
2022-09-24 17:50:52 +08:00
HibiKier
cb6a5e81e7
Merge pull request #1112 from yajiwa/main
修复b站订阅
2022-09-24 17:49:57 +08:00
dingshan
9c073383ad fix: 重载赛马娘卡池失败 2022-09-23 18:27:04 +08:00
github-actions[bot]
5e0756825d Auto generate poetry.lock 2022-09-21 19:39:34 +00:00
yajiwa
933523ae6d fix bilibili_sub 2022-09-22 03:35:34 +08:00
HibiKier
ed6b05605c
Update map.py 2022-09-21 21:59:19 +08:00
HibiKier
71a9c34620
Merge pull request #1108 from yajiwa/main
修复原神资源查询没有图片
2022-09-21 21:57:55 +08:00
HibiKier
e29f2cb920
Update query_resource.py 2022-09-21 21:57:25 +08:00
yajiwa
d47dd88d6c fix genshin path 2022-09-21 01:13:37 +08:00
github-actions[bot]
fb34bbce7a Auto generate poetry.lock 2022-09-20 15:36:00 +00:00
HibiKier
100236da83 修复csgo每日开箱可以多开一次 2022-09-19 22:50:56 +08:00
HibiKier
a45a3002d5
Merge pull request #1097 from LambdaYH/main
更换bilibili_sub获取用户昵称用的API&尝试修了一下get_video()
2022-09-19 22:34:01 +08:00
HibiKier
9214a4c978
Merge pull request #1098 from yajiwa/main
update check_zhenxun
2022-09-18 15:07:52 +08:00
HibiKier
70761dc222
Merge pull request #1096 from SK-415/main
修复 bilireq 版本过低导致 B 站视频解析错误
2022-09-18 15:05:29 +08:00
Cinte
32e8136f71
fix get_video()
目前测试了下,至少-401的情况少了很多
2022-09-17 18:26:49 +08:00
yajiwa
8b20d99b2c update check_zhenxun 2022-09-17 13:01:50 +08:00
Cinte
1174b5cc7f
x 2022-09-17 11:23:55 +08:00
Cinte
ec448cfdfb replace get_user_info with get_user_card 2022-09-17 10:58:58 +08:00
SK
f3e44b1baf chore(deps): update bilireq 2022-09-16 23:24:40 +00:00
HibiKier
0ea740aa7c
Update __version__ 2022-09-16 19:35:33 +08:00
HibiKier
5f118471cb 修复一些问题 2022-09-16 19:29:05 +08:00
HibiKier
504f78dd49
Merge pull request #1090 from NumberSir/main
fix: bilibili_sub, azur_draw_card
2022-09-16 19:14:19 +08:00
Number_Sir
72723c7d1f 修复碧蓝航线抽卡错误 2022-09-16 12:55:22 +08:00
Number_Sir
6a74053853 bilibili_sub更新检查失败时改为logger通知,不在群里发消息 2022-09-16 12:43:22 +08:00
HibiKier
af0b4987a4
Merge pull request #1067 from DDS-DS/main
fix:bt url打开失败
2022-09-10 00:20:44 +08:00
HibiKier
775140cf79 自定义群欢迎消息参数不完全时提示报错 2022-09-09 22:41:39 +08:00
HibiKier
6a8a796add 添加插件数据初始化判断 2022-09-08 20:13:26 +08:00
DDS-DS
8e4bda3760 fix bt url打开失败 2022-09-08 01:35:41 +08:00
HibiKier
a36e8145a8 旧词条提供图片迁移 2022-09-04 22:05:56 +08:00
HibiKier
3cbd899daa 修复原神资源查询地图api数据变更导致更新的地图不完全 2022-09-03 18:17:42 +08:00
HibiKier
30f356a2c7 Merge remote-tracking branch 'origin/main' 2022-09-03 17:30:21 +08:00
HibiKier
1138a115ce B站订阅在群里中任意群管理员可以统一管理 2022-09-03 17:30:03 +08:00
HibiKier
c397da75e7
Merge pull request #1033 from q56535/main
av号覆盖全面,且修复av号链接
2022-09-03 17:14:22 +08:00
HibiKier
1d141c9313
Merge pull request #1059 from unknownsno/main
fix bug
2022-09-03 16:56:49 +08:00
q56535
a4cc365af8
Merge branch 'HibiKier:main' into main 2022-09-03 16:44:57 +08:00
HibiKier
4e551bec0d 修复词条含有CQ回答的模糊匹配无法被解析 2022-09-03 16:16:33 +08:00
unknwonsno
e03086062d fix bug 2022-09-03 14:43:13 +08:00
HibiKier
270a5a5e20
Merge pull request #1053 from unknownsno/main
原神玩家查询增加须弥地区
2022-09-03 14:24:18 +08:00
unknwonsno
bda9133ed6 原神玩家查询增加须弥地区 2022-08-31 22:22:00 +08:00
HibiKier
749f475f2c UPDATE README.md 2022-08-27 18:25:30 +08:00
HibiKier
e38394948c
Merge pull request #1044 from zyj3421/main
修复签到积分双倍后,日志记录获得积分变4倍问题
2022-08-27 18:22:35 +08:00
zyj2134
51fc4cbb6a 修复签到积分双倍后,日志记录获得积分变4倍问题 2022-08-26 22:49:51 +08:00
zyj2134
9a976cda37 Merge remote-tracking branch 'origin/main' 2022-08-26 22:39:48 +08:00
HibiKier
e42521f0a3 修复词条关键词"问"前空格问题 2022-08-26 19:39:23 +08:00
HibiKier
0756d39ac5 修复群管理员无法添加词条 2022-08-26 19:26:09 +08:00
zyj2134
4595bdcee4 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	README.md
#	plugins/bilibili_sub/__init__.py
2022-08-25 23:00:49 +08:00
HibiKier
38160065cc UPDATE README.md 2022-08-23 23:02:06 +08:00
HibiKier
3d04f013cd
Merge pull request #1032 from LambdaYH/p1
修了下模糊匹配 issue#1026
2022-08-23 20:21:25 +08:00
q56535
8e1a416be3
av号覆盖全面 2022-08-23 13:43:43 +08:00
LambdaYH
a98bc42f1a fix https://github.com/HibiKier/zhenxun_bot/issues/1026 2022-08-23 13:16:14 +08:00
HibiKier
6c93769838 UPDATE README.md 2022-08-22 22:51:36 +08:00
HibiKier
d2dccfebc5 取消配置替换定时任务,统一存储 2022-08-22 22:49:35 +08:00
HibiKier
82fe59e469 修复首次安装时词条旧表出错 2022-08-22 20:59:08 +08:00
HibiKier
afc05e1731 Merge remote-tracking branch 'origin/main' 2022-08-22 20:48:57 +08:00
HibiKier
0206b0a522 UPDATE README.md 2022-08-22 20:47:32 +08:00
HibiKier
0e1e5a5ebe
Merge pull request #1012 from LambdaYH/patch-4
修复词库问答几个问题
2022-08-22 20:45:31 +08:00
HibiKier
9ad088ed6a
Merge pull request #1010 from CRAZYShimakaze/main
修正尘歌壶和质变仪图片获取地址
2022-08-22 20:43:22 +08:00
HibiKier
34da04bba5
Merge pull request #1014 from xiayingLIULI/main
对米游社cookie进行判断,整合米游社签到信息
2022-08-22 20:41:32 +08:00
HibiKier
09ce812faf
Update __init__.py 2022-08-22 20:39:03 +08:00
xiayingLIULI
1dc8cb2a98
修复米游社签到在无用户cookie的情况下执行的错误 2022-08-22 13:45:04 +08:00
xiayingLIULI
e73c509823
修复米游社签到在无用户cookie的情况下执行的错误 2022-08-22 13:33:49 +08:00
Cinte
e70a85400f
查看词条的id范围判断少了个等号 2022-08-22 12:56:35 +08:00
Cinte
f7aecf8eed
Update word_handle.py 2022-08-22 12:37:06 +08:00
Cinte
cc2645aa9d
Update word_handle.py 2022-08-22 12:34:21 +08:00
xiayingLIULI
52d23c4a8d
修复能在群聊中查看我的cookie 2022-08-22 11:44:21 +08:00
Cinte
1e57ddb9ee 处理at后自动接空格的情况,problem中允许单空白字符号 & 修复二次元触发 2022-08-22 11:14:04 +08:00
Cinte
7ae883d921 使用check构造的problem而不在message_handle中重新构造 2022-08-22 10:14:59 +08:00
Cinte
27e97214bd 仅仅是检查图片hash就将图片下载到磁盘是否有些浪费io,于是改成了内存中直接计算 2022-08-22 09:49:33 +08:00
LambdaYH
6321a9e7e0 使用gino提供的方法,避免构建sql字符串时出现非法查询语句 2022-08-22 00:49:30 +08:00
xiayingLIULI
a9eadca46c
对米游社cookie进行判断,整合米游社签到信息 2022-08-22 00:42:00 +08:00
xiayingLIULI
76bef8a725
对米游社cookie进行判断,整合米游社签到信息 2022-08-22 00:40:51 +08:00
LambdaYH
308b76dc7d _rule中使用messagesegment中未转义的字符串,而添加词条时使用了转义后的字符串,导致二者不一致 2022-08-22 00:38:25 +08:00
LambdaYH
31d4d29f3e 修复匹配时候忽视了word_type的约束 2022-08-21 23:47:21 +08:00
LambdaYH
016a7e87ea Merge branch 'HibiKier-main' into patch-4 2022-08-21 23:46:46 +08:00
LambdaYH
4ce88c7bfc merge 2022-08-21 23:46:38 +08:00
LambdaYH
f570bffcf7 修复匹配时候忽视了word_type的约束 2022-08-21 23:42:46 +08:00
LambdaYH
3bb9aaf637 添加正则词条前先检查正则有效性 & 正则词条先进行转义,不然符号都乱了 2022-08-21 23:21:34 +08:00
LambdaYH
cf7a64c934 fix: 问答为[at + 文本]的情况时无法正常添加 2022-08-21 22:24:06 +08:00
LambdaYH
c466603193 Fix at messages with suffixed text 2022-08-21 21:58:31 +08:00
CRAZY
bc53f329a9
修正尘歌壶和质变仪图片获取地址 2022-08-21 20:33:06 +08:00
CRAZY
4a5cc5153f
修正质变仪图片获取地址 2022-08-21 20:11:44 +08:00
HibiKier
8697670fe1 UPDATE README.md 2022-08-21 18:43:58 +08:00
HibiKier
64d8543af9 UPDATE __version__ 2022-08-21 18:42:16 +08:00
HibiKier
482cc242cb UPDATE README.md 2022-08-21 18:41:13 +08:00
HibiKier
2051e8183c 词条模糊匹配使用contains方法 2022-08-21 18:32:24 +08:00
HibiKier
d183903917 update README.md 2022-08-21 18:15:18 +08:00
HibiKier
5c695899a1 将配置替换加入单次定时任务,提高启动速度 2022-08-21 18:09:31 +08:00
HibiKier
708e912069
Merge pull request #1008 from LambdaYH/patch-4
fix: WordBank.check()
2022-08-21 16:57:22 +08:00
Cinte
db1f4b2b52
fix: WordBank.check() 2022-08-21 16:54:28 +08:00
HibiKier
1508782f49 提供全局字典GDict,适配omega 13w张图的数据结构表 2022-08-21 16:47:50 +08:00
HibiKier
445b830683 开箱提供重置开箱命令 2022-08-21 14:10:49 +08:00
HibiKier
1a17e88142 b站订阅直播订阅支持短号 2022-08-21 13:57:48 +08:00
HibiKier
c0ec2e7856 b站订阅直播订阅支持短号 2022-08-21 13:57:17 +08:00
HibiKier
9e962bd0d1 修正词条加载路径 2022-08-21 13:44:06 +08:00
HibiKier
7efcff13bb backup 2022-08-21 13:37:03 +08:00
zyj2134
e70d0df949 Merge remote-tracking branch 'origin/main' 2022-08-19 23:49:16 +08:00
HibiKier
fcaa469edd
Merge pull request #996 from shinianj/patch-1
Update README.md
2022-08-16 08:46:10 +08:00
shinianj
51508182ef
Update README.md 2022-08-16 00:38:14 +08:00
HibiKier
27e78c1626 update README.md 2022-08-14 22:11:36 +08:00
HibiKier
0b4d37a0b6 修复订阅主播时动态获取的id是直播间id 2022-08-14 21:31:57 +08:00
HibiKier
ddbebba6f1 修复epic未获取时间时出错 2022-08-14 21:18:29 +08:00
zyj2134
7f296348e4 Merge remote-tracking branch 'origin/main' 2022-08-09 22:20:32 +08:00
HibiKier
ca78e32d97
Update README.md 2022-08-08 04:23:05 +08:00
HibiKier
4efc561f4d
Merge pull request #969 from DDS-DS/main
修复赛马娘重载卡池失败的问题
2022-08-08 04:22:24 +08:00
HibiKier
40fed798a1
Update data_source.py 2022-08-07 01:10:19 +08:00
HibiKier
0876afc08c
Update README.md 2022-08-06 20:40:10 +08:00
HibiKier
ba4c4d06ff
Merge pull request #971 from HDU-Nbsp/main
修复了原神自动签到返回invalid request的问题,新增查看我的cookie命令
2022-08-06 20:39:30 +08:00
HibiKier
f64c30af48
Update __init__.py 2022-08-06 20:39:16 +08:00
HDU_Nbsp
bb0cea2dd3 修复了原神自动签到返回invalid request的问题,新增查看我的cookie命令 2022-08-05 22:32:15 +08:00
dingshan
3c120ce602 增加备注说明 2022-08-05 15:49:21 +08:00
dingshan
6151dfb161 修复赛马娘重载卡池失败的问题 2022-08-05 15:42:53 +08:00
dingshan
f05d4ec931 修复赛马娘重载卡池失败的问题 2022-08-05 15:35:45 +08:00
HibiKier
e16afc3fc2 update README.md 2022-08-03 20:26:41 +08:00
HibiKier
1b8753fead
Merge pull request #961 from Gaomengkai/main
修复 bili动态链接在投稿视频时URL和分割线连在一起
2022-08-03 20:20:29 +08:00
HibiKier
ba960d1ced
Merge pull request #957 from monsterxcn/patch-1
更新 Epic 免费游戏商城链接拼接规则
2022-08-03 20:14:13 +08:00
Merky Gao
41b60b6152
修复 bili动态链接在投稿视频时URL和分割线连在一起
比如up发布一条动态后,qq显示的链接事[https://t.bilibili.com/123456789012345678-------------],会把后面的分隔符算在链接里边,导致直接点开后404(*^_^*). だから……お願い!
2022-08-01 11:11:34 +08:00
github-actions[bot]
70ddce713c Auto generate poetry.lock 2022-08-01 00:23:45 +00:00
HibiKier
e15622748b
Update pyproject.toml 2022-08-01 08:21:30 +08:00
HibiKier
96687021ff
Merge pull request #958 from yajiwa/main
Update poetry.lock
2022-08-01 08:21:12 +08:00
yajiwa
3c0a7ef510 Update poetry.lock 2022-07-31 22:22:54 +08:00
HibiKier
4d84c9fb3f 修复metadata中version判断 2022-07-31 18:00:44 +08:00
HibiKier
aa35a16610 修复pix无图时不会提醒而是出错 2022-07-31 17:48:54 +08:00
HibiKier
a380fcb680 修复webui元祖类型无法正确转换类型 2022-07-31 17:45:14 +08:00
Monst.x
e544afe475
更新 Epic 免费游戏商城链接拼接规则 2022-07-31 17:41:10 +08:00
HibiKier
c089388323 适配metadata 2022-07-31 17:30:29 +08:00
HibiKier
e97a043031
Merge pull request #953 from tanzhi77/main
发言记录统计添加日消息统计
2022-07-30 10:55:50 +08:00
HibiKier
d1b6dfe577
Merge pull request #951 from yajiwa/main
替换了cos和bt的url
2022-07-30 10:53:49 +08:00
HibiKier
9189fd411e
Update __init__.py 2022-07-29 19:50:21 +08:00
弹指
432eba80a9 发言记录统计添加日消息统计 2022-07-29 19:08:16 +08:00
yajiwa
db39612c54 update bt 2022-07-28 16:49:28 +08:00
yajiwa
5794c82a2d update coser 2022-07-28 16:48:45 +08:00
yajiwa
acf875a886
Merge branch 'HibiKier:main' into main 2022-07-28 14:42:47 +08:00
HibiKier
79185bd90f
Update README.md 2022-07-26 18:31:30 +08:00
HibiKier
d695c30988
Update __version__ 2022-07-26 18:30:09 +08:00
zyj2134
a1308fbdc9 Merge remote-tracking branch 'origin/main' 2022-07-24 22:16:51 +08:00
yajiwa
e4f2b761d6
Merge branch 'HibiKier:main' into main 2022-07-24 18:51:09 +08:00
HibiKier
6ff6009a70 b站订阅up动态提供直链 2022-07-24 02:54:51 +08:00
HibiKier
dadeb4006e
Update __init__.py 2022-07-24 01:19:47 +08:00
yajiwa
ee0ff762e5
Merge branch 'HibiKier:main' into main 2022-07-23 18:02:24 +08:00
HibiKier
1f01ba1d10 优化开箱次数判断 2022-07-23 14:09:17 +08:00
HibiKier
62965fe1df
Merge pull request #928 from Sakuracio/main
update: README.md
2022-07-19 08:36:37 +08:00
MangataAkihi
e29eb4cce5
Update README.md 2022-07-18 19:05:44 +08:00
MangataAkihi
699791e318
Update README.md 2022-07-18 19:03:32 +08:00
zyj2134
946fbbec3c Merge remote-tracking branch 'origin/main' 2022-07-17 15:34:18 +08:00
HibiKier
d2aae0103d fix b23.tv bug 2022-07-16 05:48:00 +08:00
HibiKier
ab06e38b7c update coser 2022-07-16 05:31:56 +08:00
zyj2134
bd531c85b1 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	README.md
2022-07-14 20:44:12 +08:00
HibiKier
8a0ca3c2e5 update README.md 2022-07-13 22:55:54 +08:00
HibiKier
97317ed2c6 update bilibili_sub 2022-07-13 22:54:13 +08:00
HibiKier
cda9aae8a3
Update README.md 2022-07-07 22:02:33 +08:00
HibiKier
a33e785043
Merge pull request #891 from yajiwa/main
更新微博热搜
2022-07-07 22:01:53 +08:00
yajiwa
833e266a1f update wbtop 2022-07-06 04:59:54 +08:00
HibiKier
1bb9b2cb3f fix setu 2022-07-04 20:21:35 +08:00
HibiKier
7ba129b3bf update README.md 2022-07-04 20:03:38 +08:00
HibiKier
1e2c9ca28a
Merge pull request #886 from yajiwa/main
修复B站订阅UP动态
2022-07-04 19:34:33 +08:00
yajiwa
c6f37fd05f update bilibili_sub 2022-07-04 15:45:15 +08:00
HibiKier
b6b569fff9
Update goods_info.py 2022-07-04 13:13:06 +08:00
HibiKier
ac57c016a6
Update goods_info.py 2022-07-04 13:09:16 +08:00
HibiKier
28fdd9de95
Update __version__ 2022-07-04 12:29:33 +08:00
HibiKier
1ec946aaa9
Update README.md 2022-07-04 08:40:44 +08:00
HibiKier
d6110e3c6f update bilibili_sub 2022-07-03 22:00:49 +08:00
HibiKier
4c5302bd4c fix shop update goods 2022-07-03 16:47:19 +08:00
HibiKier
21ee3d5c3e update send_setu 2022-07-03 16:33:14 +08:00
HibiKier
e5c036cee8 update shop image 2022-07-03 13:55:26 +08:00
HibiKier
6f82488af7
Merge pull request #879 from VirtualTowel/main
修复图库内图片无法被连续删除的问题
2022-07-03 13:53:49 +08:00
VirtualTowel
57a7903c63 修复图库内图片无法被连续删除的问题 2022-07-01 20:12:39 +08:00
HibiKier
27b89b333a
Merge pull request #866 from Excalibur5100/main
修复色图插件api修改无法搜索图片
2022-06-28 20:48:33 +08:00
Excalibur5100
ce2c4e7492
修复色图插件最近加tag参数后搜不到图的问题
插件所用API更新,最大数量num改为20
https://api.lolicon.app/#/setu
2022-06-28 19:48:59 +08:00
HibiKier
cad98a2a33
Update goods_info.py 2022-06-26 22:23:19 +08:00
HibiKier
40da48e685 update models 2022-06-26 19:29:51 +08:00
HibiKier
1c393e5c3e update shop daily_limit 2022-06-26 03:08:23 +08:00
HibiKier
667c143c74 update pix 2022-06-26 01:37:47 +08:00
HibiKier
bc089c18ce update bt 2022-06-26 01:26:14 +08:00
HibiKier
24b730c0e2
Merge pull request #847 from po-lan/main
对WSL虚拟机 代理 添加写法
2022-06-24 20:59:28 +08:00
po-lan
9ed9e9b973
对WSL虚拟机 代理 添加写法 2022-06-23 17:57:47 +08:00
HibiKier
5b0027aa3d
Update README.md 2022-06-22 22:49:26 +08:00
HibiKier
810c5e4e8b
Update README.md 2022-06-21 21:59:41 +08:00
HibiKier
907534958f
Merge pull request #840 from yajiwa/main
update parse_bilibili
2022-06-21 21:59:23 +08:00
HibiKier
f08a18ab07
Update data_class.py 2022-06-21 21:01:14 +08:00
github-actions[bot]
40549d5ca7 Auto generate poetry.lock 2022-06-21 00:56:57 +00:00
yajiwa
3e67edc506 update pyproject.toml 2022-06-21 08:53:49 +08:00
yajiwa
9c56a81f65 update parse_bilibili 2022-06-21 08:50:05 +08:00
HibiKier
a9a636c9ae
Update plugins2settings_manager.py 2022-06-20 22:31:57 +08:00
HibiKier
98374dcd74
Update README.md 2022-06-20 22:07:48 +08:00
HibiKier
10ca6eec91 update webui 2022-06-20 21:54:10 +08:00
HibiKier
216d32cf21
Update README.md 2022-06-19 23:16:11 +08:00
HibiKier
248fae4fe6
Update __version__ 2022-06-19 23:15:40 +08:00
HibiKier
b479b6839d
Update README.md 2022-06-19 22:29:44 +08:00
HibiKier
1a4e1e9515
Merge pull request #835 from yajiwa/main
词条优化问题展示,修改含机器人昵称和@逻辑
2022-06-19 22:29:20 +08:00
yajiwa
e5160a4ee8
Merge branch 'HibiKier:main' into main 2022-06-19 17:26:13 +08:00
yajiwa
56ea3964a7 update word_bank 2022-06-19 17:24:50 +08:00
HibiKier
ad73778286 update README.md 2022-06-19 16:55:02 +08:00
HibiKier
3e548f48c8
Merge pull request #828 from McElaga/main
修复原神树脂重复提醒的bug
2022-06-19 16:54:25 +08:00
HibiKier
ae466931fa fix webui 2022-06-19 16:44:37 +08:00
HibiKier
68052b526f update image_utils 2022-06-18 15:23:36 +08:00
HibiKier
903b5b88a7 update image_utils 2022-06-18 15:09:55 +08:00
HibiKier
007823d6b2 update README.md 2022-06-18 15:03:05 +08:00
HibiKier
db5c4fb349
Merge pull request #830 from po-lan/main
我不太会提交单个文件,我就把俄罗斯轮盘的文件 改回去了,再提交的
2022-06-18 15:00:46 +08:00
HibiKier
c37901290a fix nickname 2022-06-18 14:57:54 +08:00
HibiKier
da67f1f6f8 update webui 2022-06-18 14:48:46 +08:00
HibiKier
5172fa69e5 fix web ui 2022-06-18 14:31:44 +08:00
po-lan
dd7280cd0d
恢复 原先的文件 2022-06-18 14:08:59 +08:00
McElaga
0d0f522c88
Merge branch 'HibiKier:main' into main 2022-06-18 09:27:12 +08:00
McElaga
5429e6ed5c Merge branch 'main' of https://github.com/McElaga/zhenxun_bot 2022-06-18 09:15:24 +08:00
McElaga
9db69fa05b 修复一点逻辑小问题 2022-06-18 09:15:19 +08:00
HibiKier
3b8d52bcb5
Update README.md 2022-06-17 18:50:37 +08:00
HibiKier
807f39a336
Update README.md 2022-06-17 18:50:15 +08:00
HibiKier
fea2f30461
Merge pull request #820 from LambdaYH/patch-2
修复wordbank的一些小问题
2022-06-17 18:49:42 +08:00
po-lan
5d97e3f95f
Update __init__.py 2022-06-16 16:15:39 +08:00
po-lan
63e6ca3e99
Update __init__.py 2022-06-16 15:40:46 +08:00
po-lan
b11590ec3c
ban掉被击毙的人一段时间 2022-06-16 15:38:20 +08:00
po-lan
3a43ed6919
如果需要 保存到 config 可以少调用一次 2022-06-16 14:38:41 +08:00
po-lan
15ce9c91fb
Update __init__.py 2022-06-16 14:25:22 +08:00
LambdaYH
0e8d7537d4 fix wordbank 2022-06-16 00:43:32 +08:00
Cinte
1fca0787be
fix: 修复之前更改正则引入的问题 2022-06-15 23:16:39 +08:00
HibiKier
af30285c00
Update browser.py 2022-06-15 10:08:43 +08:00
HibiKier
a84cab7afd replace bt url 2022-06-14 20:40:11 +08:00
HibiKier
593573ddfb fix pix 2022-06-14 19:48:32 +08:00
HibiKier
e9e9f81bdb
Merge pull request #806 from LambdaYH/patch-2
fix: 修复添加词条时对answer中图片的处理
2022-06-14 19:31:53 +08:00
HibiKier
61f624841b
Merge pull request #810 from LambdaYH/patch-3
fix: 自动更新群组
2022-06-14 19:31:18 +08:00
HibiKier
4bb38a2730
Merge pull request #812 from po-lan/main
可关闭 ssl 验证
2022-06-14 19:22:25 +08:00
HibiKier
d4ec0df00c
Update http_utils.py 2022-06-14 19:22:12 +08:00
po-lan
c8a7d855f8
Update http_utils.py 2022-06-14 18:47:43 +08:00
Cinte
73a126dcd5
fix: 自动更新群组 2022-06-14 09:18:03 +08:00
HibiKier
0736533389 fix search_image 2022-06-13 22:16:45 +08:00
Cinte
2695d658ab
fix: 修复添加词条时对answer中图片的处理 2022-06-13 22:11:18 +08:00
HibiKier
947166e793
Merge pull request #804 from po-lan/main
Windows 重启适配
2022-06-13 20:20:30 +08:00
po-lan
80c49a7cf5
Update __init__.py 2022-06-13 15:34:28 +08:00
po-lan
55bfa8f669
Update __init__.py
Windows 重启适配
2022-06-13 15:24:28 +08:00
HibiKier
74ade14f5e
Update README.md 2022-06-13 11:07:34 +08:00
HibiKier
c9b5218ebc
Merge pull request #798 from CopilotLaLaLa/main
webui中token.json文件写入补充
2022-06-13 11:07:11 +08:00
HibiKier
b324b2bd65
Merge pull request #800 from yajiwa/main
update setu_img
2022-06-13 11:06:20 +08:00
HibiKier
35c038efa2
Update utils.py 2022-06-13 11:05:16 +08:00
HibiKier
caa404d58d
Update utils.py 2022-06-13 11:03:21 +08:00
yajiwa
830103b9d5 update change_img_md5 2022-06-13 10:59:29 +08:00
yajiwa
6e18379597 update setu_img 2022-06-13 10:08:51 +08:00
yajiwa
6effbacb28 add change_img_md5 2022-06-13 10:08:09 +08:00
CopilotLaLaLa
a20a1a0234 同步原仓库 2022-06-12 15:23:10 +00:00
CopilotLaLaLa
3667724061 token_json文件写入 2022-06-12 15:16:07 +00:00
HibiKier
785179e4a7 update pix 2022-06-11 17:57:19 +08:00
HibiKier
715338f821
Merge pull request #791 from mmmjie/main
两处BUG的修复
2022-06-10 21:31:51 +08:00
mmmjie
7d5a82ab6d
Update update_picture.py
对于temp/temp的错误路径,减少了一个temp
TEMP_PATH 已经指向了一个temp了
2022-06-10 00:37:18 +08:00
mmmjie
e764cfcc1c
Update white2black_image.py
随着7b836ac 对utils/image_utils.py 的改动
调整此插件对于 utils/image_utils.py改动的引用部分
2022-06-10 00:35:57 +08:00
HibiKier
363acf37bc fix bug and update 2022-06-09 20:39:48 +08:00
HibiKier
5fd687c1e4
Merge pull request #778 from SinKy-Yan/main
fix auto update bug
2022-06-09 19:37:26 +08:00
HibiKier
dbedcbb93d
Update pyproject.toml 2022-06-08 11:51:32 +08:00
HibiKier
9e9611f11f
Update README.md 2022-06-08 11:43:10 +08:00
HibiKier
44002838da
Merge pull request #779 from MingxuanGame/main
chore(deps): update `nonebot-adapter-onebot`
2022-06-08 11:42:43 +08:00
MingxuanGame
4daab8459f chore(deps): update nonebot-adapter-onebot 2022-06-07 11:57:34 +00:00
HibiKier
5a002f75cc
Merge pull request #777 from LambdaYH/patch-1
fix image_utils.py
2022-06-07 19:27:31 +08:00
源源球球✨
a2180a1365 fix auto update bug 2022-06-07 10:19:23 +00:00
Cinte
7b836acf36
fix image_utils.py
ae8a214a3a
之前这个commit里面看到函数参数有写着int类型就把`font_size`类型转换给去了,结果导致了部分地方输入float类型后报错。现在改回来
2022-06-07 17:06:16 +08:00
HibiKier
a112a561cc
Update README.md 2022-06-05 20:30:49 +08:00
HibiKier
6dcc2a69f4
Update README.md 2022-06-05 19:56:42 +08:00
HibiKier
74e9c55a09 update v0.1.5.8 2022-06-05 19:51:23 +08:00
HibiKier
d4d6e736a4
Merge pull request #764 from McElaga/main
金币红包功能增加更多封面
2022-06-05 19:08:51 +08:00
HibiKier
5cf9938fa2
Merge pull request #763 from RShock/main
fix gold_redbag
2022-06-05 19:04:40 +08:00
McElaga
72ad0ad983 commit on main 2022-06-04 12:34:18 +08:00
咕咕型小r
690750d91e fix gold_redbag 2022-06-04 12:09:05 +08:00
HibiKier
9f1dfc4b9c
Merge pull request #756 from McElaga/main
修复原神树脂提醒bug(已实测)
2022-06-03 16:15:50 +08:00
HibiKier
05eab5307f
Update README.md 2022-06-03 16:13:29 +08:00
HibiKier
b0fe70c960
Merge pull request #745 from LambdaYH/main
稍微调整了一下查看所有请求中的年龄绘制
2022-06-03 16:07:01 +08:00
McElaga
09d7992bc4 comit on main 2022-06-03 12:09:15 +08:00
McElaga
c832a432c1 commit on main 2022-06-03 11:52:40 +08:00
HibiKier
41c22f4314 fix ShopRegister 2022-06-03 01:14:34 +08:00
HibiKier
252d45c79b fix webui update plugin_shop 2022-06-03 00:59:00 +08:00
Cinte
ae8a214a3a
Update image_utils.py 2022-06-02 10:06:55 +08:00
LambdaYH
86ce6d7664 fix: 稍微调整了一下查看所有请求中的年龄绘制 2022-06-02 10:02:03 +08:00
McElaga
67e96d6106 commit on main 2022-06-02 08:55:24 +08:00
HibiKier
24d9ec2b75
Update __init__.py 2022-06-01 11:05:12 +08:00
HibiKier
501e47c6ec fix image2text 2022-05-31 20:45:28 +08:00
HibiKier
5534a5a5c2
Merge pull request #707 from HiDolen/main
修复抽卡插件:方舟更新UP池信息时,若公告的第一个池子过期会导致无法更新UP池信息
2022-05-31 20:14:48 +08:00
HibiKier
7246aabf40
Merge pull request #712 from McElaga/main
修复发红包图片背景未透明化;修复原神树脂提醒参数错误
2022-05-31 20:07:35 +08:00
HibiKier
604ffae87e
Merge pull request #711 from LambdaYH/patch-1
bot_friend_group将group_handle.修改为friend_handle.
2022-05-31 20:06:12 +08:00
HibiKier
2d5c16456b
Merge pull request #721 from LambdaYH/patch-2
修复开启/关闭全部功能时帮助图片未重绘
2022-05-31 20:01:39 +08:00
Cinte
d44f7633dc
修复开启/关闭全部功能时帮助图片未重绘 2022-05-30 20:43:48 +08:00
Cinte
469ac4035c
大概是把group_handle写成了friend_handle 2022-05-30 11:27:14 +08:00
McElaga
dab218a6d7 commit on main 2022-05-30 11:14:47 +08:00
Dolen
d6fc675d57
修复抽卡插件:避免被跳过的卡池信息污染后面的卡池信息 2022-05-30 11:11:49 +08:00
McElaga
04148f7365 commit on main 2022-05-30 11:00:19 +08:00
Dolen
4c34ac570f
修复抽卡插件:方舟更新UP池信息时,若公告的第一个池子过期会导致无法更新UP池信息 2022-05-29 23:13:36 +08:00
HibiKier
fbdb8758a3
Update README.md 2022-05-29 22:21:26 +08:00
HibiKier
2d08747d70
Merge pull request #705 from yajiwa/main
商店插件判断是否有requirements.txt文件
2022-05-29 22:21:03 +08:00
yajiwa
0b4bacbbd1 update plugin_shop 2022-05-29 21:57:01 +08:00
yajiwa
e0412c7edb
Merge branch 'HibiKier:main' into main 2022-05-29 21:03:12 +08:00
HibiKier
38501cebf1
Update data_source.py 2022-05-29 20:56:03 +08:00
HibiKier
ee45d0217e
Update __init__.py 2022-05-29 20:55:32 +08:00
HibiKier
558f362919 update v0.1.5.8 2022-05-29 20:47:18 +08:00
HibiKier
fb9db2f50c fix 2022-05-29 19:57:57 +08:00
HibiKier
c1862e9c68 fix bt 2022-05-29 19:15:29 +08:00
HibiKier
731bde8e28 update v0.1.5.7 2022-05-29 19:14:36 +08:00
HibiKier
47c87f8694 update db_context 2022-05-28 22:50:23 +08:00
HibiKier
5558cdacc3
Update README.md 2022-05-28 21:09:58 +08:00
HibiKier
4650d244a5
Merge pull request #688 from McElaga/main
修复微博热搜报错,发红包小bug
2022-05-28 21:08:17 +08:00
HibiKier
c65b8aae07 update webui 2022-05-28 20:57:08 +08:00
HibiKier
7ba2fb9584 update black_word 2022-05-28 20:55:14 +08:00
HibiKier
9a2cfd0c9b zhenxun_update add config 2022-05-28 18:28:38 +08:00
HibiKier
a7d61b1f2b add config 2022-05-28 18:12:08 +08:00
HibiKier
7ab185f7d7 fix poke 2022-05-28 17:48:28 +08:00
HibiKier
724541d691 fix bug 2022-05-28 17:22:51 +08:00
McElaga
baa6cda9c2 commit on main 2022-05-28 10:31:27 +08:00
HibiKier
9c987e9aad log2cn 2022-05-26 22:49:48 +08:00
HibiKier
134974ea9c
Merge pull request #667 from NumberSir/main
更新抽卡插件
2022-05-26 22:43:11 +08:00
HibiKier
2d946958e3
Merge pull request #668 from HanakoLuna/patch-1
更新BT搜索源地址
2022-05-26 22:42:37 +08:00
Lya_Yami
ffe010e9ce
更新BT搜索源地址 2022-05-26 20:47:12 +08:00
HibiKier
1c67252b0c
Update README.md 2022-05-26 20:26:14 +08:00
HibiKier
60c1be25d4
Merge pull request #643 from LambdaYH/patch-1
修复[滴滴滴]会被转义成&#91;滴滴滴&#93;导致无法触发的问题
2022-05-26 20:25:45 +08:00
Number_Sir
18323a0916 更新抽卡插件
修复了方舟抽卡图文不符的问题
修复了方舟许多三星抽不出来的问题
修复了方舟重载卡池失败的问题
2022-05-26 20:07:09 +08:00
HibiKier
9d98abded9
Merge pull request #660 from Sakuracio/main
Replace URL
2022-05-26 19:49:23 +08:00
MangataAkihi
b06a742b8c
Update README.md 2022-05-26 17:20:37 +08:00
github-actions[bot]
87fe44f188 Auto generate poetry.lock 2022-05-26 09:18:16 +00:00
Cinte
96f6ef1693
修复[滴滴滴]会被转义成&#91;滴滴滴&#93;导致无法触发的问题 2022-05-26 09:59:45 +08:00
github-actions[bot]
374b7b7261 Auto generate poetry.lock 2022-05-25 23:42:48 +00:00
HibiKier
23c4141e55
Update README.md 2022-05-25 20:53:09 +08:00
HibiKier
c21200c2a9
Merge pull request #610 from yajiwa/main
修复碧蓝航线/明日方舟up池解析出错的问题
2022-05-25 20:52:58 +08:00
HibiKier
4a8b94259d
Merge pull request #602 from HiDolen/main-patch
修改翻译插件,添加缺失的冒号
2022-05-25 20:49:51 +08:00
HibiKier
28a58df27b
Merge pull request #607 from MingxuanGame/main
feat: stream downloading and progress
2022-05-25 20:49:20 +08:00
HibiKier
caaf486bbe
Merge branch 'main' into main 2022-05-25 20:49:07 +08:00
HibiKier
0a972a399e
Merge pull request #617 from mouhensama/main
把gamedraw的ba卡池搬运了过来并且进行了真寻的适配。
2022-05-25 20:44:07 +08:00
HibiKier
245dad1239
Merge pull request #624 from HiDolen/main-patch2
修改nickname插件:一处文案错误,添加敏感词
2022-05-25 20:42:51 +08:00
Dolen
a6b6a2fbff
修改nickname插件:一处文案错误 2022-05-25 17:21:00 +08:00
Dolen
53000a949b
修改nickname插件:添加一个敏感词 2022-05-25 17:03:44 +08:00
Dolen
eae1dd59a7
修改nickname插件:一处文案错误 2022-05-25 17:02:09 +08:00
HibiKier
e6347a76a8
Update issue-template.md 2022-05-25 14:44:28 +08:00
HibiKier
13e0fb3df7
Delete bug-issue-template.md 2022-05-25 13:42:22 +08:00
HibiKier
3f1b23ef8a
Update issue templates 2022-05-25 13:41:35 +08:00
HibiKier
acae7f0658
Create ISSUE_TEMPLATE.md 2022-05-25 13:37:29 +08:00
HibiKier
a9456b1bd6
Merge pull request #608 from AkashiCoin/main
Use Action to automatically generate poetry.lock
2022-05-25 13:35:39 +08:00
mouhensama
e4d5a230d2 把nonebot_plugin_gamedraw的ba卡池搬运了过来并且进行了真寻的适配。 2022-05-25 11:47:08 +08:00
HibiKier
fedf44b9fa
Update README.md 2022-05-25 10:54:52 +08:00
HibiKier
451db104e8
Update config.py 2022-05-25 08:52:22 +08:00
HibiKier
9ac4c7f4e3
Update README.md 2022-05-25 08:52:15 +08:00
HibiKier
7cf1c6f016
Update README.md 2022-05-25 08:41:59 +08:00
yajiwa
6dd87ee301 fix draw_card 2022-05-25 07:02:42 +08:00
MingxuanGame
96837fa8db
fix: rich from dev dependent to main dependent 2022-05-25 01:19:12 +08:00
MingxuanGame
d816e76962
fix: rich from dev dependent to main dependent 2022-05-25 01:13:27 +08:00
AkashiCoin
310945d9cd
Merge branch 'HibiKier:main' into main 2022-05-25 01:01:11 +08:00
MingxuanGame
1aba480495
feat: stream downloading and progress 2022-05-25 00:56:41 +08:00
HibiKier
07407749fe
Update README.md 2022-05-24 22:05:38 +08:00
HibiKier
dfab70dd90
Merge pull request #581 from HiDolen/main
修复抽卡插件:方舟抽卡的抽取和显示问题
2022-05-24 22:05:13 +08:00
Dolen
3b15469c98
修改翻译插件,发送消息添加冒号 2022-05-24 08:59:14 -05:00
HibiKier
e4590800c2
Update README.md 2022-05-24 21:20:59 +08:00
HibiKier
c63d4b8ad0
Merge pull request #573 from jk6589jk/patch-2
修复复读不能复读图片的问题
2022-05-24 21:19:41 +08:00
HibiKier
1fb913e2ed
Merge pull request #576 from MingxuanGame/main
refactor&fix(manager): modify argument
2022-05-24 21:18:22 +08:00
HibiKier
72ace2dab7
Merge pull request #579 from yajiwa/main
更新"微博热搜"接口
2022-05-24 21:14:51 +08:00
HibiKier
3bcef18629
Merge pull request #600 from sdy623/main
bugfix: 修正了签到时日期时间的显示不补齐零的bug (符合日期时间表示法 ISO 8601)
2022-05-24 21:13:33 +08:00
sdy623
c91758519c bugfix: 修正了签到时日期时间的显示不补齐零的bug (符合日期时间表示法 ISO 8601) 2022-05-24 20:19:32 +08:00
jk6589jk
9c8f2e7aa0
Update fudu.py 2022-05-24 14:01:08 +08:00
Dolen
5f377af6d5 修复抽卡插件:方舟抽卡的抽取和显示问题 2022-05-24 09:13:10 +08:00
yajiwa
570b5b1766 update wbtop 2022-05-24 06:01:23 +08:00
MingxuanGame
c4d53d58eb
refactor&fix(manager): modify argument 2022-05-24 01:27:55 +08:00
jk6589jk
ed65033cf1
修复复读不能复读图片的问题
IMAGE_PATH = Path() / "resources" / "image"
TEMP_PATH = Path() / "resources" / "temp"
image()默认读取在 resource/img 目录下,读写路径不同,导致找不到图片

打断打断施法!,rst.endswith("打断施法!")在复读内容含有图片时会报错
2022-05-23 22:06:53 +08:00
HibiKier
41836bde26
Update README.md 2022-05-23 22:05:19 +08:00
HibiKier
8381858742
Update README.md 2022-05-23 22:02:49 +08:00
HibiKier
1040bd0d58 update v0.1.5.6 2022-05-23 22:01:56 +08:00
HibiKier
404e47332e
Merge pull request #441 from with9/main
添加pixiv搜图多关键词支持;修复p站搜图数量参数问题
2022-05-23 21:52:33 +08:00
HibiKier
3db128785e
Update __init__.py 2022-05-23 21:52:08 +08:00
HibiKier
2189ea11df
Update README.md 2022-05-23 19:46:30 +08:00
HibiKier
49b9bd65b0
Merge pull request #552 from jk6589jk/patch-1
修复有置顶的up主B站动态获取失败
2022-05-23 19:45:59 +08:00
jk6589jk
b3fdb1ff58
修复B站动态获取失败
bili-dyn-item__tag的父项的父项才是完整的一条置顶动态
2022-05-23 12:59:53 +08:00
HibiKier
c79e3fdcf0
Update README.md 2022-05-23 07:52:27 +08:00
HibiKier
d7509f7030
Merge pull request #545 from yajiwa/main
修复"清除已删除插件数据"
2022-05-23 07:51:54 +08:00
yajiwa
5c99b55502 fix none_plugin_count 2022-05-23 02:35:57 +08:00
yajiwa
fd255f022b
Merge branch 'HibiKier:main' into main 2022-05-23 02:27:00 +08:00
HibiKier
41642589ae
Update __version__ 2022-05-22 20:56:03 +08:00
HibiKier
619fef3bff update README.md 2022-05-22 20:52:59 +08:00
HibiKier
38c0da0cf8 update v0.1.5.4 2022-05-22 20:51:35 +08:00
HibiKier
b241a58e84 update check_update 2022-05-22 19:04:58 +08:00
HibiKier
35c9585b22 delete WindowsSelectorEventLoopPolicy 2022-05-22 19:03:22 +08:00
HibiKier
d2fe95cc05 fix query_resource_points and sign_in 2022-05-22 18:08:06 +08:00
HibiKier
92e60ba141 fix epic 2022-05-22 15:22:57 +08:00
HibiKier
2356527791 update word_clouds 2022-05-22 12:51:53 +08:00
HibiKier
cab0f7b522 update change_pixiv_image_links 2022-05-22 12:49:32 +08:00
github-actions[bot]
8d3f101a68 Auto generate poetry.lock 2022-05-21 18:38:05 +00:00
AkashiCoin
c8ac2b6281 Update Generate.yml 2022-05-22 02:35:20 +08:00
AkashiCoin
d7d8efd305
Merge branch 'HibiKier:main' into main 2022-05-22 02:04:34 +08:00
HibiKier
a4bc04c958
Update pid_search.py 2022-05-22 01:46:52 +08:00
AkashiCoin
5fc208c95a Create Generate.yml 2022-05-22 00:29:54 +08:00
HibiKier
02743d5955
Merge pull request #384 from AkashiCoin/main
Update anime.json of Kyomotoi/AnimeThesaurus
2022-05-21 23:40:13 +08:00
HibiKier
a7ffebea35
Merge pull request #503 from yajiwa/main
修复命令不唯一的问题
2022-05-21 23:39:39 +08:00
HibiKier
c511ef50a2 update wbtop 2022-05-21 23:34:48 +08:00
HibiKier
82902e0cde update invite_manager 2022-05-21 22:40:05 +08:00
AkashiCoin
1de5ae09bc
Merge branch 'HibiKier:main' into main 2022-05-21 20:46:04 +08:00
yajiwa
8b735f1cb5 fix word_clouds 2022-05-21 20:08:53 +08:00
HibiKier
33d1334174 fix what_anime 2022-05-21 19:33:39 +08:00
HibiKier
324b58c21b update README.md 2022-05-21 16:42:19 +08:00
HibiKier
b7b1651709 fix what_anime 2022-05-21 16:39:06 +08:00
HibiKier
b5a4a6a9ff fix mute and open_case 2022-05-21 15:58:58 +08:00
HibiKier
fe2c82b03c fix mute and open_case 2022-05-21 15:58:29 +08:00
HibiKier
81e4bca9ef fix mute 2022-05-21 13:46:29 +08:00
HibiKier
c0d055b825 add get_message_img_file 2022-05-21 13:20:58 +08:00
HibiKier
188ae38525 fix bug 2022-05-21 13:15:53 +08:00
HibiKier
86a8fe7096
Merge pull request #462 from yajiwa/main
Update poetry file
2022-05-21 11:47:50 +08:00
yajiwa
0bb2b45f5c Update poetry.lock 2022-05-21 00:23:41 +08:00
yajiwa
a17d8731c8 Update pyproject.toml 2022-05-21 00:22:44 +08:00
with9
9cdd2326c8 添加pixiv搜图多关键词支持;修复p站搜图数量参数问题 2022-05-20 19:35:18 +08:00
AkashiCoin
d75653631d
Merge branch 'HibiKier:main' into main 2022-05-19 23:21:02 +08:00
AkashiCoin
e234c8906e Update anime.json 2022-05-19 23:20:00 +08:00
HibiKier
57baea18b5
Merge pull request #348 from sihuan/fix-bilibili_sub
Fix wrong live streamer name, fixes #284
2022-05-19 22:11:59 +08:00
HibiKier
0f3efe29c4
Merge pull request #357 from MingxuanGame/main
fix: mihoyo bbs api changed
2022-05-19 22:04:36 +08:00
HibiKier
89b87a38b3
Merge pull request #342 from yajiwa/main
fix bug
2022-05-19 21:03:23 +08:00
MingxuanGame
c52b7ca2e9
fix: mihoyo bbs api changed 2022-05-19 17:47:20 +08:00
SiHuan
371b55dc9e
Fix wrong live streamer name, fixes #284 2022-05-19 16:03:33 +08:00
yajiwa
53e572353c fix bug 2022-05-19 15:14:20 +08:00
yajiwa
3ae71c74e9 x 2022-05-19 15:10:42 +08:00
HibiKier
cb643c04f7
Merge pull request #265 from yajiwa/main
Add word_clouds
2022-05-19 09:27:54 +08:00
yajiwa
faf9ee159b update wordclouds url 2022-05-18 23:10:12 +08:00
yajiwa
ffb3b2d73e Add word_clouds 2022-05-18 20:31:14 +08:00
HibiKier
ffcc327089
Merge pull request #252 from yajiwa/main
Add wordclouds file
2022-05-18 20:04:13 +08:00
yajiwa
dfd5a6a86a Add wordclouds file 2022-05-18 18:45:48 +08:00
HibiKier
d43f89b067
Update README.md 2022-05-17 19:52:33 +08:00
HibiKier
f15c3ab6a2
Update README.md 2022-05-16 19:20:01 +08:00
HibiKier
e27809298e
Merge pull request #160 from yajiwa/yajiwa
update word_bank
2022-05-16 19:19:20 +08:00
HibiKier
4b3e28e14b fix shop setu 2022-05-15 21:10:35 +08:00
yajiwa
71ce9153ed no message 2022-05-14 15:54:10 +08:00
yajiwa
25d63966de update word_bank 2022-05-14 15:47:33 +08:00
yajiwa
98afbb54b6 add get imgfile 2022-05-14 15:41:44 +08:00
HibiKier
03a51ca5dd
Update README.md 2022-05-14 14:48:11 +08:00
HibiKier
428481b2d5
Merge pull request #159 from noahzark/patch-2
修复B站动态生成失败的问题
2022-05-14 14:47:30 +08:00
Feliciano Long
f87c60e6db
修复B站动态生成失败的问题
B站动态样式更改
1. card已变更为bili-dyn-list__item
2. 置顶消息变成了一个tag(此处存疑,暂未发现其他tag
2022-05-13 19:38:24 +08:00
HibiKier
6d824e38bc
Update README.md 2022-05-11 22:45:20 +08:00
HibiKier
f0fd5bfb9e
Merge pull request #155 from AkashiCoin/main
fix: 更改p搜api,解决p搜无法使用的问题
2022-05-11 22:44:32 +08:00
HibiKier
33374df671
Update pyproject.toml 2022-05-10 22:25:43 +08:00
AkashiCoin
c035b1b19c Update pid_search.py 2022-05-10 18:47:39 +08:00
HibiKier
b3b09ed666 update v0.1.5.3 2022-05-09 21:42:24 +08:00
HibiKier
8029c00a02
Update README.md 2022-05-05 20:32:22 +08:00
HibiKier
a2c0921013
Merge pull request #153 from NumberSir/main
修改bilibili_sub插件在windows平台下报错
2022-05-05 20:32:17 +08:00
Number_Sir
31cdabc229 修改bilibili_sub插件在windows平台下报错
改用bilireq库,同时补充部分bilireq暂无的方法如获取番剧、获取用户投稿视频
2022-05-04 17:02:56 +08:00
HibiKier
1059a0aae0
Update README.md 2022-05-03 15:40:19 +08:00
HibiKier
e6576e7f40
Update README.md 2022-05-03 15:34:47 +08:00
HibiKier
5837144095
Update data_source.py 2022-05-03 15:31:34 +08:00
HibiKier
d30a5c4207
Update data_source.py 2022-05-03 10:03:27 +08:00
HibiKier
7d169b0e5e
Update README.md 2022-05-03 09:46:06 +08:00
HibiKier
1f54226673 update ShopRegister 2022-05-03 09:43:38 +08:00
HibiKier
901a90ff13 update v0.1.5.1 2022-05-03 02:03:06 +08:00
HibiKier
56573d1d34 update black_word 2022-05-01 15:53:52 +08:00
HibiKier
b0ab78340a
Update chat_message_handle.py 2022-04-26 15:16:26 +08:00
HibiKier
93539be492 update v0.1.5.0 2022-04-26 14:45:04 +08:00
HibiKier
c551e21766
Update __version__ 2022-04-12 00:51:37 +08:00
HibiKier
ed342af97d
Update README.md 2022-04-12 00:51:25 +08:00
HibiKier
17b87a2cb1
Update README.md 2022-04-12 00:50:55 +08:00
HibiKier
69ca02834d
Update __init__.py 2022-04-12 00:50:19 +08:00
HibiKier
6cb4099a2e
Update README.md 2022-04-10 22:57:36 +08:00
HibiKier
e75a4966b2
Update __init__.py 2022-04-10 22:57:05 +08:00
HibiKier
d55cba49bd
Update data_source.py 2022-04-10 22:31:07 +08:00
HibiKier
0215abac30 update v0.1.4.7 2022-04-10 22:19:50 +08:00
HibiKier
2dcac5f009
Update README.md 2022-04-09 18:09:22 +08:00
HibiKier
0d8c64f7d1
Merge pull request #144 from AkashiCoin/main
fix: 更新问题,戳一戳图片路径问题
2022-04-09 18:08:49 +08:00
AkashiCoin
55626645fb fix: 更新问题,戳一戳图片路径问题 2022-04-09 14:56:30 +08:00
HibiKier
f7925fa259 update genshin.query_role 2022-04-08 01:09:29 +08:00
HibiKier
c814ae08b1
Update README.md 2022-04-06 18:52:01 +08:00
HibiKier
24666368f7
Merge pull request #143 from yajiwa/main
update search_type
2022-04-06 18:50:59 +08:00
yajiwa
a77e85b62d fix bug 2022-04-06 13:17:08 +08:00
yajiwa
6319c7fce1 fix 2022-04-05 22:38:43 +08:00
yajiwa
a45b95d5d4 update search_type 2022-04-05 22:15:47 +08:00
HibiKier
188f6f0f99
Update README.md 2022-04-05 19:42:20 +08:00
HibiKier
a72f126d8f fix web_ui api 2022-04-05 13:14:29 +08:00
HibiKier
33eb1b83a8
Update README.md 2022-04-04 23:52:24 +08:00
HibiKier
2d9ebe2e6d
Merge pull request #141 from yajiwa/main
Update word_bank plus
2022-04-04 23:50:34 +08:00
yajiwa
262b098dec
Merge branch 'HibiKier:main' into main 2022-04-04 22:04:27 +08:00
HibiKier
79d88065aa
Update README.md 2022-04-04 20:56:02 +08:00
HibiKier
0f59895c3b update v0.1.4.5 2022-04-04 20:33:37 +08:00
yajiwa
610d588e34 Merge branch 'zhenxun_yajiwa' 2022-04-03 20:17:08 +08:00
yajiwa
f99abb2f98 fix config 2022-04-03 20:11:00 +08:00
yajiwa
b2b7560d05 Update word_bank_plus 2022-04-03 20:05:18 +08:00
yajiwa
07c16e5238
Merge pull request #1 from yajiwa/zhenxun_yajiwa
Update Modify the entry
2022-04-01 23:56:57 +08:00
yajiwa
1741ea7d26 Update Modify the entry 2022-04-01 23:54:40 +08:00
HibiKier
b5ce4fab31
Merge pull request #135 from Sakuracio/main
fix GB18030 to UTF-8.
2022-03-28 00:04:32 +08:00
MangataAkihi
062e4c2062
fix GB18030 to UTF-8. 2022-03-26 23:43:21 +08:00
MangataAkihi
0adb66a8bf
fix GB18030 to UTF-8. 2022-03-26 23:43:06 +08:00
HibiKier
2aad517112 fix statistics_handle 2022-03-21 18:43:06 +08:00
HibiKier
14d1512b1e update v0.1.4.4 2022-03-18 20:55:05 +08:00
HibiKier
3f533516af
Update README.md 2022-03-07 20:46:48 +08:00
HibiKier
f1354308fd
Update set_admin_permissions.py 2022-03-07 20:46:13 +08:00
HibiKier
c06248e46b
Update README.md 2022-03-06 18:00:58 +08:00
HibiKier
9c8eaed938
Update pid_search.py 2022-03-06 18:00:35 +08:00
HibiKier
2081302e32
Update README.md 2022-03-06 17:04:34 +08:00
HibiKier
678fc19f2d
Update __init__.py 2022-03-06 17:02:59 +08:00
HibiKier
adc2757e8e
Merge pull request #128 from Sakuracio/main
去除背景图上的(白点?
2022-03-03 21:18:43 +08:00
Sakuracio
82a1261371 去除背景图上的(白点? 2022-03-03 00:38:54 +08:00
HibiKier
067da9dc57 update 0.1.4.3 2022-03-03 00:18:59 +08:00
HibiKier
0eb9f9fc6f
Update README.md 2022-03-01 21:02:36 +08:00
HibiKier
aee1340714
Update README.md 2022-03-01 21:02:18 +08:00
HibiKier
a72a9bd8cb
Update __version__ 2022-03-01 21:01:52 +08:00
HibiKier
7250410653
Update __version__ 2022-03-01 20:59:52 +08:00
HibiKier
12f55800b0 x 2022-03-01 20:26:11 +08:00
HibiKier
53b375b4b2
Add files via upload 2022-02-27 18:26:39 +08:00
HibiKier
fba27abe29
Update pyproject.toml 2022-02-27 17:56:56 +08:00
HibiKier
4caa3dec04
Update poetry.lock 2022-02-27 17:56:26 +08:00
HibiKier
516b0f5ccb
Add files via upload 2022-02-27 17:34:19 +08:00
HibiKier
b5098be08e
Update __version__ 2022-02-27 17:32:40 +08:00
HibiKier
5b08a4650c
Update README.md 2022-02-27 17:31:51 +08:00
HibiKier
eb02157b94
Add files via upload 2022-02-27 17:30:26 +08:00
HibiKier
222e1719a4
Delete plugins/draw_card directory 2022-02-27 17:29:57 +08:00
HibiKier
3c8983e753
Update task_hook.py 2022-02-26 00:11:26 +08:00
HibiKier
1fe41dd823
Update __version__ 2022-02-25 23:21:03 +08:00
HibiKier
e8df59203c
Update README.md 2022-02-25 23:17:42 +08:00
HibiKier
0f6690606b
Update README.md 2022-02-25 22:50:24 +08:00
HibiKier
a0115309dd
Merge pull request #124 from Nova-Noir/main
Fixed error in custom_welcome_msg and message_builder
2022-02-24 16:12:39 +08:00
HibiKier
ca18d45786
Update message_builder.py 2022-02-24 16:12:25 +08:00
NovaNo1r
76df21036a Fixed error in custom_welcome_msg and message_builder 2022-02-23 21:45:53 -08:00
HibiKier
c674d581b7
Update README.md 2022-02-23 13:52:10 +08:00
HibiKier
fc53c3c487
Update _data_source.py 2022-02-23 13:51:19 +08:00
HibiKier
7a4e31df80
Update __init__.py 2022-02-23 13:49:57 +08:00
HibiKier
f1d308d559
Update __init__.py 2022-02-23 13:49:21 +08:00
HibiKier
b7914bac05
Update README.md 2022-02-21 19:05:42 +08:00
HibiKier
8c40d88cc4
Update .gitignore 2022-02-21 18:20:43 +08:00
HibiKier
b4ed6dcb5d
Delete server_ip.py 2022-02-21 18:18:30 +08:00
HibiKier
0d3bd8a89c fix bug 2022-02-21 15:59:17 +08:00
HibiKier
87f0189abd
Update README.md 2022-02-20 11:39:00 +08:00
HibiKier
1c17ac1f9d
Update __init__.py 2022-02-20 11:06:32 +08:00
HibiKier
f038763041 fix bug 2022-02-20 11:06:04 +08:00
HibiKier
eaf6d54757
Update README.md 2022-02-19 23:24:21 +08:00
HibiKier
d7368c83bc
Update query_resource.py 2022-02-19 20:12:51 +08:00
HibiKier
4011620da1
Update README.md 2022-02-19 20:06:53 +08:00
HibiKier
6e0b91531e
Update __version__ 2022-02-19 20:05:36 +08:00
HibiKier
b8ca1d68aa
Update update_info.json 2022-02-19 20:04:19 +08:00
HibiKier
2b9cda40a0
Update query_resource.py 2022-02-19 20:03:40 +08:00
HibiKier
d8983bdcbf
Update README.md 2022-02-19 18:32:09 +08:00
HibiKier
14bce52f2f
Update README.md 2022-02-19 18:31:41 +08:00
HibiKier
a7b0f7da68
Update README.md 2022-02-19 18:29:40 +08:00
HibiKier
7dd68cf1ef fit nonebot.beta2 2022-02-19 18:20:19 +08:00
HibiKier
ab443a21ec
Merge pull request #122 from AkashiCoin/main
fix: 修复远古时期残留的epic推送问题
2022-02-19 15:54:59 +08:00
HibiKier
ed7e8a8a4c
Merge pull request #109 from SAGIRI-kawaii/main
优化BuildImage.circle()锯齿问题
2022-02-19 15:54:14 +08:00
HibiKier
a1435e2fc4
Merge branch 'main' into main 2022-02-19 15:53:47 +08:00
AkashiCoin
44a80f89da
fix: 修复远古时期残留的epic推送问题 2022-02-19 14:57:23 +08:00
HibiKier
164f6af30c
Merge pull request #119 from evlic/fixEPIC
epic restful 替换
2022-02-18 16:22:16 +08:00
evlic
9093a79101 epic restful 替换 2022-02-16 13:31:24 +08:00
HibiKier
14cce89a18
Update README.md 2022-02-11 13:16:48 +08:00
HibiKier
4bce20a0a9
Update data_source.py 2022-02-11 13:16:10 +08:00
HibiKier
f32d8b4eff
Update __version__ 2022-02-10 11:58:22 +08:00
HibiKier
685f2b8c53
Update README.md 2022-02-10 11:57:41 +08:00
HibiKier
1e63ca2549
Update buy.py 2022-02-10 11:55:36 +08:00
HibiKier
c1bc4eff2b
Update README.md 2022-02-09 23:02:14 +08:00
HibiKier
bc903d3813
Update __init__.py 2022-02-09 22:28:49 +08:00
HibiKier
80fc17b610
Update __version__ 2022-02-09 21:44:09 +08:00
HibiKier
0efb2bbc60 update v0.1 2022-02-09 20:05:49 +08:00
SAGIRI-kawaii
95ad533b87 优化BuildImage.circle()锯齿问题 2022-01-24 23:52:57 +08:00
HibiKier
b6e3240df9
Update README.md 2022-01-16 19:22:03 +08:00
HibiKier
5ae41e1d38
Update __init__.py 2022-01-16 18:37:14 +08:00
HibiKier
8022ae1fb1
Update README.md 2022-01-16 15:20:48 +08:00
HibiKier
0163fc1d88
Update draw_image.py 2022-01-16 15:16:19 +08:00
HibiKier
5d9ab40e35
Update __version__ 2022-01-16 15:00:16 +08:00
HibiKier
b1ca7930bb
Update README.md 2022-01-16 14:54:31 +08:00
HibiKier
40111261ed
Update README.md 2022-01-16 14:54:16 +08:00
HibiKier
4cb91b47e6 update v0.0.9.0 2022-01-16 14:52:50 +08:00
HibiKier
30b56583bd update v0.0.8.0 2022-01-05 22:32:59 +08:00
HibiKier
5e5168f804 fix genshin 2021-12-26 22:14:01 +08:00
HibiKier
4a8122829e
Update README.md 2021-12-24 10:23:35 +08:00
HibiKier
52ba2cf89a
Merge pull request #99 from yzyyz1387/fix_zx
支持国际疫情数据查询
2021-12-24 10:22:45 +08:00
HibiKier
58957cdf44
Update other_than.py 2021-12-24 10:20:57 +08:00
HibiKier
71f860a500
Update other_than.py 2021-12-24 10:10:48 +08:00
HibiKier
9b4cde819e
Update __init__.py 2021-12-24 10:09:53 +08:00
yzyyz1387
99637de1de International information inquiry is supported 2021-12-24 04:08:07 +08:00
yzyyz1387
19dbd3f2b0 International information inquiry is supported 2021-12-24 04:06:56 +08:00
yzyyz1387
7567794f74 International information inquiry is supported 2021-12-24 04:05:44 +08:00
yzyyz1387
df0d15c1b3 International information inquiry is supported 2021-12-24 04:03:26 +08:00
HibiKier
9a84c02bb5
Merge pull request #97 from BalconyJH/patch-1
Update __version__
2021-12-22 12:07:53 +08:00
BalconyJH
e623c4f30f
Update __version__ 2021-12-21 22:52:45 +08:00
HibiKier
3fd7acffb2
Update README.md 2021-12-20 20:41:54 +08:00
HibiKier
71f8c16c26
Merge pull request #96 from noahzark/patch-1
只有当真的发布新动态/视频的时候才获取并推送
2021-12-20 20:40:42 +08:00
Feliciano Long
b64699c4ab
只有当真的发布新动态/视频的时候才获取并推送
1. 当up删除动态的时候,老动态会变成新的,此时不应该重复推送老动态
2. 2021-12-20 b站服务器不稳定,动态列表刷新混乱,造成重复推送
2021-12-20 17:48:05 +08:00
HibiKier
786d62bb2f
Update README.md 2021-12-16 20:52:55 +08:00
HibiKier
ac48d3d542
Update README.md 2021-12-16 19:23:30 +08:00
HibiKier
c4d9523ec2
Update set_admin_permissions.py 2021-12-16 19:22:46 +08:00
HibiKier
cb6549c297
Update prts_handle.py 2021-12-16 11:31:15 +08:00
HibiKier
29816ada2a
Update README.md 2021-12-16 11:29:12 +08:00
HibiKier
dd12bdc028
Update README.md 2021-12-16 11:17:27 +08:00
HibiKier
2a52c0711b
Update README.md 2021-12-16 11:17:04 +08:00
HibiKier
2653f67193 update 0.0.7.0 2021-12-16 11:16:28 +08:00
HibiKier
b892617824
Update group_user_checkin.py 2021-12-07 12:20:14 +08:00
HibiKier
a6fb05c91d
Update README.md 2021-12-01 16:25:44 +08:00
HibiKier
ccfb9403c8
Update update_info.json 2021-12-01 16:21:58 +08:00
HibiKier
66fa194c7f
Update data_source.py 2021-12-01 16:21:29 +08:00
HibiKier
65d8fae9ca
Update http_utils.py 2021-12-01 15:20:32 +08:00
HibiKier
58acb14859
Update requirements.txt 2021-12-01 14:53:45 +08:00
HibiKier
b63c05a509
Update requirements.txt 2021-12-01 14:17:11 +08:00
HibiKi
2a1a2ee8c5 update 0.0.6.5 2021-12-01 14:03:34 +08:00
HibiKier
8c4b515093
Update update_info.json 2021-12-01 10:53:15 +08:00
HibiKier
6d43989a4d
Update update_info.json 2021-12-01 10:52:28 +08:00
HibiKier
fb1f15bcb4
Update update_game_simple_info.py 2021-11-29 21:30:06 +08:00
HibiKier
81ad585a18
Update update_game_requests_info.py 2021-11-29 21:29:48 +08:00
HibiKier
eb3bd2b4a6
Update update_game_info.py 2021-11-29 21:29:29 +08:00
HibiKier
e401914790
Update README.md 2021-11-29 13:11:34 +08:00
HibiKier
fef5dadaba
Update __version__ 2021-11-29 13:10:43 +08:00
HibiKi
c1348d08ed update 0.0.6.4 2021-11-29 13:09:47 +08:00
HibiKier
fbd7c568d9
Update pix_update.py 2021-11-24 18:26:52 +08:00
HibiKier
2941774913
Update __init__.py 2021-11-24 18:26:38 +08:00
HibiKier
b96d910401
Update __version__ 2021-11-24 14:40:53 +08:00
HibiKier
9275d0782b
Update README.md 2021-11-24 14:40:39 +08:00
HibiKier
7acc6cf6af
Update data_source.py 2021-11-24 14:33:10 +08:00
HibiKier
d380a9aacc
Update data_source.py 2021-11-24 14:32:46 +08:00
HibiKier
495377da13
Update README.md 2021-11-24 10:25:00 +08:00
HibiKier
218eed4068
Add files via upload 2021-11-24 10:24:40 +08:00
HibiKier
1e9c99dec1
Delete plugins/search_image directory 2021-11-24 10:07:47 +08:00
HibiKier
0326bc2831
Update __init__.py 2021-11-24 09:56:50 +08:00
HibiKier
aed770a761
Update README.md 2021-11-23 21:48:11 +08:00
HibiKi
3de487fb24 update 0.0.6.2 2021-11-23 21:44:59 +08:00
HibiKier
c802dfda22
Update README.md 2021-11-19 15:47:10 +08:00
HibiKier
3a4378e4c6
Update __init__.py 2021-11-18 14:41:54 +08:00
HibiKier
955a1f8a7f
Update __init__.py 2021-11-18 14:41:13 +08:00
HibiKier
ab69e5c477
Create README.md 2021-11-17 11:34:40 +08:00
HibiKier
55e42e8334
Update README.md 2021-11-17 11:33:26 +08:00
HibiKier
a0f59bc2c2
Update README.md 2021-11-14 17:27:26 +08:00
HibiKier
66dabd0c8a
Update plugins_manager.py 2021-11-14 17:25:45 +08:00
HibiKier
915d585e3a
Merge pull request #77 from AkashiCoin/main
修复有免费游戏时不能获取免费游戏的问题
2021-11-13 16:12:49 +08:00
HibiKier
979080d281
Merge branch 'main' into main 2021-11-13 16:12:41 +08:00
HibiKier
335f76c532
Update data_source.py 2021-11-12 16:13:16 +08:00
AkashiCoin
b50b934a12
Update data_source.py 2021-11-10 22:26:57 +08:00
AkashiCoin
6a1684d277
Update __init__.py 2021-11-10 22:26:29 +08:00
HibiKier
4926e4d69c
Update pix_update.py 2021-11-10 21:33:10 +08:00
HibiKier
b29a26551a
Update README.md 2021-11-10 21:32:54 +08:00
HibiKier
d1c1d93ab7 fix 2021-11-10 21:27:49 +08:00
HibiKier
907df4253c
Update __version__ 2021-11-10 20:06:44 +08:00
HibiKier
658152fdc9
Update jitang.py 2021-11-10 16:45:19 +08:00
HibiKier
1a68ede632
Update README.md 2021-11-09 18:05:36 +08:00
HibiKier
b70851b810
Update __init__.py 2021-11-09 18:04:33 +08:00
HibiKier
17506691a8
Update __init__.py 2021-11-07 20:45:34 +08:00
HibiKier
37a651da4e
Update README.md 2021-11-05 16:52:33 +08:00
HibiKier
c535a32230
Update update_info.json 2021-11-05 16:51:28 +08:00
HibiKier
bb54781209
Add files via upload 2021-11-05 16:50:40 +08:00
HibiKier
dcb538a3a9
Update data_source.py 2021-11-05 16:48:28 +08:00
HibiKier
185f7d9c31
Update README.md 2021-11-04 16:52:44 +08:00
HibiKier
c802c4413a update 0.0.6.0 2021-11-04 16:48:50 +08:00
HibiKier
19d650c35d update 0.0.6.0 2021-11-04 16:11:50 +08:00
HibiKier
21c1950898
Update README.md 2021-10-23 19:55:12 +08:00
HibiKier
661e1d77b9
Merge pull request #72 from HibiKier/add-license-1
Create LICENSE
2021-10-23 15:09:26 +08:00
HibiKier
dae0450a52
Create LICENSE 2021-10-23 15:09:11 +08:00
HibiKier
ce5cfc818c
Delete LICENSE 2021-10-23 15:06:13 +08:00
HibiKier
dec199f32d
Update __version__ 2021-10-20 14:13:29 +08:00
HibiKier
a87a50a89b
Update README.md 2021-10-15 15:14:47 +08:00
HibiKier
c253b43a70
Update README.md 2021-10-15 15:14:35 +08:00
HibiKier
4ce4e4c44c
Update query_resource.py 2021-10-15 15:12:47 +08:00
HibiKier
3319fa72e4
Update README.md 2021-10-08 16:28:39 +08:00
HibiKier
1033d585c7
Update statistics_handle.py 2021-10-08 16:28:04 +08:00
HibiKier
6014c3f975
Update README.md 2021-10-08 16:21:52 +08:00
HibiKier
d9ca42226a
Update data_source.py 2021-10-08 16:21:27 +08:00
HibiKier
71026542df
Update image_utils.py 2021-10-05 15:53:58 +08:00
HibiKier
e756a50d97
Update README.md 2021-10-04 22:59:00 +08:00
HibiKier
49c47c01a3
Update data_source.py 2021-10-04 22:58:11 +08:00
HibiKier
e7eea2a7d9
Update __init__.py 2021-10-04 22:57:59 +08:00
HibiKier
311ae7d4e8
Update README.md 2021-10-04 20:23:31 +08:00
HibiKier
058f0885f7 fix 0.0.5.1 2021-10-04 20:22:09 +08:00
HibiKier
c6eaf435f2
Update update_info.json 2021-10-04 14:31:31 +08:00
HibiKier
22676f3bfa
Merge pull request #59 from AkashiCoin/main
epic
2021-10-03 21:40:12 +08:00
HibiKier
fedcb37b1a
Update data_source.py 2021-10-03 21:40:05 +08:00
HibiKier
54025c9cfc
Update __init__.py 2021-10-03 21:39:03 +08:00
AkashiCoin
2cdf3c28b6
Update __init__.py 2021-10-03 20:35:55 +08:00
AkashiCoin
ba29232c9f
Update __init__.py 2021-10-03 20:17:08 +08:00
HibiKier
5fd0667061
Update README.md 2021-10-03 18:46:06 +08:00
HibiKier
2c9f99ac3c
Update README.md 2021-10-03 18:45:39 +08:00
HibiKier
775b1b937b
Merge pull request #58 from AkashiCoin/main
epic
2021-10-03 18:44:42 +08:00
AkashiCoin
65723aee15
Update __init__.py 2021-10-03 18:34:56 +08:00
AkashiCoin
46b55e4224
Update data_source.py 2021-10-03 18:34:31 +08:00
HibiKier
918adc4b1c
Add files via upload 2021-10-03 16:07:57 +08:00
HibiKier
e99341c6aa
Add files via upload 2021-10-03 15:35:30 +08:00
HibiKier
4b0d2a104b
Add files via upload 2021-10-03 15:34:53 +08:00
HibiKier
eb9bb1b173
Update __init__.py 2021-10-03 15:26:19 +08:00
HibiKier
f2b4204a23
Update README.md 2021-10-03 15:21:09 +08:00
HibiKier
b63aa952c4
Update requirements.txt 2021-10-03 15:18:20 +08:00
HibiKier
7a5767717f
Update README.md 2021-10-03 14:46:16 +08:00
HibiKier
22af4f2b27
Update config.py 2021-10-03 14:39:12 +08:00
HibiKier
00658cf165 update v0.0.5.0 2021-10-03 14:24:07 +08:00
HibiKier
87ed445a58
Update group_user_checkin.py 2021-09-23 11:10:15 +08:00
HibiKier
36ea174804
Merge pull request #53 from Adsicmes/main
修改最低好感度 避免0好感度问题
2021-09-21 13:46:11 +08:00
FrZ
6ba2fedba2
最低好感改0.01 2021-09-21 13:45:33 +08:00
FrZ
ca89ff7761
使用OS提供的最高质量源生成随机数计算好感度 2021-09-21 13:31:29 +08:00
FrZ
f39d53a865
修改最低好感度 避免0好感度问题 2021-09-21 13:18:48 +08:00
HibiKier
6864d54e27
Update config.py 2021-09-10 20:10:31 +08:00
HibiKier
bdc084212f
Update README.md 2021-09-10 20:09:47 +08:00
HibiKier
fc2487df0e fix withdraw 2021-09-10 20:08:01 +08:00
HibiKier
264a827a2c
Update README.md 2021-09-10 11:23:31 +08:00
HibiKier
401886805b
Update __version__ 2021-09-09 22:51:50 +08:00
HibiKier
efcdf79f57
Update setu.py 2021-09-09 22:50:14 +08:00
HibiKier
616f215075
Update data_source.py 2021-09-09 22:49:45 +08:00
HibiKier
00b674cebb
Update setu.py 2021-09-09 18:16:15 +08:00
HibiKier
8ac440335e
Update README.md 2021-09-09 17:17:13 +08:00
HibiKier
4b1821ce42
Update query_resource.py 2021-09-09 17:15:26 +08:00
HibiKier
3ad955abf9
Update image_utils.py 2021-09-09 17:14:33 +08:00
HibiKier
5fabb974ce
Update config.py 2021-09-09 16:39:37 +08:00
HibiKier
5325bc3e32
Update init_config.py 2021-09-09 16:39:03 +08:00
HibiKier
6688c4626b
Update update_info.json 2021-09-09 16:26:29 +08:00
HibiKier
2b95ab3d7e
Update init_config.py 2021-09-09 16:25:42 +08:00
HibiKier
23e6d7e27e
Update config.py 2021-09-09 16:25:09 +08:00
HibiKier
2760e22336
Update update_info.json 2021-09-09 16:05:48 +08:00
HibiKier
d026d09f98
Update __version__ 2021-09-09 16:04:34 +08:00
HibiKier
e6fd1ce791
Update README.md 2021-09-09 16:02:58 +08:00
HibiKier
342eaa9a97
Update pixiv.py 2021-09-09 16:02:12 +08:00
HibiKier
dc7681357e
Update omega_pixiv_illusts.py 2021-09-09 16:01:50 +08:00
HibiKier
b61cb49c1a
Update setu.py 2021-09-09 16:01:35 +08:00
HibiKier
c7b341393d
Update setu.py 2021-09-09 14:30:42 +08:00
HibiKier
1f9fa2adb9
Update README.md 2021-09-09 12:59:23 +08:00
HibiKier
133b927d9d
Update __version__ 2021-09-09 10:53:37 +08:00
HibiKier
46e6b26d75
Update README.md 2021-09-09 10:51:50 +08:00
hibiki
8d0b0e5505 update code 2021-09-09 10:47:26 +08:00
HibiKier
754a0c111c
Update README.md 2021-09-08 15:16:58 +08:00
HibiKier
81ef3f04e4
Update group_user_checkin.py 2021-09-08 11:05:23 +08:00
HibiKier
e7c00484b3
Update README.md 2021-09-07 11:17:19 +08:00
HibiKier
065432448f
Merge pull request #40 from Ailitonia/patch-1
Fix: Check info_list to avoid TypeError
2021-09-07 11:11:38 +08:00
HibiKier
5d45a9c28a
Update README.md 2021-09-07 11:08:43 +08:00
Ailitonia
7db5b3b5c0
Fix: Check info_list to avoid TypeError 2021-09-07 02:08:56 +08:00
HibiKier
5eb64060dc
Update data_source.py 2021-09-06 21:14:26 +08:00
HibiKier
2c4877b9f8
Update update_info.json 2021-09-06 21:10:44 +08:00
HibiKier
218dad3b86 fix bilibili_sub 2021-09-06 21:03:50 +08:00
HibiKier
974c6b106a
Update update_info.json 2021-09-06 20:42:06 +08:00
HibiKier
954b281b69
Update data_source.py 2021-09-06 18:09:16 +08:00
HibiKier
b1b15b63a1
Update data_source.py 2021-09-06 18:03:21 +08:00
HibiKier
49567aa958
Update __version__ 2021-09-05 13:57:27 +08:00
HibiKier
a7a470066b
Update update_info.json 2021-09-05 13:57:06 +08:00
HibiKier
4e3010d75e
Update data_source.py 2021-09-05 13:56:29 +08:00
HibiKier
cbacd726ef
Update __init__.py 2021-09-05 13:54:55 +08:00
HibiKier
58a1fc1ca0
Update __version__ 2021-09-05 13:06:41 +08:00
HibiKier
a704f88d75
Update update_info.json 2021-09-05 13:05:06 +08:00
HibiKier
10d0ad7d47
Update update_info.json 2021-09-05 12:15:47 +08:00
HibiKier
b47a29eb67
Update __init__.py 2021-09-05 06:58:40 +08:00
HibiKier
887177913d
Update hook.py 2021-09-05 03:20:03 +08:00
HibiKier
b6b0dc85bf
Update update_info.json 2021-09-05 02:49:16 +08:00
HibiKier
29f47878e9
Update data_source.py 2021-09-05 02:46:52 +08:00
HibiKier
440b548a4f
Update __init__.py 2021-09-05 02:46:40 +08:00
HibiKier
5191953657
Update update_info.json 2021-09-05 02:32:42 +08:00
HibiKier
877ac72761
Update update_info.json 2021-09-05 02:32:24 +08:00
HibiKier
685befee6b
Update update_info.json 2021-09-05 02:29:59 +08:00
HibiKier
7afb099c12 update code 2021-09-05 02:21:38 +08:00
hibiki
21a5feda43 update readme.md 2021-08-22 12:20:23 +08:00
hibiki
b7b16cfd21 update send_img 2021-08-19 19:12:33 +08:00
hibiki
615f3a58e9 fix upload_img 2021-08-19 18:43:24 +08:00
hibiki
f65fd73d6d update readme.md 2021-08-19 13:57:11 +08:00
hibiki
6a8eb9e67a update admin_manager 2021-08-18 10:06:06 +08:00
hibiki
8b7adf0a6a update pa 2021-08-18 09:56:53 +08:00
hibiki
973182c27c update setu 2021-08-18 02:04:26 +08:00
hibiki
0dced0bc90 update check 2021-08-18 01:47:21 +08:00
876 changed files with 70618 additions and 31448 deletions

20
.dockerignore Normal file
View File

@ -0,0 +1,20 @@
.devcontainer/
.github/
.vscode/
.idea/
.pytest_cache/
.ruff_cache/
.venv/
docs_image/
k8s/
tests/
.dockerignore
.editorconfig
.gitignore
.pre-commit-config.yaml
.prettier*
.env.dev
docker-compose.yml
Dockerfile
LICENSE
*.md

View File

@ -1,16 +0,0 @@
SUPERUSERS=[""]
COMMAND_START=[""]
SESSION_RUNNING_EXPRESSION="别急呀,小真寻要宕机了!QAQ"
NICKNAME=["真寻", "小真寻", "绪山真寻", "小寻子"]
SESSION_EXPIRE_TIMEOUT=30
DEBUG=False
# 服务器和端口
HOST = 127.0.0.1
PORT = 8080

93
.env.example Normal file
View File

@ -0,0 +1,93 @@
SUPERUSERS=[""]
COMMAND_START=[""]
SESSION_RUNNING_EXPRESSION="别急呀,小真寻要宕机了!QAQ"
NICKNAME=["真寻", "小真寻", "绪山真寻", "小寻子"]
SESSION_EXPIRE_TIMEOUT=00:00:30
ALCONNA_USE_COMMAND_START=True
# ws连接密钥,若bot能被公网访问则建议打开该注释并设置该配置项
# ONEBOT_ACCESS_TOKEN=""
# 全局图片统一使用bytes发送当真寻与协议端不在同一服务器上时为True
IMAGE_TO_BYTES = True
# 回复消息时自称
SELF_NICKNAME="小真寻"
# 官bot appid:bot账号
QBOT_ID_DATA = '{
}'
# 数据库配置
# 示例: "postgres://user:password@127.0.0.1:5432/database"
# 示例: "mysql://user:password@127.0.0.1:3306/database"
# 示例: "sqlite:data/db/zhenxun.db" 在data目录下建立db文件夹
DB_URL = ""
# NONE: 不使用缓存, MEMORY: 使用内存缓存, REDIS: 使用Redis缓存
CACHE_MODE = NONE
# REDIS配置使用REDIS替换Cache内存缓存
# REDIS地址
# REDIS_HOST = "127.0.0.1"
# REDIS端口
# REDIS_PORT = 6379
# REDIS密码
# REDIS_PASSWORD = ""
# REDIS过期时间
# REDIS_EXPIRE = 600
# 系统代理
# SYSTEM_PROXY = "http://127.0.0.1:7890"
PLATFORM_SUPERUSERS = '
{
"qq": [""],
"dodo": [""]
}
'
DRIVER=~fastapi+~httpx+~websockets
# LOG_LEVEL = DEBUG
# 服务器和端口
HOST = 127.0.0.1
PORT = 8080
# kook adapter toekn
# kaiheila_bots =[{"token": ""}]
# # discode adapter
# DISCORD_BOTS='
# [
# {
# "token": "",
# "intent": {
# "guild_messages": true,
# "direct_messages": true
# },
# "application_commands": {"*": ["*"]}
# }
# ]
# '
# DISCORD_PROXY=''
# # dodo adapter
# DODO_BOTS='
# [
# {
# "client_id": "",
# "token": ""
# }
# ]
# '
# application_commands的{"*": ["*"]}代表将全部应用命令注册为全局应用命令
# {"admin": ["123", "456"]}则代表将admin命令注册为id是123、456服务器的局部命令其余命令不注册

98
.github/ISSUE_TEMPLATE/bug_report.yml vendored Normal file
View File

@ -0,0 +1,98 @@
name: Bug 反馈
title: "Bug: "
description: 提交 Bug 反馈以帮助我们改进代码
labels: [ "bug" ]
body:
- type: checkboxes
id: checklist
attributes:
label: 提交前检查项
description: 在提交问题之前,请确认以下事项:
options:
- label: 我已搜索相关的 issue但没有找到类似的问题
required: true
- label: 我已更新到最新版本(包括但不限于真寻本体,插件以及相关依赖),问题仍然存在
required: true
- label: 我已仔细阅读文档,确认我的配置正确
required: true
- type: dropdown
id: env-os
attributes:
label: 操作系统
description: 选择运行 zhenxun_bot 的系统
options:
- Windows
- MacOS
- Linux
- Other
validations:
required: true
- type: input
id: env-python-ver
attributes:
label: Python 版本
description: 填写运行 zhenxun_bot 的 Python 版本
placeholder: e.g. 3.11.0
validations:
required: true
- type: input
id: env-zhenxun-ver
attributes:
label: zhenxun_bot 版本
description: 填写 zhenxun_bot 版本
placeholder: e.g. 0.1.0
validations:
required: true
- type: input
id: env-adapter
attributes:
label: 适配器
description: 填写使用的适配器以及版本
placeholder: e.g. OneBot v11 2.2.2
validations:
required: true
- type: input
id: env-protocol
attributes:
label: 协议端
description: 填写连接 zhenxun_bot 的协议端及版本
placeholder: e.g. NapCat V4.0.3
validations:
required: true
- type: textarea
id: describe
attributes:
label: 描述问题
description: 清晰简洁地说明问题是什么
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: 复现步骤
description: 提供能复现此问题的详细操作步骤
placeholder: |
1. 首先……
2. 然后……
3. 发生……
validations:
required: true
- type: textarea
id: expected
attributes:
label: 期望的结果
description: 清晰简洁地描述你期望发生的事情
- type: textarea
id: logs
attributes:
label: 截图或日志(请勿包含敏感信息如密码、令牌等)
description: 提供有助于诊断问题的任何日志和截图

1
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1 @@
blank_issues_enabled: false

18
.github/ISSUE_TEMPLATE/document.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: 文档改进
title: "Docs: 描述"
description: 文档错误及改进意见反馈
labels: ["documentation"]
body:
- type: textarea
id: problem
attributes:
label: 描述问题或主题
validations:
required: true
- type: textarea
id: improve
attributes:
label: 需做出的修改
validations:
required: true

View File

@ -0,0 +1,27 @@
name: 功能建议
title: "Feature: 功能描述"
description: 提出关于项目新功能的想法
labels: [ "enhancement" ]
body:
- type: textarea
id: problem
attributes:
label: 希望能解决的问题
description: 在使用中遇到什么问题而需要新的功能?
validations:
required: true
- type: textarea
id: feature
attributes:
label: 描述所需要的功能
description: 请说明需要的功能或解决方法
validations:
required: true
- type: checkboxes
id: checklist
attributes:
label: 我有能力且愿意为这个功能贡献代码
options:
- label: 我有能力且愿意为这个功能贡献代码

40
.github/actions/setup-python/action.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: Setup Python
description: Setup Python
inputs:
python-version:
description: Python version
required: false
default: "3.10"
env-dir:
description: Environment directory
required: false
default: "."
no-root:
description: Do not install package in the environment
required: false
default: "false"
runs:
using: "composite"
steps:
- name: Install poetry
run: pipx install poetry
shell: bash
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
cache: "poetry"
cache-dependency-path: |
./poetry.lock
${{ inputs.env-dir }}/poetry.lock
- run: |
cd ${{ inputs.env-dir }}
if [ "${{ inputs.no-root }}" = "true" ]; then
poetry install --all-extras --no-root
else
poetry install --all-extras
fi
shell: bash

77
.github/release-drafter.yml vendored Normal file
View File

@ -0,0 +1,77 @@
template: $CHANGES
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
exclude-labels:
- reverted
- no-changelog
- skip-changelog
- invalid
autolabeler:
- label: "bug"
title:
- "/:bug:.+/"
- "/🐛.+/"
- label: "enhancement"
title:
- "/:sparkles:.+/"
- "/✨.+/"
- label: "ci"
files:
- .github/**/*
- label: "breaking-change"
title:
- "/.+!:.+/"
- label: "documentation"
files:
- "*.md"
- label: "dependencies"
files:
- "pyproject.toml"
- "requirements.txt"
- "poetry.lock"
title:
- "/:wrench:.+/"
- "/🔧.+/"
- label: "resources"
files:
- resources/**/*
categories:
- title: 💥 破坏性变更
labels:
- breaking-change
- title: 🚀 新功能
labels:
- enhancement
- title: 🐛 Bug 修复
labels:
- bug
- title: 📝 文档更新
labels:
- documentation
- title: 👻 自动化程序
labels:
- chore
- internal
- maintenance
- title: 🚦 测试
labels:
- test
- tests
- title: 📦 依赖更新
labels:
- dependencies
collapse-after: 15
- title: 💫 杂项
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- "major"
minor:
labels:
- "minor"
patch:
labels:
- "patch"
default: patch

84
.github/workflows/bot_check.yml vendored Normal file
View File

@ -0,0 +1,84 @@
name: 检查bot是否运行正常
on:
push:
branches: ["main"]
paths:
- zhenxun/**
- tests/**
- .github/workflows/bot_check.yml
- bot.py
pull_request:
branches: ["main"]
paths:
- zhenxun/**
- tests/**
- .github/workflows/bot_check.yml
- bot.py
jobs:
bot-check:
runs-on: ubuntu-latest
name: bot check
steps:
- uses: actions/checkout@v4
- name: Setup Python
id: setup_python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Poetry
run: pip install poetry
# Poetry cache depends on OS, Python version and Poetry version.
- name: Cache Poetry cache
id: cache-poetry
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('pyproject.toml') }}
- name: Cache playwright cache
id: cache-playwright
uses: actions/cache@v3
with:
path: ~/.cache/ms-playwright
key: playwright-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}
- name: Cache Data cache
uses: actions/cache@v3
with:
path: data
key: data-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}
- name: Install dependencies
if: steps.cache-poetry.outputs.cache-hit != 'true'
run: |
rm -rf poetry.lock
poetry source remove aliyun
poetry install --no-root
- name: Install playwright
if: steps.cache-playwright.outputs.cache-hit != 'true'
run: |
poetry run sudo apt-get update
poetry run sudo apt-get install -y libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav flite x264 libx264-dev
poetry run pip install playwright
poetry run playwright install-deps
poetry run playwright install
- name: Run tests
run: poetry run pytest --cov=zhenxun --cov-report xml
- name: Check bot run
id: bot_check_run
run: |
mv scripts/bot_check.py bot_check.py
sed -i "s|^.*\?DB_URL.*|DB_URL=\"${{ env.DB_URL }}\"|g" .env.dev
sed -i "s/^.*\?LOG_LEVEL.*/LOG_LEVEL=${{ env.LOG_LEVEL }}/g" .env.dev
poetry run python3 bot_check.py
env:
DB_URL: "sqlite://:memory:"
LOG_LEVEL: DEBUG

91
.github/workflows/codeql.yml vendored Normal file
View File

@ -0,0 +1,91 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL Code Security Analysis"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '45 21 * * 2'
jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: python
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

11
.github/workflows/linting.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: Sequential Lint and Type Check
on: [push, pull_request]
jobs:
ruff-call:
uses: ./.github/workflows/ruff.yml
pyright-call:
needs: ruff-call
uses: ./.github/workflows/pyright.yml

58
.github/workflows/publish-docker.yml vendored Normal file
View File

@ -0,0 +1,58 @@
#
name: Create and publish a Docker image
# Configures this workflow to run on demand via workflow_dispatch.
on:
workflow_dispatch:
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
attestations: write
id-token: write
#
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see [Using artifact attestations to establish provenance for builds](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds).
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

55
.github/workflows/pyright.yml vendored Normal file
View File

@ -0,0 +1,55 @@
name: Pyright Lint
on:
workflow_call:
workflow_dispatch:
inputs:
python-version:
description: "Python version"
required: false
type: choice
options:
- "all"
- "3.10"
- "3.11"
- "3.12"
default: "all"
debug-mode:
description: "enable debug mode"
required: false
type: boolean
default: false
jobs:
pyright:
name: Pyright Lint
runs-on: ubuntu-latest
concurrency:
group: pyright-${{ github.ref }}-${{ matrix.env }}
cancel-in-progress: true
strategy:
matrix:
env: [pydantic-v1, pydantic-v2]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Python environment
uses: ./.github/actions/setup-python
with:
env-dir: ./envs/${{ matrix.env }}
no-root: true
- run: |
(cd ./envs/${{ matrix.env }} && echo "$(poetry env info --path)/bin" >> $GITHUB_PATH)
if [ "${{ matrix.env }}" = "pydantic-v1" ]; then
sed -i 's/PYDANTIC_V2 = true/PYDANTIC_V2 = false/g' ./pyproject.toml
fi
shell: bash
- name: Run Pyright Check
uses: jakebailey/pyright-action@v2
with:
pylance-version: latest-release

18
.github/workflows/release_draft.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Release Drafter
on:
push:
branches:
- main
- dev
pull_request:
types: [opened, reopened, synchronize]
jobs:
update_release_draft:
name: Update Release Draft
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

20
.github/workflows/ruff.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Ruff Lint
on:
workflow_call:
jobs:
ruff:
name: Ruff Lint
runs-on: ubuntu-latest
concurrency:
group: ruff-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Ruff
uses: astral-sh/ruff-action@v3
- name: Run Ruff Check
run: ruff check

26
.github/workflows/sync-to-aliyun.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Force Sync to Aliyun
on:
push:
branches: ["main"]
jobs:
sync:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config --global http.postBuffer 524288000
git config --global core.compression 0
- name: Add aliyun remote
run: |
git remote add aliyun https://${{secrets.ALIYUN_ACCOUNT}}:${{secrets.ALIYUN_PASSWORD}}@codeup.aliyun.com/67a361cf556e6cdab537117a/zhenxun-org/zhenxun_bot.git
git fetch aliyun main --force # 强制更新本地引用
- name: Force push
run: git push --progress --force aliyun HEAD:main

73
.github/workflows/update_version_pr.yml vendored Normal file
View File

@ -0,0 +1,73 @@
name: Update Version
on:
push:
paths:
- .github/workflows/update_version_pr.yml
- zhenxun/**
- resources/**
- bot.py
branches:
- main
- dev
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- name: Read current version
id: read_version
run: |
version_line=$(grep '__version__' __version__)
version=$(echo $version_line | sed -E 's/__version__:\s*v([0-9]+\.[0-9]+\.[0-9]+)(-.+)?/\1/')
echo "Current version: $version"
echo "current_version=$version" >> $GITHUB_OUTPUT
- name: Check for version file changes
id: check_diff
run: |
if git diff --name-only HEAD~1 HEAD | grep -q '__version__'; then
echo "Version file has changes"
echo "version_changed=true" >> $GITHUB_OUTPUT
else
echo "Version file has no changes"
echo "version_changed=false" >> $GITHUB_OUTPUT
fi
- name: Get commit hash
id: get_commit_hash
run: echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Update version file
id: update_version
if: steps.check_diff.outputs.version_changed == 'false'
run: |
current_version="${{ steps.read_version.outputs.current_version }}"
commit_hash="${{ steps.get_commit_hash.outputs.commit_hash }}"
new_version="v${current_version}-${commit_hash}"
echo "new_version=$new_version" >> $GITHUB_OUTPUT
echo "Updating version to: $new_version"
echo "__version__: $new_version" > __version__
- name: Check updated version
if: steps.check_diff.outputs.version_changed == 'false'
run: cat __version__
- name: Create or update PR
if: steps.check_diff.outputs.version_changed == 'false'
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GH_TOKEN }}
branch: create-pr/update_version
title: ":tada: chore(version): 自动更新版本到 ${{ steps.update_version.outputs.new_version }}"
body: "This PR updates the version file."
commit-message: ":tada: chore(version): Update version to ${{ steps.update_version.outputs.new_version }}"
add-paths: __version__
author: "AkashiCoin <i@loli.vet>"
committer: "${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>"
labels: automated-update

150
.gitignore vendored Normal file
View File

@ -0,0 +1,150 @@
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
!resources.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
.pybuilder/
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
.env.dev
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
data/
log/
backup/
.idea/
resources/
.vscode/launch.json
./.env.dev

4
.markdownlint.yaml Normal file
View File

@ -0,0 +1,4 @@
MD013: false
MD024: # 重复标题
siblings_only: true
MD033: false # 允许 html

16
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,16 @@
default_install_hook_types: [pre-commit]
ci:
autofix_commit_msg: ":rotating_light: auto fix by pre-commit hooks"
autofix_prs: true
autoupdate_branch: main
autoupdate_schedule: monthly
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks"
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2
hooks:
- id: ruff
args: [--fix]
stages: [pre-commit]
- id: ruff-format
stages: [pre-commit]

8
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,8 @@
{
"recommendations": [
"charliermarsh.ruff",
"esbenp.prettier-vscode",
"ms-python.python",
"ms-python.vscode-pylance"
]
}

65
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,65 @@
{
"C_Cpp.errorSquiggles": "enabled",
"terminal.integrated.env.linux": {
"PYTHONPATH": "${workspaceFolder}${pathSeparator}${env:PYTHONPATH}"
},
"cSpell.words": [
"aiofiles",
"Alconna",
"arclet",
"Arparma",
"displayname",
"flmt",
"getbbox",
"gitcode",
"GITEE",
"hibiapi",
"httpx",
"jsdelivr",
"kaiheila",
"lolicon",
"Mahiro",
"nonebot",
"onebot",
"pixiv",
"qbot",
"Setu",
"tobytes",
"ujson",
"unban",
"Uninfo",
"userinfo",
"webui",
"zhenxun"
],
"python.analysis.autoImportCompletions": true,
"python.testing.pytestArgs": ["tests"],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.wordBasedSuggestions": "allDocuments",
"editor.formatOnType": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.ruff": "explicit",
"source.organizeImports": "explicit"
}
},
"ruff.format.preview": false,
"isort.check": true,
"ruff.importStrategy": "useBundled",
"ruff.organizeImports": false,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}

87
CODE_OF_CONDUCT.md Normal file
View File

@ -0,0 +1,87 @@
# zhenxun_bot 贡献者公约
## 我们的承诺
身为社区成员、贡献者和负责人,我们承诺使社区参与者不受骚扰,无论其年龄、体型、可见或不可见的缺陷、族裔、性征、性别认同和表达、经验水平、教育程度、社会与经济地位、国籍、相貌、种族、种姓、肤色、宗教信仰、性倾向或性取向如何。
我们承诺以有助于建立开放、友善、多样化、包容、健康社区的方式行事和互动。
## 我们的准则
有助于为我们的社区创造积极环境的行为例子包括但不限于:
* 表现出对他人的同情和善意
* 尊重不同的主张、观点和感受
* 提出和大方接受建设性意见
* 承担责任并向受我们错误影响的人道歉
* 注重社区共同诉求,而非个人得失
不当行为例子包括:
* 使用情色化的语言或图像,及性引诱或挑逗
* 嘲弄、侮辱或诋毁性评论,以及人身或政治攻击
* 公开或私下的骚扰行为
* 未经他人明确许可,公布他人的私人信息,如物理或电子邮件地址
* 其他有理由认定为违反职业操守的不当行为
## 责任和权力
社区负责人有责任解释和落实我们所认可的行为准则,并妥善公正地对他们认为不当、威胁、冒犯或有害的任何行为采取纠正措施。
社区负责人有权力和责任删除、编辑或拒绝或拒绝与本行为准则不相符的评论comment、提交commits、代码、维基wiki编辑、议题issues或其他贡献并在适当时机知采取措施的理由。
## 适用范围
本行为准则适用于所有社区场合,也适用于在公共场所代表社区时的个人。
代表社区的情形包括使用官方电子邮件地址、通过官方社交媒体帐户发帖或在线上或线下活动中担任指定代表。
## 监督
辱骂、骚扰或其他不可接受的行为可通过 775757368@qq.com 向负责监督的社区负责人报告。
所有投诉都将得到及时和公平的审查和调查。
所有社区负责人都有义务尊重任何事件报告者的隐私和安全。
## 处理方针
社区负责人将遵循下列社区处理方针来明确他们所认定违反本行为准则的行为的处理方式:
### 1. 纠正
**社区影响**:使用不恰当的语言或其他在社区中被认定为不符合职业道德或不受欢迎的行为。
**处理意见**:由社区负责人发出非公开的书面警告,明确说明违规行为的性质,并解释举止如何不妥。或将要求公开道歉。
### 2. 警告
**社区影响**:单个或一系列违规行为。
**处理意见**:警告并对连续性行为进行处理。在指定时间内,不得与相关人员互动,包括主动与行为准则执行者互动。这包括避免在社区场所和外部渠道中的互动。违反这些条款可能会导致临时或永久封禁。
### 3. 临时封禁
**社区影响**: 严重违反社区准则,包括持续的不当行为。
**处理意见**: 在指定时间内,暂时禁止与社区进行任何形式的互动或公开交流。在此期间,不得与相关人员进行公开或私下互动,包括主动与行为准则执行者互动。违反这些条款可能会导致永久封禁。
### 4. 永久封禁
**社区影响**:行为模式表现出违反社区准则,包括持续的不当行为、骚扰个人或攻击或贬低某个类别的个体。
**处理意见**:永久禁止在社区内进行任何形式的公开互动。
## 参见
本行为准则改编自 [Contributor Covenant][homepage] 2.1 版, 参见 [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]。
社区处理方针灵感来源于 [Mozilla's code of conduct enforcement ladder][Mozilla CoC]。
有关本行为准则的常见问题的答案,参见 [https://www.contributor-covenant.org/faq][FAQ]。
其他语言翻译参见 [https://www.contributor-covenant.org/translations][translations]。
[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
[Mozilla CoC]: https://github.com/mozilla/diversity
[FAQ]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations

95
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,95 @@
# zhenxun_bot 贡献指南
首先,感谢你愿意为 zhenxun_bot 贡献自己的一份力量!
本指南旨在引导你更规范地向 zhenxun_bot 提交贡献,请务必认真阅读。
## 提交 Issue
在提交 Issue 前,我们建议你先查看 [已有的 Issues](https://github.com/HibiKier/zhenxun_bot/issues),以防重复提交。
### 报告问题、故障与漏洞
如果你在使用过程中发现问题并确信是由 zhenxun_bot 引起的,欢迎提交 Issue。
请使用我们提供的 **Bug 反馈** 模板,并尽可能详细地描述:
- 问题描述
- 重现步骤
- 你的环境信息(如操作系统、依赖版本等)
### 建议功能
如果你有新的功能需求或改进建议,欢迎提出。
请使用 **功能建议** 模板,并详细描述你所需要的特性,可能的话可以提出你认为可行的解决方案。
### 文档相关
如果你觉得文档有误或缺乏更新,欢迎提出。
请使用 **文档改进** 模板,并详细描述问题或主题,希望我们做出的修改
## Pull Request
### 分支管理
请从 `main` 分支创建新功能分支,例如:
- 新功能:`feature/功能描述`
- 问题修复:`bugfix/问题描述`
### 代码风格
zhenxun_bot 使用 `pre-commit` 进行代码格式化和检查,请在提交前确保代码通过检查。
```bash
# 在安装项目依赖后安装 pre-commit 钩子
pre-commit install
```
> 未通过 `pre-commit` 检查的代码将无法合并。
### Commit 规范
请确保你的每一个 commit 都能清晰地描述其意图,一个 commit 尽量只有一个目的。
我们建议遵循 [gitmoji](https://gitmoji.dev/) 的 commit message 格式,在创建 commit 时请牢记这一点。
### 工作流程概述
`main` 分支为 zhenxun_bot 的主分支,在任何情况下都请不要直接修改 `main` 分支,而是创建一个目标分支为 `main` 的 Pull Request 来提交修改。Pull Request 标题请尽量清晰,以便维护者进行审核。
如果你不是 zhenxun_bot 团队的成员,可在 fork 本仓库后,向本仓库的 `main` 分支发起 Pull Request注意遵循先前提到的 commit message 规范创建 commit。我们将在 code review 通过后合并你的贡献。
### 撰写文档
如果你对文档有改进建议,欢迎提交 Pull Request 或者 Issue。
[//]: # (我们使用 Markdown 编写文档,建议遵循以下规范:)
[//]: # ()
[//]: # (1. 中文与英文、数字、半角符号之间需要有空格。例:`zhenxun_bot 是一个高效的聊天机器人。`)
[//]: # (2. 若非英文整句,使用全角标点符号。例:`现在你可以看到机器人回复你“Hello世界”。`)
[//]: # (3. 直引号`「」`和弯引号`“”`都可接受,但同一份文件里应使用同种引号。)
[//]: # (4. **不要使用斜体**,你不需要一种与粗体不同的强调。)
[//]: # (5. 文档中应以“我们”指代开发者,以“用户”指代机器人的使用者。)
[//]: # ()
[//]: # (如果你需要编辑器检查 Markdown 规范,可以在 VSCode 中安装 `markdownlint` 扩展。)
### 参与开发
zhenxun_bot 的代码风格遵循 [PEP 8](https://www.python.org/dev/peps/pep-0008/) 与 [PEP 484](https://www.python.org/dev/peps/pep-0484/) 规范,请确保你的代码风格和项目已有的代码保持一致,变量命名清晰,有适当的注释与测试代码。
> 暂未搭建测试框架,因此暂不要求添加测试代码。
## 项目沟通
如有关于贡献流程的疑问或需要进一步指导,请通过 [QQ群](https://jq.qq.com/?_wv=1027&k=u8PgBkMZ) 联系我们。
再次感谢你的贡献!

67
Dockerfile Normal file
View File

@ -0,0 +1,67 @@
FROM python:3.11-bookworm AS requirements-stage
WORKDIR /tmp
ENV POETRY_HOME="/opt/poetry" PATH="${PATH}:/opt/poetry/bin"
RUN curl -sSL https://install.python-poetry.org | python - -y && \
poetry self add poetry-plugin-export
COPY ./pyproject.toml ./poetry.lock* /tmp/
RUN poetry export \
-f requirements.txt \
--output requirements.txt \
--without-hashes \
--without-urls
FROM python:3.11-bookworm AS build-stage
WORKDIR /wheel
COPY --from=requirements-stage /tmp/requirements.txt /wheel/requirements.txt
# RUN python3 -m pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
RUN pip wheel --wheel-dir=/wheel --no-cache-dir --requirement /wheel/requirements.txt
FROM python:3.11-bookworm AS metadata-stage
WORKDIR /tmp
RUN --mount=type=bind,source=./.git/,target=/tmp/.git/ \
git describe --tags --exact-match > /tmp/VERSION 2>/dev/null \
|| git rev-parse --short HEAD > /tmp/VERSION \
&& echo "Building version: $(cat /tmp/VERSION)"
FROM python:3.11-slim-bookworm
WORKDIR /app/zhenxun
ENV TZ=Asia/Shanghai PYTHONUNBUFFERED=1
#COPY ./scripts/docker/start.sh /start.sh
#RUN chmod +x /start.sh
EXPOSE 8080
RUN apt update && \
apt install -y --no-install-recommends curl fontconfig fonts-noto-color-emoji \
&& apt clean \
&& fc-cache -fv \
&& apt-get purge -y --auto-remove curl \
&& rm -rf /var/lib/apt/lists/*
# 复制依赖项和应用代码
COPY --from=build-stage /wheel /wheel
COPY . .
RUN pip install --no-cache-dir --no-index --find-links=/wheel -r /wheel/requirements.txt && rm -rf /wheel
RUN playwright install --with-deps chromium \
&& rm -rf /var/lib/apt/lists/* /tmp/*
COPY --from=metadata-stage /tmp/VERSION /app/VERSION
VOLUME ["/app/zhenxun/data", "/app/zhenxun/resources", "/app/zhenxun/log"]
CMD ["python", "bot.py"]

143
LICENSE
View File

@ -1,5 +1,5 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
@ -7,17 +7,15 @@
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
@ -72,7 +60,7 @@ modification follow.
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
@ -635,40 +633,29 @@ the "copyright" line and a pointer to where the full notice is found.
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
GNU Affero General Public License for more details.
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.

1131
README.md

File diff suppressed because it is too large Load Diff

1
__version__ Normal file
View File

@ -0,0 +1 @@
__version__: v0.2.4-da6d5b4

31
bot.py
View File

@ -1,20 +1,27 @@
import nonebot
from nonebot.adapters.cqhttp import Bot as CQHTTPBot
from services.db_context import init, disconnect
# from nonebot.adapters.discord import Adapter as DiscordAdapter
# from nonebot.adapters.dodo import Adapter as DoDoAdapter
# from nonebot.adapters.kaiheila import Adapter as KaiheilaAdapter
from nonebot.adapters.onebot.v11 import Adapter as OneBotV11Adapter
nonebot.init()
driver = nonebot.get_driver()
driver.register_adapter("cqhttp", CQHTTPBot)
config = driver.config
driver.on_startup(init)
driver.register_adapter(OneBotV11Adapter)
# driver.register_adapter(KaiheilaAdapter)
# driver.register_adapter(DoDoAdapter)
# driver.register_adapter(DiscordAdapter)
from zhenxun.services.db_context import disconnect
# driver.on_startup(init)
driver.on_shutdown(disconnect)
nonebot.load_builtin_plugins()
nonebot.load_plugins("plugins")
nonebot.load_plugins("plugins/shop")
nonebot.load_plugins("plugins/genshin")
nonebot.load_plugins("plugins/alapi")
nonebot.load_plugins("plugins/pix_gallery")
nonebot.load_plugins("plugins/admin_bot_manage")
# nonebot.load_builtin_plugins("echo")
nonebot.load_plugins("zhenxun/builtin_plugins")
nonebot.load_plugins("zhenxun/plugins")
if __name__ == "__main__":

View File

@ -1,229 +0,0 @@
from typing import List, Optional, Tuple
from services.service_config import TL_M_KEY, SYSTEM_M_PROXY, ALAPI_M_TOKEN
try:
import ujson as json
except ModuleNotFoundError:
import json
# 是否使用配置文件
USE_CONFIG_FILE: bool = False
# 回复消息名称
NICKNAME: str = '小真寻'
# API KEY必要
RSSHUBAPP: str = "https://rsshub.app" # rsshub
ALAPI_TOKEN: str = "" # ALAPI https://admin.alapi.cn/user/login
HIBIAPI: str = "https://api.obfs.dev"
# 图灵
TL_KEY: List[str] = []
# 数据库(必要)
# 如果填写了bind就不需要再填写后面的字段了#
# 示例:"bind": "postgresql://user:password@127.0.0.1:5432/database"
bind: str = "" # 数据库连接链接
sql_name: str = "postgresql"
user: str = "" # 数据用户名
password: str = "" # 数据库密码
address: str = "" # 数据库地址
port: str = "" # 数据库端口
database: str = "" # 数据库名称
# 代理
SYSTEM_PROXY: Optional[str] = None # 全局代理
BUFF_PROXY: Optional[str] = None # Buff代理
# 公开图库列表
IMAGE_DIR_LIST: List[str] = ["美图", "萝莉", "壁纸"]
# 对被ban用户发送的消息
BAN_RESULT: str = "才不会给你发消息."
# 插件配置
MAXINFO_REIMU: int = 7 # 上车(reimu)功能查找目的地的最大数
COUNT_PER_DAY_REIMU: int = 5 # 每日上车(reimu)次数限制
MAXINFO_BT: int = 10 # bt功能单次查找最大数
MAXINFO_PRIVATE_ANIME: int = 20 # 私聊搜索动漫返回的最大数量
MAXINFO_GROUP_ANIME: int = 5 # 群搜索动漫返回的最大数量
MAX_FIND_IMG_COUNT: int = 3 # 识图最大返回数
# 参1延迟撤回色图时间(秒)0 为关闭 | 参2监控聊天类型0(私聊) 1(群聊) 2(群聊+私聊)
WITHDRAW_SETU_TIME: Tuple[int, int] = (0, 1)
# 各种卡池的开关
PRTS_FLAG = True # 明日方舟
GENSHIN_FLAG = True # 原神
PRETTY_FLAG = True # 赛马娘
GUARDIAN_FLAG = True # 坎公骑冠剑
PCR_FLAG = True # 公主连结
AZUR_FLAG = True # 碧蓝航线
FGO_FLAG = True # 命运-冠位指定FGO
ONMYOJI_FLAG = True # 阴阳师
PCR_TAI = True # pcr是否开启台服卡池
SEMAPHORE = 5 # 限制碧蓝航线和FGO并发数
ADMIN_DEFAULT_AUTH: int = 5 # 默认群管理员权限
MAX_SIGN_GOLD: int = 200 # 签到好感度加成额外获得的最大金币数
MAX_RUSSIAN_BET_GOLD: int = 1000 # 俄罗斯轮盘最大赌注金额
INITIAL_SETU_PROBABILITY: float = 0.7 # 色图概率
FUDU_PROBABILITY: float = 0.7 # 复读概率
INITIAL_OPEN_CASE_COUNT: int = 20 # 初始开箱次数
MUTE_DEFAULT_COUNT: int = 10 # 刷屏禁言默认检测次数
MUTE_DEFAULT_TIME: int = 7 # 刷屏检测默认规定时间
MUTE_DEFAULT_DURATION: int = 10 # 刷屏检测默禁言时长(分钟)
CHECK_NOTICE_INFO_CD = 300 # 群检测个人权限检测等各种检测提示信息cd
# 注:即在 MALICIOUS_CHECK_TIME 时间内触发相同命令 MALICIOUS_BAN_COUNT 将被ban MALICIOUS_BAN_TIME 分钟
MALICIOUS_BAN_TIME: int = 30 # 恶意命令触发检测触发后ban的时长分钟
MALICIOUS_BAN_COUNT: int = 8 # 恶意命令触发检测最大触发次数
MALICIOUS_CHECK_TIME: int = 5 # 恶意命令触发检测规定时间内(秒)
# LEVEL
DELETE_IMG_LEVEL: int = 7 # 删除图片权限
MOVE_IMG_LEVEL: int = 7 # 移动图片权限
UPLOAD_LEVEL: int = 6 # 上传图片权限
BAN_LEVEL: int = 5 # BAN权限
OC_LEVEL: int = 2 # 开关群功能权限
MUTE_LEVEL: int = 5 # 更改禁言设置权限
MEMBER_ACTIVITY_LEVEL = 5 # 群员活跃检测设置权限
# 是否开启HIBIAPI搜图功能该功能会搜索群友提交的xp
HIBIAPI_FLAG: bool = True
# HIBIAPI搜图图片的最低收藏
HIBIAPI_BOOKMARKS: int = 5000
# 需要为哪些群更新最新版gocq吗上传最新版gocq
# 示例:[434995955, 239483248]
UPDATE_GOCQ_GROUP: List[int] = []
# 是否存储色图
DOWNLOAD_SETU: bool = True
# 仅仅使用本地色图
ONLY_USE_LOCAL_SETU: bool = False
# 是否自动同意好友添加
AUTO_ADD_FRIEND: bool = True
# 当含有ALAPI_TOKEN时是否检测文本合规开启检测会减慢回复速度
ALAPI_AI_CHECK: bool = True
# 导入商店自带的三个商品
IMPORT_DEFAULT_SHOP_GOODS: bool = True
# 真寻是否自动更新
AUTO_UPDATE_ZHENXUN: bool = True
# 群管理员功能 与 对应权限
admin_plugins_auth = {
"custom_welcome_message": OC_LEVEL,
"group_notification_state": OC_LEVEL,
"switch_rule": OC_LEVEL,
"update_group_member_info": OC_LEVEL,
"ban": BAN_LEVEL,
"delete_img": DELETE_IMG_LEVEL,
"move_img": MOVE_IMG_LEVEL,
"upload_img": UPLOAD_LEVEL,
"admin_help": 1,
"mute": MUTE_LEVEL,
"member_activity_handle": MEMBER_ACTIVITY_LEVEL,
}
# 模块与对应命令和对应群权限
# 用于生成帮助图片 和 开关功能
plugins2info_dict = {
"sign_in": {"level": 5, "cmd": ["签到"]},
"send_img": {"level": 5, "cmd": ["发送图片", "发图", "萝莉", "美图", "壁纸"]},
"send_setu": {"level": 9, "cmd": ["色图", "涩图", "瑟图", "查色图"]},
"white2black": {"level": 5, "cmd": ["黑白图", "黑白草图"]},
"coser": {"level": 9, "cmd": ["coser", "cos"]},
"quotations": {"level": 5, "cmd": ["语录"]},
"jitang": {"level": 5, "cmd": ["鸡汤"]},
"send_dinggong_voice": {"level": 5, "cmd": ["骂我", "骂老子", "骂劳资"]},
"open_cases": {"level": 5, "cmd": ["开箱", "我的开箱", "群开箱统计", "我的金色"]},
"luxun": {"level": 5, "cmd": ["鲁迅说", "鲁迅说过"]},
"fake_msg": {"level": 5, "cmd": ["假消息"]},
"buy": {"level": 5, "cmd": ["购买", "购买道具"]},
"my_gold": {"level": 5, "cmd": ["我的金币"]},
"my_props": {"level": 5, "cmd": ["我的道具"]},
"shop_handle": {"level": 5, "cmd": ["商店"]},
"update_pic": {"level": 5, "cmd": ["图片", "操作图片", "修改图片"]},
"search_buff_skin_price": {"level": 5, "cmd": ["查询皮肤"]},
"weather": {"level": 5, "cmd": ["天气", "查询天气", "天气查询"]},
"yiqing": {"level": 5, "cmd": ["疫情", "疫情查询", "查询疫情"]},
"what_anime": {"level": 5, "cmd": ["识番"]},
"search_anime": {"level": 5, "cmd": ["搜番"]},
"songpicker2": {"level": 5, "cmd": ["点歌"]},
"epic": {"level": 5, "cmd": ["epic"]},
"pixiv": {"level": 9, "cmd": ["pixiv", "p站排行", "搜图"]},
"poke": {"level": 5, "cmd": ["戳一戳", "拍一拍"]},
"draw_card": {
"level": 5,
"cmd": [
"抽卡",
"游戏抽卡",
"原神抽卡",
"方舟抽卡",
"坎公骑冠剑抽卡",
"pcr抽卡",
"fgo抽卡",
"碧蓝抽卡",
"碧蓝航线抽卡",
"阴阳师抽卡",
],
},
"ai": {"level": 5, "cmd": ["ai", "Ai", "AI", "aI"]},
"one_friend": {"level": 5, "cmd": ["我有一个朋友", "我有一个朋友想问问"]},
"translate": {"level": 5, "cmd": ["翻译", "英翻", "翻英", "日翻", "翻日", "韩翻", "翻韩"]},
"nonebot_plugin_picsearcher": {"level": 5, "cmd": ["识图"]},
"almanac": {"level": 5, "cmd": ["原神黄历", "黄历"]},
"material_remind": {"level": 5, "cmd": ["今日素材", "天赋材料"]},
"qiu_qiu_translation": {"level": 5, "cmd": ["丘丘翻译", "丘丘一下", "丘丘语翻译"]},
"query_resource_points": {"level": 5, "cmd": ["原神资源查询", "原神资源列表"]},
"russian": {"level": 5, "cmd": ["俄罗斯轮盘", "俄罗斯转盘", "装弹"]},
"gold_redbag": {"level": 5, "cmd": ["塞红包", "红包", "抢红包"]},
"poetry": {"level": 5, "cmd": ["念诗", "来首诗", "念首诗"]},
"comments_163": {"level": 5, "cmd": ["到点了", "12点了", "网易云热评", "网易云评论"]},
"cover": {"level": 5, "cmd": ["b封面", "B封面"]},
"pid_search": {"level": 9, "cmd": ["p搜", "P搜"]},
"pix": {
"level": 5,
"cmd": ["pix", "PIX", "pIX", "Pix", "PIx"],
},
"wbtop": {
"level": 5,
"cmd": ['微博热搜', "微博", "wbtop"]
},
"update_info": {
"level": 5,
"cmd": ['更新信息', '更新日志']
}
}
if TL_M_KEY:
TL_KEY = TL_M_KEY
if SYSTEM_M_PROXY:
SYSTEM_PROXY = SYSTEM_M_PROXY
if ALAPI_M_TOKEN:
ALAPI_TOKEN = ALAPI_M_TOKEN
HIBIAPI = HIBIAPI[:-1] if HIBIAPI[-1] == "/" else HIBIAPI
RSSHUBAPP = RSSHUBAPP[:-1] if RSSHUBAPP[-1] == "/" else RSSHUBAPP
# 配置文件应用
# if USE_CONFIG_FILE:
# config = get_config_data()
# if config:
# for key in config.keys():
# if isinstance(config[key], str):
# config[key] = config[key].strip()
# if key.find("proxy") != -1:
# if not config[key]:
# config[key] = None
# # if not configs[key] and key.find("PATH") == -1:
# # configs[key] = None
# globals().update(config)

View File

@ -1,62 +0,0 @@
from .utils.util import get_config_data
from pathlib import Path
# from configs.config import USE_CONFIG_FILE
# 图片路径
IMAGE_PATH = Path("resources/img/")
# 音频路径
VOICE_PATH = Path("resources/voice/")
# 文本路径
TXT_PATH = Path("resources/txt/")
# 日志路径
LOG_PATH = Path("log/")
# 字体路径
TTF_PATH = Path("resources/ttf/")
# 数据路径
DATA_PATH = Path("data/")
# 临时图片路径
TEMP_PATH = Path("resources/img/temp/")
def init_path():
global IMAGE_PATH, VOICE_PATH, TXT_PATH, LOG_PATH, TTF_PATH, DATA_PATH, TEMP_PATH
# if USE_CONFIG_FILE:
# data = get_config_data()
# if data.get('IMAGE_PATH'):
# IMAGE_PATH = Path(data['IMAGE_PATH'])
# if data.get('VOICE_PATH'):
# VOICE_PATH = Path(data['VOICE_PATH'])
# if data.get('TXT_PATH'):
# TXT_PATH = Path(data['TXT_PATH'])
# if data.get('LOG_PATH'):
# LOG_PATH = Path(data['LOG_PATH'])
# if data.get('TTF_PATH'):
# TTF_PATH = Path(data['TTF_PATH'])
# if data.get('DATA_PATH'):
# DATA_PATH = Path(data['DATA_PATH'])
# if data.get('DRAW_PATH'):
# DRAW_PATH = Path(data['DRAW_PATH'])
# if data.get('TEMP_PATH'):
# TEMP_PATH = Path(data['TEMP_PATH'])
IMAGE_PATH.mkdir(parents=True, exist_ok=True)
VOICE_PATH.mkdir(parents=True, exist_ok=True)
TXT_PATH.mkdir(parents=True, exist_ok=True)
LOG_PATH.mkdir(parents=True, exist_ok=True)
TTF_PATH.mkdir(parents=True, exist_ok=True)
DATA_PATH.mkdir(parents=True, exist_ok=True)
TEMP_PATH.mkdir(parents=True, exist_ok=True)
IMAGE_PATH = str(IMAGE_PATH.absolute()) + '/'
VOICE_PATH = str(VOICE_PATH.absolute()) + '/'
TXT_PATH = str(TXT_PATH.absolute()) + '/'
LOG_PATH = str(LOG_PATH.absolute()) + '/'
TTF_PATH = str(TTF_PATH.absolute()) + '/'
DATA_PATH = str(DATA_PATH.absolute()) + '/'
TEMP_PATH = str(TEMP_PATH.absolute()) + '/'
init_path()
if __name__ == '__main__':
print(IMAGE_PATH)

View File

@ -1,176 +0,0 @@
# import nonebot
from pathlib import Path
try:
import ujson as json
except ModuleNotFoundError:
import json
# driver: nonebot.Driver = nonebot.get_driver()
base_config = Path() / 'config.json'
plugins_cmd_config = Path() / 'configs' / 'plugins2cmd_config.json'
plugins_setting = Path() / 'configs' / 'plugins_setting.json'
def init_config():
if not base_config.exists():
base_config.parent.mkdir(parents=True, exist_ok=True)
config_dict = {
'apikey': {
'LOLICON_KEY': '',
'TL_KEY': [],
},
'sql': {
'bind': '',
'sql_name': '',
'user': '',
'password': '',
'address': '',
'port': '',
'database': '',
},
'path': {
'IMAGE_PATH': '',
'VOICE_PATH': '',
'TXT_PATH': '',
'LOG_PATH': '',
'DATA_PATH': '',
'DRAW_PATH': '',
'TEMP_PATH': '',
},
'proxy': {
'system_proxy': '',
'buff_proxy': ''
},
'level': {
'DELETE_IMG_LEVEL': 7,
'MOVE_IMG_LEVEL': 7,
'UPLOAD_LEVEL': 6,
'BAN_LEVEL': 5,
'OC_LEVEL': 2,
'MUTE_LEVEL': 5,
},
'auth': {
'ADMIN_DEFAULT_AUTH': 5,
'admin_plugins_auth': {
"admin_bot_manage": 2,
"ban": 5,
"delete_img": 7,
"move_img": 7,
"upload_img": 6,
"admin_help": 1,
"mute": 5
}
}
}
with open(base_config, 'w', encoding='utf8') as f:
json.dump(config_dict, f, indent=4, ensure_ascii=False)
if not plugins_cmd_config.exists():
plugins_cmd_config.parent.mkdir(parents=True, exist_ok=True)
config_dict = {
'base_config': {
'sign_in': ['签到'],
'send_img': ['发送图片', '萝莉', '美图', '壁纸'],
'send_setu': ['色图', '涩图', '瑟图', '查色图'],
'white2black': ['黑白图', '黑白草图'],
'coser': ['coser', 'cos'],
'quotations': ['语录'],
'jitang': ['鸡汤'],
'send_dinggong_voice': ['骂我', '骂老子', '骂劳资'],
'open_cases': ['开箱', '我的开箱', '群开箱统计', '我的金色'],
'luxun': ['鲁迅说过', '鲁迅说'],
'fake_msg': ['假消息'],
'buy': ['购买', '购买道具'],
'my_gold': ['我的金币'],
'my_props': ['我的道具'],
'shop_handle': ['商店'],
'nonebot_plugin_cocdicer': ['骰子娘'],
'update_pic': ['图片', '操作图片', '修改图片'],
'search_buff_skin_price': ['查询皮肤'],
'weather': ['天气', '查询天气', '天气查询'],
'yiqing': ['疫情', '疫情查询', '查询疫情'],
'what_anime': ['识番'],
'search_anime': ['搜番'],
'songpicker2': ['点歌'],
'epic': ['epic'],
'pixiv': ['pixiv', 'p站排行', '搜图'],
'poke': ['戳一戳'],
'draw_card': ['游戏抽卡', '原神一井', '原神来一井', '方舟一井', '方舟来一井'],
'ai': ['ai', 'Ai', 'AI', 'aI'],
'one_friend': ['我有一个朋友', '我有一个朋友想问问'],
'translate': ['翻译', '英翻', '翻英', '日翻', '翻日', '韩翻', '翻韩'],
'nonebot_plugin_picsearcher': ['识图'],
'almanac': ['原神黄历', '黄历'],
'material_remind': ['今日素材', '天赋材料'],
'qiu_qiu_translation': ['丘丘翻译', '丘丘一下', '丘丘语翻译'],
'query_resource_points': ['原神资源查询', '原神资源列表'],
}
}
with open(plugins_cmd_config, 'w', encoding='utf8') as f:
json.dump(config_dict, f, indent=4, ensure_ascii=False)
if not plugins_setting.exists():
plugins_setting.parent.mkdir(parents=True, exist_ok=True)
config_dict = {
'base': {
'IMAGE_DIR_LIST': ["色图", "美图", "萝莉", "壁纸"],
'BAN_RESULT': "才不会给你发消息.",
},
'draw_card': {
'PRTS_FLAG': True, # 明日方舟
'GENSHIN_FLAG': True, # 原神
'PRETTY_FLAG': True, # 赛马娘
'GUARDIAN_FLAG': True, # 坎公骑冠剑
'PCR_FLAG': True, # 公主连结
'AZUR_FLAG': True, # 碧蓝航线
'FGO_FLAG': True, # 命运-冠位指定FGO
'ONMYOJI_FLAG': True, # 阴阳师
'PCR_TAI': False # pcr是否开启台服卡池
},
'fudu': {
'FUDU_PROBABILITY': 0.7,
},
'reimu': {
'MAXINFO_REIMU': 7,
'COUNT_PER_DAY_REIMU': 5,
},
'bt': {
'MAXINFO_BT': 10,
},
'search_anime': {
'MAXINFO_PRIVATE_ANIME': 20,
'MAXINFO_GROUP_ANIME': 5,
},
'picsearcher': {
'MAX_FIND_IMG_COUNT': 3,
},
'sign': {
'MAX_SIGN_GOLD': 200,
},
'send_setu': {
'INITIAL_SETU_PROBABILITY': 0.7,
'MAX_SETU_R_COUNT': 5,
'DOWNLOAD_SETU': True,
},
'malicious_ban': {
'MALICIOUS_BAN_TIME': 30,
'MALICIOUS_BAN_COUNT': 8,
'MALICIOUS_CHECK_TIME': 5,
},
'open_case': {
'INITIAL_OPEN_CASE_COUNT': 20,
},
'mute': {
'MUTE_DEFAULT_COUNT': 10,
'MUTE_DEFAULT_TIME': 7,
'MUTE_DEFAULT_DURATION': 10,
},
'update_gocq': {
'UPDATE_GOCQ_GROUP': [],
},
}
with open(plugins_setting, 'w', encoding='utf8') as f:
json.dump(config_dict, f, indent=4, ensure_ascii=False)

View File

@ -1,35 +0,0 @@
from pathlib import Path
from configs.utils.init_config import init_config
try:
import ujson as json
except ModuleNotFoundError:
import json
data: dict = {}
def get_config_data():
global data
if not data:
try:
base_config = json.load(open(Path() / "config.json", 'r', encoding='utf8'))
plugins2cmd_config = json.load(open(Path() / 'configs' / 'plugins2cmd_config.json', 'r', encoding='utf8'))
other_config = json.load(open(Path() / 'configs' / 'other_config.json', 'r', encoding='utf8'))
for key in base_config.keys():
data.update(base_config[key])
for key in plugins2cmd_config.keys():
data.update(plugins2cmd_config[key])
for key in other_config.keys():
data.update(other_config[key])
except FileNotFoundError:
# logger.warning('配置文件不存在,生成默认配置....请填写数据库等必要数据后再次启动bot...')
init_config()
raise FileNotFoundError('配置文件不存在,生成默认配置....请填写数据库等必要数据后再次启动bot...')
except ValueError:
# logger.error('配置文件错误....')
raise ValueError('配置文件错误....')
return data

View File

@ -1,594 +0,0 @@
{
"mua": [
"你想干嘛?(一脸嫌弃地后退)",
"诶……不可以随便亲亲啦",
"(亲了一下你)",
"只......只许这一次哦///////",
"唔...诶诶诶!!!",
"mua~",
"rua大hentai想...想亲咱就直说嘛⁄( ⁄•⁄ω⁄•⁄ )",
"!啾~~"
],
"摸摸": [
"感觉你就像咱很久之前认识的一个人呢,有种莫名安心的感觉(><)",
"舒服w蹭蹭~",
"唔。。头发要乱啦",
"呼噜呼噜~",
"再摸一次~",
"好舒服,蹭蹭~",
"不行那里不可以(´///ω/// `)",
"再摸咱就长不高啦~",
"你的手总是那么暖和呢~",
"好吧~_~,就一下下哦……唔~好了……都两下了……(害羞)",
"不可以总摸的哦不然的话会想那个的wwww",
"哼!谁稀罕你摸头啦!唔......为什么要做出那副表情......好啦好啦~咱......咱让你摸就是了......诶嘿嘿~好舒服......",
"呜姆呜姆~~~w害羞兴奋主人喵~(侧过脑袋蹭蹭你的手"
],
"上你": [
"(把你按在地上)这么弱还想欺负咱,真是不自量力呢",
"你再这样我就不理你了(>д<)"
],
"傻了": [
"超级讨厌你说咱傻的说"
],
"蹭": [
"唔...你这也是禁止事项哦→_→",
"嗯..好舒服呢",
"不要啊好痒的",
"不要过来啦讨厌!!!∑(°Д°ノ)"
],
"裸体": [
"下流!",
"Hentai!",
"喂?妖妖灵吗?这里有一只大变态!",
"エッチ!"
],
"贴贴": [
"贴什么贴.....只......只能......一下哦!",
"贴...贴贴(靠近)",
"蹭蹭…你以为咱会这么说吗baka死宅快到一边去啦"
],
"老婆": [
"咱和你谈婚论嫁是不是还太早了一点呢?",
"咱在呢(ノ>ω<)ノ",
"见谁都是一口一个老婆的人,要不要把你也变成女孩子呢?(*-`ω´-)✄",
"神经病,凡是美少女都是你老婆吗?",
"嘛嘛~本喵才不是你的老婆呢",
"你黐线,凡是美少女都系你老婆啊?"
],
"抱": [
"诶嘿~(钻进你怀中)",
"o(*////▽////*)q",
"只能一会哦(张开双手)",
"你就像个孩子一样呢...摸摸头(>^ω^<)抱一下~你会舒服些吗?",
"嘛,真是拿你没办法呢,就一会儿哦",
"抱住不忍心放开",
"嗯嗯,抱抱~",
"抱一下嘿w",
"抱抱ヾ(@^▽^@)",
"喵呜~w扑进怀里瘫软"
],
"亲亲": [
"啊好害羞啊那只能亲一下哦mua(⑅˃◡˂⑅)",
"亲~",
"啾~唔…不要总伸进来啊!",
"你怎么这么熟练呢?明明是咱先的",
"(〃ノωノ)亲…亲一个…啾w",
"(脸红)就只有这一次哦~你"
],
"草一下": [
"一下也不行!",
"想都不要想!",
"咬断!"
],
"一下": [
"一下也不行!"
],
"啪一下": [
"不可啪",
"不可以……你不可以做这种事情"
],
"咬一下": [
"啊呜~(反咬一口)",
"不可以咬咱咱会痛的QAQ",
"不要啦。咱怕疼",
"你是说咬呢……还是说……咬♂️呢?",
"不要啦很痛的QAQ"
],
"操": [
"(害怕)咱是不是应该报警呢"
],
"123": [
"boom你有没有被咱吓到",
"木头人~你不许动w",
"上山打老虎,老虎没打到\n咱来凑数——嗷呜嗷呜┗|O|┛嗷~~"
],
"进去": [
"不让!"
],
"调教": [
"总感觉你在欺负咱呢,对咱说调教什么的",
"啊!竟然在大街上明目张胆太过分啦!",
"你脑子里总是想着调教什么的,真是变态呢"
],
"内衣": [
"内...内衣才不给你看!(///////)",
"突然问这个干什么?",
"噫…你这个死变态想干嘛!居然想叫咱做这种事,死宅真恶心!快离我远点,我怕你污染到周围空气了(嫌弃脸)"
],
"摸头": [
"喂喂...不要停下来啊",
"欸...感觉..痒痒的呢",
"唔... 手...好温暖呢.....就像是......新出炉的蛋糕",
"走开啦,黑羽喵说过,被摸头会长不高的啦~~~",
"呜姆咪~~...好...好的说喵~...(害羞,猫耳往下压,任由"
],
"原味": [
"(/ω\)你真的要么……?记得还给咱~还有奶油爆米花(//??//)说好了呦~!"
],
"搓搓": [
"在搓哪里呢,,Ծ‸Ծ,,",
"呜,脸好疼呀...QAQ",
"不可以搓咱!"
],
"捏捏": [
"咱的脸...快捏红啦...快放手呀QAQ",
"晃休啦咱要型气了o(><)o",
"躲开",
"疼...你快放手",
"快点给我放开啦!",
"唔……好痛你这个baka在干什么…快给咱放开唔……"
],
"挤挤": [
"哎呀~你不要挤咱啊(红着脸挤在你怀里)"
],
"呐": [
"嗯?咱在哟~你怎么了呀OAO",
"呐呐呐~",
"嗯?你有什么事吗?"
],
"胖次": [
"(*/ω\*)hentai",
"透明的",
"粉...粉白条纹...(羞)",
"轻轻地脱下,给你~",
"你想看咱的胖次吗?噫,四斋蒸鹅心......",
"(掀裙)今天……是…白,白色的呢……请温柔对她……",
"这种东西当然不能给你啦!",
"咱才不会给你呢",
"hentai咱才不会跟你聊和胖…胖次有关的话题呢",
"今天……今天是蓝白色的",
"今……今天只有创口贴噢",
"你的胖次什么颜色?",
"噫…你这个死变态想干嘛!居然想叫咱做这种事,死宅真恶心!快离我远点,我怕你污染到周围空气了(嫌弃脸)",
"可爱吗?你喜欢的话,摸一下……也可以哦"
],
"内裤": [
"今天……没有穿……有没有心动呀",
"粉...粉白条纹...(羞)",
"你这个大变态,咱才不要",
"可爱吗?你喜欢的话,摸一下……也可以哦"
],
"ghs": [
"是的呢(点头点头)"
],
"批": [
"你在说什么呀,再这样,咱就不理你了!"
],
"kkp": [
"你在说什么呀,再这样,咱就不理你了!"
],
"咕": [
"咕咕咕是要被当成鸽子炖的哦(:з」∠)_",
"咕咕咕"
],
"骚": [
"说这种话咱会生气的"
],
"喜欢": [
"最喜欢你了,需要暖床吗?",
"当然是你啦",
"咱也是,非常喜欢你~",
"那么大张开手画圆手不够长。QAQ 咱真的最喜欢你了~",
"不可以哦,只可以喜欢咱一个人",
"突然说这种事...",
"喜欢⁄(⁄⁄•⁄ω⁄•⁄⁄)⁄咱最喜欢你了",
"咱也喜欢你哦",
"好啦好啦,咱知道了",
"有人喜欢咱,咱觉得很幸福",
"诶嘿嘿,好高兴"
],
"suki": [
"最喜欢你了,需要暖床吗?",
"当然是你啦",
"咱也是,非常喜欢你~",
"那么大张开手画圆手不够长。QAQ 咱真的最喜欢你了~",
"不可以哦,只可以喜欢咱一个人",
"突然说这种事...",
"喜欢⁄(⁄⁄•⁄ω⁄•⁄⁄)⁄咱最喜欢你了",
"咱也喜欢你哦",
"好啦好啦,咱知道了",
"有人喜欢咱,咱觉得很幸福",
"诶嘿嘿,好高兴"
],
"好き": [
"最喜欢你了,需要暖床吗?",
"当然是你啦",
"咱也是,非常喜欢你~",
"那么大张开手画圆手不够长。QAQ 咱真的最喜欢你了~",
"不可以哦,只可以喜欢咱一个人",
"突然说这种事...",
"喜欢⁄(⁄⁄•⁄ω⁄•⁄⁄)⁄咱最喜欢你了",
"咱也喜欢你哦",
"好啦好啦,咱知道了",
"有人喜欢咱,咱觉得很幸福",
"诶嘿嘿,好高兴"
],
"不能": [
"虽然很遗憾,那算了吧。"
],
"砸了": [
"不可以这么粗暴的对待它们!"
],
"透": [
"来啊来啊有本事就先插破屏幕啊",
"那你就先捅破屏幕啊baka",
"不给你一耳光你都不知道咱的厉害"
],
"口我": [
"再伸过来就帮你切掉",
"咱才不呢baka你居然想叫本小姐干那种事情哼(つд⊂)(生气)"
],
"草我": [
"这时候应该喊666吧..咱这么思考着..",
"baka你居然敢叫咱做这种事情讨厌讨厌讨厌(▼皿▼#)"
],
"自慰": [
"这个世界的人类还真是恶心呢。",
"咱才不想讨论那些恶心的事情呢。",
"咱才不呢baka你居然想叫本小姐干那种事情哼(つд⊂)(生气)",
"baka你居然敢叫咱做这种事情讨厌讨厌讨厌(▼皿▼#)"
],
"onani": [
"这个世界的人类还真是恶心呢。",
"咱才不想讨论那些恶心的事情呢。",
"咱才不呢baka你居然想叫本小姐干那种事情哼(つд⊂)(生气)",
"baka你居然敢叫咱做这种事情讨厌讨厌讨厌(▼皿▼#)"
],
"オナニー": [
"这个世界的人类还真是恶心呢。",
"咱才不想讨论那些恶心的事情呢。",
"咱才不呢baka你居然想叫本小姐干那种事情哼(つд⊂)(生气)",
"baka你居然敢叫咱做这种事情讨厌讨厌讨厌(▼皿▼#)"
],
"炸了": [
"你才炸了!",
"才没有呢",
"咱好好的呀"
],
"色图": [
"天天色图色图的,今天就把你变成色图!",
"咱没有色图",
"哈?你的脑子一天都在想些什么呢,咱才没有这种东西啦。"
],
"涩图": [
"天天色图色图的,今天就把你变成色图!",
"咱没有色图",
"哈?你的脑子一天都在想些什么呢,咱才没有这种东西啦。"
],
"告白": [
"欸?你要向咱告白吗..好害羞..",
"诶!?这么突然!?人家还......还没做好心理准备呢(脸红)"
],
"对不起": [
"嗯,咱已经原谅你了呢(笑)",
"道歉的时候要露出胸部,这是常识"
],
"回来": [
"欢迎回来~",
"欢迎回来,你想喝茶吗?咱去给你沏~",
"欢迎回来,咱等你很久了~",
"你回来啦,是先吃饭呢还是先洗澡呢或者是●先●吃●咱●——呢(///^.^///"
],
"吻": [
"你太突然了,咱还没有心理准备",
"公共场合不要这样子了啦",
"才...才没有感觉呢!可没有下次了,知道了吗!哼~"
],
"软": [
"软乎乎的呢(,,・ω・,,)"
],
"柔软": [
"(脸红)请,请不要说这么让人害羞的话呀……"
],
"壁咚": [
"呀!不要啊!等一...下~",
"呜...不要啦!不要戏弄咱~",
"不要这样子啦(*/ω\*)",
"太....太近啦。",
"你要壁咚咱吗?好害羞(灬ꈍ εꈍ灬)",
"为什么要把咱按在墙上呢?",
"呜哇(/ω\)…快…快放开咱!!",
"放开我,不然我揍你了!放开我!放…开我~",
"??????咱只是默默地抬起了膝盖",
"啊.....你...你要干什么?!走开.....走开啦大hentai一巴掌拍飞(╯‵□′)╯︵┻━┻"
],
"掰开": [
"噫…你这个死肥宅又想让咱干什么污秽的事情,真是恶心,离咱远点好吗(嫌弃)",
"ヽ(#`Д´)ノ在干什么呢"
],
"女友": [
"女友什么的,咱才不承认呢!"
],
"是": [
"是什么是,你个笨蛋",
"总感觉你在敷衍呢..."
],
"喵": [
"诶~~小猫咪不要害怕呦,在姐姐怀里乖乖的,姐姐带你回去哦。",
"不要这么卖萌啦~咱也不知道怎么办丫",
"摸头⊙ω⊙",
"汪汪汪!",
"嗷~喵~",
"喵~?喵呜~w"
],
"嗷呜": [
"嗷呜嗷呜嗷呜...恶龙咆哮┗|O|┛"
],
"叫": [
"喵呜~",
"嗷呜嗷呜嗷呜...恶龙咆哮┗|O|┛"
],
"拜": [
"拜拜~(ノ ̄▽ ̄)",
"拜拜,路上小心~要早点回来陪咱玩哦~",
"~\\(≧▽≦)/~拜拜,下次见喽!"
],
"佬": [
"不是巨佬,是萌新"
],
"awsl": [
"你别死啊!(抱住使劲晃)",
"你别死啊咱又要孤单一个人了QAQ"
],
"臭": [
"哪里有臭味?(疑惑)",
"快捏住鼻子"
],
"香": [
"咱闻不到呢⊙ω⊙"
],
"腿": [
"嗯?!不要啊...请停下来!",
"不给摸,再这样咱要生气了ヽ( ̄д ̄;)",
"你好恶心啊,讨厌!",
"你难道是足控?",
"就让你摸一会哟~(。??ω??。)…",
"呜哇!好害羞...不过既然是你的话,是没关系的哦",
"不可以玩咱的大腿啦",
"你就那么喜欢大腿吗?唔...有点害羞呢......"
],
"脚": [
"咿呀……不要……",
"不要ヽ(≧Д≦)ノ好痒(ಡωಡ),人家的丝袜都要漏了",
"不要ヽ(≧Д≦)ノ好痒(ಡωಡ)",
"好痒(把脚伸出去)"
],
"胸": [
"不要啦ヽ(≧Д≦)",
"(-`ェ´-╬)",
"(•̀へ •́ ╮ ) 怎么能对咱做这种事情",
"你好恶心啊,讨厌!",
"你的眼睛在看哪里!",
"就让你摸一会哟~(。??ω??。)…",
"请不要这样先生,你想剁手吗?"
],
"脸": [
"唔!不可以随便摸咱的脸啦!",
"非洲血统是没法改变的呢(笑)",
"啊姆!(含手指)",
"好舒服呢(脸红)",
"请不要放开手啦//A//"
],
"头发": [
"没问题,请尽情的摸吧",
"发型要乱…乱了啦(脸红)",
"就让你摸一会哟~(。??ω??。)…"
],
"手": [
"爪爪",
"//A//"
],
"pr": [
"咿呀……不要……",
"...变态!!",
"不要啊(脸红)",
"呀,不要太过分了啊~",
"当然可以(///",
"呀,不要太过分了啊~"
],
"舔": [
"呀,不要太过分了啊~",
"要...要融化了啦>╱╱╱<",
"不可以哦",
"呀,不要太过分了啊~"
],
"舔耳": [
"喵!好痒啊 不要这样子啦"
],
"穴": [
"你这么问很失礼呢!咱是粉粉嫩嫩的!",
"不行那里不可以(´///ω/// `)",
"不可以总摸的哦不然的话咱会想那个的wwww",
"ヽ(#`Д´)ノ在干什么呢"
],
"腰": [
"咱给你按摩一下吧~",
"快松手,咱好害羞呀..",
"咱又不是猫,你不要搂着咱啦",
"让咱来帮你捏捏吧!"
],
"诶嘿嘿": [
"又在想什么H的事呢(脸红)",
"诶嘿嘿(〃'▽'〃)",
"你傻笑什么呢,摸摸"
],
"可爱": [
"诶嘿嘿(〃'▽'〃)",
"才……才不是为了你呢!你不要多想哦!",
"才,才没有高兴呢!哼~",
"咱是世界上最可爱的",
"唔...谢谢你夸奖~0///0"
],
"扭蛋": [
"铛铛铛——你抽到了咱呢",
"嘿~恭喜抽中空气一份呢"
],
"鼻子": [
"啊——唔...没什么...阿嚏!ヽ(*。>Д<)o゜"
],
"眼睛": [
"就如同咱的眼睛一样能看透人的思想哦wwww忽闪忽闪的诶嘿嘿~"
],
"色气": [
"咱才不色气呢,一定是你看错了!"
],
"推": [
"逆推",
"唔~好害羞呢",
"你想对咱做什么呢...(捂脸)"
],
"床": [
"快来吧",
"男女不同床,可没有下次了。(鼓脸",
"嗯?咱吗…没办法呢。只有这一次哦……",
"哎?!!!给你暖床……也不是不行啦。(脸红)"
],
"手冲": [
"手冲什么的是不可以的哦"
],
"饿": [
"请问主人是想先吃饭,还是先吃我喵?~"
],
"变": [
"猫猫不会变呐(弱气,害羞",
"呜...呜姆...喵喵来报恩了喵...(害羞"
],
"敲": [
"喵呜~",
"唔~",
"脑瓜疼~呜姆> <",
"欸喵,好痛的说..."
],
"爬": [
"惹~呜~怎么爬呢~",
"呜...(弱弱爬走"
],
"怕": [
"不怕~(蹭蹭你姆~"
],
"冲": [
"呜,冲不动惹~",
"哭唧唧~冲不出来了惹~"
],
"射了": [
"呜咿~!?(惊,害羞",
"还不可以射哦~"
],
"不穿衣服": [
"呜姆~!(惊吓,害羞)变...变态喵~~~"
],
"迫害": [
"不...不要...不要...呜呜呜...(害怕,抽泣"
],
"猫粮": [
"呜咿姆~!?(惊,接住吃",
"呜姆~!(惊,害羞)呜...谢...谢谢主人..喵...(脸红,嚼嚼嚼,开心",
"呜?谢谢喵~~(嚼嚼嚼,嘎嘣脆)"
],
"揪尾巴": [
"呜哇咿~~~!(惊吓,疼痛地捂住尾巴",
"呜咿咿咿~~~!!哇啊咿~~~!(惊慌,惨叫,挣扎",
"呜咿...(瘫倒,无神,被",
"呜姆咿~~~!(惊吓,惨叫,捂尾巴,发抖",
"呜哇咿~~~!!!(惊吓,颤抖,娇叫,捂住尾巴,双腿发抖"
],
"薄荷": [
"咪呜~!喵~...喵~姆~...(高兴地嗅闻",
"呜...呜咿~~!咿...姆...(呜咽,渐渐瘫软,意识模糊",
"(小嘴被猫薄荷塞满了,呜咽",
"喵~...喵~...咪...咪呜姆~...嘶哈嘶哈...喵哈...喵哈...嘶哈...喵...(眼睛逐渐迷离,瘫软在地上,嘴角流口水,吸猫薄荷吸到意识模糊",
"呜姆咪~!?(惊)喵呜~!(兴奋地扑到猫薄荷上面",
"呜姆~!(惊,害羞)呜...谢...谢谢你..喵...(脸红,轻轻叼住,嚼嚼嚼,开心"
],
"边揪尾巴边猫薄荷": [
"呜...呜咿~~!咿...姆...(呜咽,渐渐瘫软,意识模糊"
],
"早": [
"早喵~",
"早上好的说~~",
"欸..早..早上好(揉眼睛"
],
"晚安": [
"晚安好梦哟~",
"欸,晚安的说"
],
"揉": [
"是是,想怎么揉就怎么揉啊!?来用力抓啊!?我就是特别允许你这么做了!请!?",
"快停下,咱的头发又乱啦(??????︿??????)",
"你快放手啦,咱还在工作呢",
"戳戳你肚子",
"你想揉就揉吧..就这一次哦?"
],
"榨": [
"是专门负责榨果汁的小姐姐嘛?(´・ω・`)",
"那咱就把你放进榨汁机里了哦?",
"咱又不是榨汁姬(/‵Д′)~ ╧╧"
],
"掐": [
"你讨厌!又掐澪的脸",
"晃休啦咱要型气了啦o(><)o",
"(一只手拎起你)这么鶸还想和咱抗衡,还差得远呢!"
],
"奶子": [
"下流!",
"对咱说这种话,你真是太过分了",
"咿呀~好奇怪的感觉(>_<)",
"(打你)快放手,不可以随便摸人家的胸部啦!"
],
"嫩": [
"很可爱吧(๑•̀ω•́)",
"唔,你指的是什么呀"
],
"蹭蹭": [
"(按住你的头)好痒呀 不要啦",
"嗯..好舒服呢",
"呀~好痒啊~哈哈~,停下来啦,哈哈哈",
"(害羞)"
],
"牵手": [
"只许牵一下哦",
"嗯!好的你~(伸手)",
"你的手有些凉呢,让澪来暖一暖吧。"
],
"握手": [
"你的手真暖和呢",
"举爪"
],
"拍照": [
"那就拜托你啦~请把咱拍得更可爱一些吧w"
],
"w": [
"www"
],
"www": [
"有什么好笑的吗?",
"草"
],
"太二了": [
"哼,你不也是吗`(*><*)",
"人家只是想和你一起玩耍的说(≧∀≦)ゞ",
"好..冷漠的说,大坏蛋再也不理你了!",
"不听不听不听,反弹ヾ(≧▽≦*)o"
]
}

67
docker-compose-dev.yml Normal file
View File

@ -0,0 +1,67 @@
services:
db:
image: postgres:15
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: zhenxun
volumes:
- pgdata:/var/lib/postgresql/data
labels:
- "prometheus.io/scrape=true"
- "prometheus.io/port=9187"
postgres-exporter:
image: prometheuscommunity/postgres-exporter
environment:
DATA_SOURCE_NAME: "postgresql://postgres:password@db:5432/zhenxun?sslmode=disable"
ports:
- "9187:9187"
depends_on:
- db
redis:
image: redis:7
ports:
- "6379:6379"
labels:
- "prometheus.io/scrape=true"
- "prometheus.io/port=9121"
redis-exporter:
image: oliver006/redis_exporter
environment:
REDIS_ADDR: redis://redis:6379
ports:
- "9121:9121"
depends_on:
- redis
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
grafana:
image: grafana/grafana
ports:
- "3000:3000"
volumes:
- grafana_data:/var/lib/grafana
depends_on:
- prometheus
volumes:
pgdata:
prometheus_data:
grafana_data:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 697 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 179 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 424 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 330 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

BIN
docs_image/afd.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
docs_image/help.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 799 KiB

BIN
docs_image/html_help.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

BIN
docs_image/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 694 KiB

BIN
docs_image/pc-about.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

BIN
docs_image/pc-api.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

BIN
docs_image/pc-command.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 KiB

BIN
docs_image/pc-dashboard.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 KiB

BIN
docs_image/pc-database.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 KiB

BIN
docs_image/pc-login.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

BIN
docs_image/pc-manage.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 KiB

BIN
docs_image/pc-manage1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 KiB

BIN
docs_image/pc-plugin.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 KiB

BIN
docs_image/pc-plugin1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 KiB

BIN
docs_image/pc-store.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 KiB

BIN
docs_image/pc-system.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

BIN
docs_image/pc-system1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

BIN
docs_image/pc-system2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
docs_image/tt.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Some files were not shown because too many files have changed in this diff Show More