From 9f5d3f323e3b84c0c4163c992464e90e8e83b2c4 Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Thu, 19 Dec 2019 02:00:41 +0900 Subject: [PATCH] Fix README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a6df840..ebba8f0 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,8 @@ import asyncio async def main(): chat = ReplayChatAsync("G1w62uEMZ74", seektime = 1000, callback = func) + while chat.is_alive(): + await asyncio.sleep(3) #other background operation here. #callback function is automatically called periodically.