重置命令为shell style,并使用快捷方式保留之前的行为

This commit is contained in:
2024-06-10 00:47:17 +08:00
parent a4247abdad
commit bcca869e72
13 changed files with 125 additions and 148 deletions

View File

@@ -47,7 +47,7 @@ UTC = timezone.utc
driver = get_driver()
@alc.assign('query')
@alc.assign('TETRIO.query')
async def _(event: Event, matcher: Matcher, target: At | Me, event_session: EventSession):
async with trigger(
session_persist_id=await get_session_persist_id(event_session),
@@ -77,7 +77,7 @@ async def _(event: Event, matcher: Matcher, target: At | Me, event_session: Even
await message.finish()
@alc.assign('query')
@alc.assign('TETRIO.query')
async def _(account: Player, event_session: EventSession):
async with trigger(
session_persist_id=await get_session_persist_id(event_session),