mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-07 04:03:45 +08:00
✨ 今日素材
补充别名 (#292)
This commit is contained in:
parent
ac7d036e19
commit
a69638520f
@ -9,7 +9,7 @@ from .draw_daily_cost import draw_daily_cost_img
|
|||||||
sv_daily_cost = SV('查询每日材料')
|
sv_daily_cost = SV('查询每日材料')
|
||||||
|
|
||||||
|
|
||||||
@sv_daily_cost.on_command(('每日材料', '今日材料', '每日素材'), block=True)
|
@sv_daily_cost.on_command(('每日材料', '今日材料', '每日素材', '今日素材'), block=True)
|
||||||
async def send_collection_info(bot: Bot, ev: Event):
|
async def send_collection_info(bot: Bot, ev: Event):
|
||||||
logger.info('开始执行[每日材料]')
|
logger.info('开始执行[每日材料]')
|
||||||
im = await draw_daily_cost_img()
|
im = await draw_daily_cost_img()
|
||||||
|
@ -141,6 +141,7 @@ async def draw_daily_cost_img() -> Union[str, bytes]:
|
|||||||
all_black = Image.new('RGBA', img.size, (255, 255, 255))
|
all_black = Image.new('RGBA', img.size, (255, 255, 255))
|
||||||
img = Image.alpha_composite(all_black, img)
|
img = Image.alpha_composite(all_black, img)
|
||||||
|
|
||||||
|
img = img.convert('RGB')
|
||||||
img.save(
|
img.save(
|
||||||
TEMP_PATH / 'daily_cost.jpg',
|
TEMP_PATH / 'daily_cost.jpg',
|
||||||
'JPEG',
|
'JPEG',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user