Fix README

This commit is contained in:
taizan-hokuto
2019-12-19 01:51:31 +09:00
parent 2d3da91d51
commit 50c8e34080

View File

@@ -42,7 +42,9 @@ import time
def main() def main()
chat = LiveChat("G1w62uEMZ74", callback = func) chat = LiveChat("G1w62uEMZ74", callback = func)
#other background operation. while chat.is_alive():
time.sleep(3)
#other background operation.
#callback function is automatically called periodically. #callback function is automatically called periodically.
def func(data): def func(data):
@@ -58,7 +60,9 @@ import asyncio
async def main(): async def main():
chat = LiveChatAsync("G1w62uEMZ74", callback = func) chat = LiveChatAsync("G1w62uEMZ74", callback = func)
#other background operation. while chat.is_alive():
await asyncio.sleep(3)
#other background operation.
#callback function is automatically called periodically. #callback function is automatically called periodically.
async def func(data): async def func(data):