Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
多羅狼 2024-02-01 16:54:51 +08:00 committed by GitHub
parent 40f1e28d03
commit bd3caa5bec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -230,7 +230,9 @@ async def terminate(msg: Bot.MessageSession):
if state:
if state['active']: # 检查是否为活跃状态
play_state[msg.target.target_id]['active'] = False
await msg.finish(msg.locale.t('wordle.message.stop', answer=board.word))
answer = board.word
board.reset_board()
await msg.finish(msg.locale.t('wordle.message.stop', answer=answer))
else:
await msg.finish(msg.locale.t('game.message.stop.none'))
else: