Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -48,6 +48,7 @@ _✨ [Nonebot2](https://github.com/nonebot/nonebot2) 表情包制作插件 ✨_
> - Linux 下字体异常
>
> 设置 locate 为英文:
>
> ```
> export LANG=en_US.UTF-8
> ```
Expand Down Expand Up @@ -308,6 +309,7 @@ memes_multiple_image_config='
插件附带了简单图片操作功能,发送 “图片操作” 查看帮助

可用的指令有:

- 水平翻转/左翻/右翻
- 竖直翻转/上翻/下翻
- 旋转 + 角度
Expand Down
3 changes: 2 additions & 1 deletion nonebot_plugin_memes/matchers/image_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
)

Expand Down