diff --git a/plugins/echo.py b/plugins/echo.py index ff743ea..e47ebb0 100644 --- a/plugins/echo.py +++ b/plugins/echo.py @@ -13,7 +13,7 @@ __plugin_meta__ = { "usage": "/echo [内容] - 复读内容\n/赞我 - 让机器人给你点赞", } -@matcher.command("echo",permission=MessageEvent.ADMIN) +@matcher.command("echo") async def handle_echo(bot: Bot, event: MessageEvent, args: list[str]): """ 处理 echo 指令,原样回复用户输入的内容 @@ -31,7 +31,6 @@ async def handle_echo(bot: Bot, event: MessageEvent, args: list[str]): @matcher.command( "赞我", - permission=MessageEvent.ADMIN, override_permission_check=True ) async def handle_poke(bot: Bot, event: MessageEvent, permission_granted: bool): @@ -51,4 +50,4 @@ async def handle_poke(bot: Bot, event: MessageEvent, permission_granted: bool): await bot.send_like(event.user_id, times=10) await event.reply("好感度+10!(〃'▽'〃)") except Exception as e: - await event.reply(f"点赞失败了 >_<: {str(e)}") \ No newline at end of file + await event.reply(f"点赞失败了 >_<: {str(e)}")