mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-25 12:37:49 +00:00
Alpha: auto_send_reactions bug fix
This commit is contained in:
parent
7ec8114d4b
commit
49a6ddcbce
@ -94,7 +94,7 @@ async def AutoSendReactions(client: Client, message: Message):
|
|||||||
f"✅ 已{'更新' if hasSetted else '添加'}对 __{user_name}__ 的自动回复Emoji设置**",
|
f"✅ 已{'更新' if hasSetted else '添加'}对 __{user_name}__ 的自动回复Emoji设置**",
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await message.edit(message, f"❌ **在设置中遇到了一些错误** > {e}")
|
await message.edit(f"❌ **在设置中遇到了一些错误** > {e}")
|
||||||
await log(e) # 打印错误日志
|
await log(e) # 打印错误日志
|
||||||
|
|
||||||
elif reply and (len(message.parameter) == 2):
|
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设置",
|
f"✅ 已{'更新' if hasSetted else '添加'}对 __{user_name}__ 的自动回复Emoji设置",
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await message.edit(message, f"❌ **在设置中遇到了一些错误** > {e}")
|
await message.edit(f"❌ **在设置中遇到了一些错误** > {e}")
|
||||||
await log(e) # 打印错误日志
|
await log(e) # 打印错误日志
|
||||||
else:
|
else:
|
||||||
return await message.edit(f"{lang('error_prefix')}{lang('arg_error')}")
|
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哦~"
|
message, f"❌ 还没有对 __{user_name}__ 设置自动回复Emoji哦~"
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await message.edit(message, f"❌ **在设置中遇到了一些错误** > {e}")
|
await message.edit(f"❌ **在设置中遇到了一些错误** > {e}")
|
||||||
await log(e) # 打印错误日志
|
await log(e) # 打印错误日志
|
||||||
|
|
||||||
elif reply and (len(message.parameter) == 1):
|
elif reply and (len(message.parameter) == 1):
|
||||||
@ -170,7 +170,7 @@ async def AutoSendReactions(client: Client, message: Message):
|
|||||||
message, f"❌ 还没有对 __{user_name}__ 设置自动回复Emoji哦~"
|
message, f"❌ 还没有对 __{user_name}__ 设置自动回复Emoji哦~"
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await message.edit(message, f"❌ **在设置中遇到了一些错误** > {e}")
|
await message.edit(f"❌ **在设置中遇到了一些错误** > {e}")
|
||||||
await log(e) # 打印错误日志
|
await log(e) # 打印错误日志
|
||||||
else:
|
else:
|
||||||
return await message.edit(f"{lang('error_prefix')}{lang('arg_error')}")
|
return await message.edit(f"{lang('error_prefix')}{lang('arg_error')}")
|
||||||
@ -260,4 +260,4 @@ async def AutoSendReactions(message: Message):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
## ⬆️ 不懂勿动 ⬆️
|
## ⬆️ 不懂勿动 ⬆️
|
@ -2,7 +2,7 @@
|
|||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"name": "auto_send_reactions",
|
"name": "auto_send_reactions",
|
||||||
"version": "1.01",
|
"version": "1.2",
|
||||||
"section": "chat",
|
"section": "chat",
|
||||||
"maintainer": "xtaodada",
|
"maintainer": "xtaodada",
|
||||||
"size": "11.28 kb",
|
"size": "11.28 kb",
|
||||||
|
Loading…
Reference in New Issue
Block a user