优化关机提示

This commit is contained in:
涵曦 2024-06-30 05:27:44 +00:00
parent 148c5b7621
commit 959acd8fb7

View File

@ -855,7 +855,7 @@ class XiaoMusic:
async def stop(self, **kwargs):
self._playing = False
if kwargs.get("arg1", "") != "notts":
await self.do_tts("收到关机口令,再见")
await self.do_tts("收到令,再见")
if self._next_timer:
self._next_timer.cancel()
self.log.info("定时器已取消")