Skip to content

⬆️ Bump nonebot-plugin-alconna from 0.45.4 to 0.46.1 #326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 21, 2024

Bumps nonebot-plugin-alconna from 0.45.4 to 0.46.1.

Release notes

Sourced from nonebot-plugin-alconna's releases.

Nonebot Plugin Alconna 0.46.1

改进

  • Command 构造器可以在初始化时传入 CommandMeta
  • fallback 现在改为 FallbackStrategy, 可以选择ignore, text, rollbackforbid; 之前的 True 表示为 text
  • AlconnaMatcher 里的 fallback 现在默认为 ignore
  • UniMessage 里的 fallback 现在默认为 rollback
  • 在 qq 适配器中 mentionmention_everyone 现在会暂时返回空格

修复

  • 修复 Reference 的构造问题

Full Changelog: nonebot/plugin-alconna@v0.46.0...v0.46.1

Nonebot Plugin Alconna 0.46.0

新增

  • 适配器 Mirai(官方)
  • 适配器 TailChat
  • Text 新增 .bold(), .italic() 等一系列便捷方法
  • 新增 I18n 通用消息段(在发送前会转为 UniMessage)
  • AlconnaMatcher 新增 .i18n() 方法,与 I18n 作用相同
  • 新增内置插件 lang,可以切换或列出可用的语言模式

改进

  • 升级 Tarina 至 0.5.0 以使用 tarina-lang 新特性

i18n 说明

plugin-alconna 的 i18n 支持基于 tarina.lang,其提供了一个 tarina-lang 命令行工具

首先可以通过 tarina-lang new 创建文件夹 i18n

之后使用 cd ./i18ntarina-lang init,会生成如下文件:

📦 awesome-bot
├──📂 i18n
│  ├── __init__.py  🆕
│  ├── .config.json  🆕
│  ├── .template.json  🆕
│  └── .template.schema.json  🆕
├── plugin.py
└── ...

你需要将你语言文件中所有包含的项目声明在 .template.json 中,例如:

{
  "$schema": ".template.schema.json",
  "scopes" : [
    {
</tr></table> 

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

---
updated-dependencies:
- dependency-name: nonebot-plugin-alconna
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label May 21, 2024
@shoucandanghehe shoucandanghehe merged commit b1bc111 into main May 22, 2024
2 checks passed
@dependabot dependabot bot deleted the dependabot/pip/main/nonebot-plugin-alconna-0.46.1 branch May 22, 2024 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant