From 49a6ddcbceac8d2582465f2a1d037e041979f88c Mon Sep 17 00:00:00 2001 From: Super Manito <68613938+SuperManito@users.noreply.github.com> Date: Sun, 2 Jul 2023 09:25:12 +0800 Subject: [PATCH] Alpha: auto_send_reactions bug fix --- alpha/auto_send_reactions/main.py | 10 +++++----- alpha/list.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/alpha/auto_send_reactions/main.py b/alpha/auto_send_reactions/main.py index 790e570..1396b13 100644 --- a/alpha/auto_send_reactions/main.py +++ b/alpha/auto_send_reactions/main.py @@ -94,7 +94,7 @@ async def AutoSendReactions(client: Client, message: Message): f"✅ 已{'更新' if hasSetted else '添加'}对 __{user_name}__ 的自动回复Emoji设置**", ) except Exception as e: - await message.edit(message, f"❌ **在设置中遇到了一些错误** > {e}") + await message.edit(f"❌ **在设置中遇到了一些错误** > {e}") await log(e) # 打印错误日志 elif reply and (len(message.parameter) == 2): @@ -118,7 +118,7 @@ async def AutoSendReactions(client: Client, message: Message): f"✅ 已{'更新' if hasSetted else '添加'}对 __{user_name}__ 的自动回复Emoji设置", ) except Exception as e: - await message.edit(message, f"❌ **在设置中遇到了一些错误** > {e}") + await message.edit(f"❌ **在设置中遇到了一些错误** > {e}") await log(e) # 打印错误日志 else: return await message.edit(f"{lang('error_prefix')}{lang('arg_error')}") @@ -148,7 +148,7 @@ async def AutoSendReactions(client: Client, message: Message): message, f"❌ 还没有对 __{user_name}__ 设置自动回复Emoji哦~" ) except Exception as e: - await message.edit(message, f"❌ **在设置中遇到了一些错误** > {e}") + await message.edit(f"❌ **在设置中遇到了一些错误** > {e}") await log(e) # 打印错误日志 elif reply and (len(message.parameter) == 1): @@ -170,7 +170,7 @@ async def AutoSendReactions(client: Client, message: Message): message, f"❌ 还没有对 __{user_name}__ 设置自动回复Emoji哦~" ) except Exception as e: - await message.edit(message, f"❌ **在设置中遇到了一些错误** > {e}") + await message.edit(f"❌ **在设置中遇到了一些错误** > {e}") await log(e) # 打印错误日志 else: return await message.edit(f"{lang('error_prefix')}{lang('arg_error')}") @@ -260,4 +260,4 @@ async def AutoSendReactions(message: Message): return False -## ⬆️ 不懂勿动 ⬆️ +## ⬆️ 不懂勿动 ⬆️ \ No newline at end of file diff --git a/alpha/list.json b/alpha/list.json index b0d2495..abe3211 100644 --- a/alpha/list.json +++ b/alpha/list.json @@ -2,7 +2,7 @@ "list": [ { "name": "auto_send_reactions", - "version": "1.01", + "version": "1.2", "section": "chat", "maintainer": "xtaodada", "size": "11.28 kb",