fix:修改插件基类,现在支持任意类型发送

This commit is contained in:
SengokuCola
2025-05-23 10:53:18 +08:00
parent 7acee94ee4
commit 0eb1320481
5 changed files with 15 additions and 10 deletions

View File

@@ -40,7 +40,11 @@ class MuteAction(PluginAction):
await self.send_message_by_expressor(f"我要禁言{target}{platform},时长{duration}秒,理由{reason},表达情绪")
try:
await self.send_message(f"[command]mute,{user_id},{duration}")
await self.send_message(
type = "text",
data = f"[command]mute,{user_id},{duration}",
# target = target
)
except Exception as e:
logger.error(f"{self.log_prefix} 执行mute动作时出错: {e}")