mirror of
https://github.com/hanxi/xiaomusic.git
synced 2025-12-16 16:38:16 +08:00
优化关机提示
This commit is contained in:
@@ -855,7 +855,7 @@ class XiaoMusic:
|
|||||||
async def stop(self, **kwargs):
|
async def stop(self, **kwargs):
|
||||||
self._playing = False
|
self._playing = False
|
||||||
if kwargs.get("arg1", "") != "notts":
|
if kwargs.get("arg1", "") != "notts":
|
||||||
await self.do_tts("收到关机口令,再见")
|
await self.do_tts("收到指令,再见")
|
||||||
if self._next_timer:
|
if self._next_timer:
|
||||||
self._next_timer.cancel()
|
self._next_timer.cancel()
|
||||||
self.log.info("定时器已取消")
|
self.log.info("定时器已取消")
|
||||||
|
|||||||
Reference in New Issue
Block a user