mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-25 07:06:27 +00:00
yvlu eat 修复问题
This commit is contained in:
parent
68d12cae66
commit
45d4ad0df0
@ -12,7 +12,7 @@ from pyrogram.types import User, Chat
|
||||
|
||||
from pagermaid.single_utils import sqlite, safe_remove
|
||||
from pagermaid.listener import listener
|
||||
from pagermaid.utils import alias_command, client, Message, lang
|
||||
from pagermaid.utils import client, Message, lang
|
||||
|
||||
from collections import defaultdict
|
||||
import json
|
||||
@ -191,7 +191,7 @@ async def downloadFileByIds(ids, context):
|
||||
await context.edit("更新下载模版图片失败,请确认配置文件是否正确")
|
||||
|
||||
|
||||
@listener(is_plugin=True, outgoing=True, command=alias_command("eat"),
|
||||
@listener(is_plugin=True, outgoing=True, command="eat",
|
||||
description="生成一张 吃头像 图片\n"
|
||||
"可选:当第二个参数是数字时,读取预存的配置;\n\n"
|
||||
"当第二个参数是.开头时,头像旋转180°,并且判断r后面是数字则读取对应的配置生成\n\n"
|
||||
|
@ -12,7 +12,7 @@
|
||||
},
|
||||
{
|
||||
"name": "eat",
|
||||
"version": "1.048",
|
||||
"version": "1.0481",
|
||||
"section": "profile",
|
||||
"maintainer": "SF_PICK",
|
||||
"size": "20.0 kb",
|
||||
@ -232,7 +232,7 @@
|
||||
},
|
||||
{
|
||||
"name": "yvlu",
|
||||
"version": "1.231",
|
||||
"version": "1.2311",
|
||||
"section": "chat",
|
||||
"maintainer": "xtaodada, xiluo",
|
||||
"size": "10.0 kb",
|
||||
|
@ -10,7 +10,6 @@ from asyncio import TimeoutError
|
||||
from pagermaid import bot
|
||||
from pagermaid.listener import listener
|
||||
from pagermaid.single_utils import Message
|
||||
from pagermaid.utils import alias_command
|
||||
|
||||
|
||||
def font(path, size):
|
||||
@ -111,7 +110,7 @@ async def yv_lu_process_sticker(name, photo, sticker, path):
|
||||
result.save(f'{path}result.png')
|
||||
|
||||
|
||||
@listener(is_plugin=True, outgoing=True, command=alias_command("yvlu"),
|
||||
@listener(is_plugin=True, outgoing=True, command="yvlu",
|
||||
description="将回复的消息或者输入的字符串转换成语录")
|
||||
async def yv_lu(message: Message):
|
||||
bot_username = "PagerMaid_QuotLy_bot"
|
||||
|
Loading…
Reference in New Issue
Block a user