mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 01:59:43 +00:00
💩 修复 throwit 部分代码错误
This commit is contained in:
parent
a4a41059ff
commit
ff56bcb3bd
@ -82,7 +82,7 @@
|
||||
},
|
||||
{
|
||||
"name": "throwit",
|
||||
"version": "1.4",
|
||||
"version": "1.5",
|
||||
"section": "profile",
|
||||
"maintainer": "xtaodada",
|
||||
"size": "6.9 kb",
|
||||
|
@ -110,7 +110,10 @@ async def throwit(context):
|
||||
diu_round = True
|
||||
if diu_round:
|
||||
foreground = foreground.rotate(180) # 对图片进行旋转
|
||||
background.paste(foreground, (19, 181), foreground)
|
||||
if randint_r == 1:
|
||||
background.paste(foreground, (19, 181), foreground)
|
||||
elif randint_r == 2:
|
||||
background.paste(foreground, (368, 16), foreground)
|
||||
background.save('plugins/throwit/throwout.webp')
|
||||
target_file = await context.client.upload_file('plugins/throwit/throwout.webp')
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user