From 45d4ad0df0573a04a14df8fe69f5eb3036a02223 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 14 Jul 2022 13:37:51 +0800 Subject: [PATCH] =?UTF-8?q?yvlu=20eat=20=E4=BF=AE=E5=A4=8D=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eat/main.py | 4 ++-- list.json | 4 ++-- yvlu/main.py | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) 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"