he0119 / CoolQBot

基于 NoneBot2 的聊天机器人
MIT License
89 stars 22 forks source link

chore(deps): update all non-major dependencies #600

Closed renovate[bot] closed 2 months ago

renovate[bot] commented 2 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
nonebot-plugin-alconna >=0.49.0 -> >=0.50.2 age adoption passing confidence
nonebot-plugin-orm >=0.7.4 -> >=0.7.5 age adoption passing confidence

Release Notes

nonebot/plugin-alconna (nonebot-plugin-alconna) ### [`v0.50.2`](https://togithub.com/nonebot/plugin-alconna/releases/tag/v0.50.2) [Compare Source](https://togithub.com/nonebot/plugin-alconna/compare/v0.50.1...v0.50.2) #### What's Changed - `Text` 和 `UniMessage` 新增 `replace` 方法 - 修复 telegram 适配器下按钮无法发送的问题 by [@​KomoriDev](https://togithub.com/KomoriDev) in [https://github.com/nonebot/plugin-alconna/pull/60](https://togithub.com/nonebot/plugin-alconna/pull/60) #### New Contributors - [@​KomoriDev](https://togithub.com/KomoriDev) made their first contribution in [https://github.com/nonebot/plugin-alconna/pull/60](https://togithub.com/nonebot/plugin-alconna/pull/60) **Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.50.1...v0.50.2 ### [`v0.50.1`](https://togithub.com/nonebot/plugin-alconna/releases/tag/v0.50.1): Nonebot Plugin Alconna 0.50.1 [Compare Source](https://togithub.com/nonebot/plugin-alconna/compare/v0.50.0...v0.50.1) - 修复 `AlconnaMatcher.send` 会调用两次 `send_wrapper` 的问题 - `UniMessage` 新增方法 `map` 和 `select` - 移除非必要的 `Segment.from_` **Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.50.0...v0.50.1 ### [`v0.50.0`](https://togithub.com/nonebot/plugin-alconna/releases/tag/v0.50.0): Nonebot Plugin Alconna 0.50.0 [Compare Source](https://togithub.com/nonebot/plugin-alconna/compare/v0.49.0...v0.50.0) #### 新增 - 增加 `Button` 与 `Keyboard` 消息段,表示按钮元素与按钮组/按钮矩阵元素。 - `Button` 有四种 flag: `action`, `link`, `input`, `enter` - `Keyboard` 不传入参数 `row` 时,根据适配器情况自动选择作为一行发送或者换行成按钮矩阵 - 只传入 `Button` 或 只传入 `Keyboard` 时,根据适配器情况自动选择合并为 Keyboard 或展开为 Button - 增加内建消息段 `Markdown`, 负责专门适配 `QQ` 适配器下的 md消息模板 - 若 `Markdown` 只传入了参数 `content` , 其行为与构造 `Text(...).markdown()` 相同 ```python from nonebot_plugin_alconna import Button from nonebot_plugin_alconna.builtins.uniseg.markdown import Markdown await ( Markdown( template_id="102060544_1720161790", params={ "text": ["a"], "image_spec": ["#​1024px #​648px"], "image": ["http://res.dunnoaskrf.top/gacha_sim_910f39dca8bb930cc35175f23289dd65.png"], }, ) + Button("enter", "再来一发", text="/十连") ).send() ``` - `UniMessage` 新增若干方法: - `transform` & `tansform_async`: 遍历消息并依据传入的规则对消息内容进行替换/验证 - `split`: 和 `str.split` 差不多, 提供一个字符串, 然后返回分割结果. - `startswith` & `endswith`: 断消息链是否以给出的字符串开头/结尾 - `removeprefix` & `removesuffix`: 移除消息链前缀/后缀 - `strip` & `lstrip` & `rstrip`: 去除首尾的空白字符 #### 改进 - 在 `QQ` 适配器的群聊场景下 `Reply` 元素暂时会略过 - `Extension` 的 send_wrapper 现在在 `UniMessage.send` 时会调用 - ⬆️ Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/nonebot/plugin-alconna/pull/58](https://togithub.com/nonebot/plugin-alconna/pull/58) **Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.49.0...v0.50.0
nonebot/plugin-orm (nonebot-plugin-orm) ### [`v0.7.5`](https://togithub.com/nonebot/plugin-orm/releases/tag/v0.7.5): 🔖 Release 0.7.5 [Compare Source](https://togithub.com/nonebot/plugin-orm/compare/v0.7.4...v0.7.5) #### What's Changed - [🐛 fix(alembic): revision default args](https://togithub.com/nonebot/plugin-orm/commit/be74781ef7cf8b8e8cae8a5031ff504cebd80e2f) - [🐛 fix(alembic): editable check in Python 3.9](https://togithub.com/nonebot/plugin-orm/commit/a749a608018aa3f6ac399782f40e3f8fed15245f) **Full Changelog**: https://github.com/nonebot/plugin-orm/compare/v0.7.4...v0.7.5

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



This PR was generated by Mend Renovate. View the repository job log.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.44%. Comparing base (33dc11c) to head (670cad0). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #600 +/- ## ======================================= Coverage 81.44% 81.44% ======================================= Files 64 64 Lines 2576 2576 ======================================= Hits 2098 2098 Misses 478 478 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.