diff --git a/eat/main.py b/eat/main.py index ca2296c..57398b7 100644 --- a/eat/main.py +++ b/eat/main.py @@ -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" diff --git a/list.json b/list.json index b8b81c8..df0ab61 100644 --- a/list.json +++ b/list.json @@ -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", diff --git a/yvlu/main.py b/yvlu/main.py index 29be237..6f8886f 100644 --- a/yvlu/main.py +++ b/yvlu/main.py @@ -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"