消息触发

This commit is contained in:
ccc_dw 2023-11-08 18:42:53 +08:00
parent 57b6eeb512
commit 3fab105380
2 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@ status = on_command("2042战绩", aliases=status_aliases)
@status.handle()
async def handle_status(event: MessageEvent, state: T_State):
m_state = MessageState(state)
print(state)
cmd = m_state.get_command()
msg = m_state.get_command_arg()
cmd = cmd[0]

View File

@ -17,6 +17,7 @@ test = on_command("测试", aliases={"测试"})
@test.handle()
async def handle_test(event: MessageEvent, state: T_State):
m_state = MessageState(state)
print(state)
cmd = m_state.get_command()
msg = m_state.get_command_arg()
uid = event.user_id