diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c830917..4db76f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ ci: autoupdate_commit_msg: "chore: auto update by pre-commit hooks" repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.14.10 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/README.md b/README.md index a4a69d1..15daee3 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ _✨ [Nonebot2](https://github.com/nonebot/nonebot2) 表情包制作插件 ✨_ > 本插件自 v0.8.0 版本起使用 rust 版 [meme-generator-rs](https://github.com/MemeCrafters/meme-generator-rs) > > 之前的版本使用 python 版 [meme-generator](https://github.com/MemeCrafters/meme-generator) -> +> > 配置方式等有所区别,请注意区分!!! > [!NOTE] @@ -48,6 +48,7 @@ _✨ [Nonebot2](https://github.com/nonebot/nonebot2) 表情包制作插件 ✨_ > - Linux 下字体异常 > > 设置 locate 为英文: +> > ``` > export LANG=en_US.UTF-8 > ``` @@ -308,6 +309,7 @@ memes_multiple_image_config=' 插件附带了简单图片操作功能,发送 “图片操作” 查看帮助 可用的指令有: + - 水平翻转/左翻/右翻 - 竖直翻转/上翻/下翻 - 旋转 + 角度 diff --git a/nonebot_plugin_memes/matchers/image_operations.py b/nonebot_plugin_memes/matchers/image_operations.py index 4a403d9..cf118b5 100644 --- a/nonebot_plugin_memes/matchers/image_operations.py +++ b/nonebot_plugin_memes/matchers/image_operations.py @@ -194,7 +194,8 @@ async def _(matcher: Matcher): await matcher.finish( "简单图片操作,支持的操作:\n" + "\n".join( - f"{i+1}、{'/'.join(command.keywords)}" for i, command in enumerate(commands) + f"{i + 1}、{'/'.join(command.keywords)}" + for i, command in enumerate(commands) ) )