From 19889cc78659542bebf65f3ce584cb8e9fff32ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9A=E7=BE=85=E7=8B=BC?= Date: Fri, 22 Mar 2024 17:29:06 +0800 Subject: [PATCH] update abuse --- modules/core/su_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/su_utils.py b/modules/core/su_utils.py index 7a0d0707..1377b96d 100644 --- a/modules/core/su_utils.py +++ b/modules/core/su_utils.py @@ -197,7 +197,7 @@ async def _(msg: Bot.MessageSession, user: str): await msg.finish(msg.locale.t("core.message.abuse.unban.success", user=user)) -@ae.command('block ') +@ae.command('block ', available_for='QQ|Group') async def _(msg: Bot.MessageSession, target: str): if not target.startswith(f'{msg.target.target_from}|'): await msg.finish(msg.locale.t("message.id.invalid.target", target=msg.target.target_from)) @@ -207,7 +207,7 @@ async def _(msg: Bot.MessageSession, target: str): await msg.finish(msg.locale.t("core.message.abuse.block.success", target=target)) -@ae.command('unblock ') +@ae.command('unblock ', available_for='QQ|Group') async def _(msg: Bot.MessageSession, target: str): if not target.startswith(f'{msg.target.target_from}|'): await msg.finish(msg.locale.t("message.id.invalid.target", target=msg.target.target_from))