添加图像黑白
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-10-12 11:50:15 +08:00
parent 6abeb05a18
commit ae83b66908
6 changed files with 120 additions and 0 deletions

View File

@ -0,0 +1,13 @@
from nonebot import on_message
from nonebot.adapters import Bot
from konabot.common.nb.extract_image import PIL_Image
from konabot.common.nb.match_keyword import match_keyword
from konabot.common.nb.reply_image import reply_image
cmd_black_white = on_message(rule=match_keyword("黑白"))
@cmd_black_white.handle()
async def _(img: PIL_Image, bot: Bot):
await reply_image(cmd_black_white, bot, img.convert("LA"))