Archived
1
0
Fork 0

update abuse

This commit is contained in:
多羅狼 2024-03-22 17:29:06 +08:00 committed by GitHub
parent c174c4e875
commit 19889cc786
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 <target>')
@ae.command('block <target>', 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 <target>')
@ae.command('unblock <target>', 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))