yvlu eat 修复问题

This commit is contained in:
xtaodada 2022-07-14 13:37:51 +08:00
parent 68d12cae66
commit 45d4ad0df0
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
3 changed files with 5 additions and 6 deletions

View File

@ -12,7 +12,7 @@ from pyrogram.types import User, Chat
from pagermaid.single_utils import sqlite, safe_remove from pagermaid.single_utils import sqlite, safe_remove
from pagermaid.listener import listener 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 from collections import defaultdict
import json import json
@ -191,7 +191,7 @@ async def downloadFileByIds(ids, context):
await context.edit("更新下载模版图片失败,请确认配置文件是否正确") await context.edit("更新下载模版图片失败,请确认配置文件是否正确")
@listener(is_plugin=True, outgoing=True, command=alias_command("eat"), @listener(is_plugin=True, outgoing=True, command="eat",
description="生成一张 吃头像 图片\n" description="生成一张 吃头像 图片\n"
"可选:当第二个参数是数字时,读取预存的配置;\n\n" "可选:当第二个参数是数字时,读取预存的配置;\n\n"
"当第二个参数是.开头时头像旋转180°并且判断r后面是数字则读取对应的配置生成\n\n" "当第二个参数是.开头时头像旋转180°并且判断r后面是数字则读取对应的配置生成\n\n"

View File

@ -12,7 +12,7 @@
}, },
{ {
"name": "eat", "name": "eat",
"version": "1.048", "version": "1.0481",
"section": "profile", "section": "profile",
"maintainer": "SF_PICK", "maintainer": "SF_PICK",
"size": "20.0 kb", "size": "20.0 kb",
@ -232,7 +232,7 @@
}, },
{ {
"name": "yvlu", "name": "yvlu",
"version": "1.231", "version": "1.2311",
"section": "chat", "section": "chat",
"maintainer": "xtaodada, xiluo", "maintainer": "xtaodada, xiluo",
"size": "10.0 kb", "size": "10.0 kb",

View File

@ -10,7 +10,6 @@ from asyncio import TimeoutError
from pagermaid import bot from pagermaid import bot
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.single_utils import Message from pagermaid.single_utils import Message
from pagermaid.utils import alias_command
def font(path, size): def font(path, size):
@ -111,7 +110,7 @@ async def yv_lu_process_sticker(name, photo, sticker, path):
result.save(f'{path}result.png') 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="将回复的消息或者输入的字符串转换成语录") description="将回复的消息或者输入的字符串转换成语录")
async def yv_lu(message: Message): async def yv_lu(message: Message):
bot_username = "PagerMaid_QuotLy_bot" bot_username = "PagerMaid_QuotLy_bot"