Alpha: auto_send_reactions bug fix

This commit is contained in:
Super Manito 2023-07-02 09:25:12 +08:00 committed by GitHub
parent 7ec8114d4b
commit 49a6ddcbce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -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
## ⬆️ 不懂勿动 ⬆️
## ⬆️ 不懂勿动 ⬆️

View File

@ -2,7 +2,7 @@
"list": [
{
"name": "auto_send_reactions",
"version": "1.01",
"version": "1.2",
"section": "chat",
"maintainer": "xtaodada",
"size": "11.28 kb",