fix:修改插件基类,现在支持任意类型发送
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user