From 6655e1bce46401ee1023f9bd9e6f49aeef83e4bb Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Mon, 11 Nov 2019 23:46:04 +0900 Subject: [PATCH] Update README --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9ecfde9..239b852 100644 --- a/README.md +++ b/README.md @@ -45,10 +45,10 @@ while chat.is_alive(): #other background operation here. time.sleep(3) -def func(chatdata): - for c in chatdata.items: +def func(data): + for c in data.items: print(f"{c.datetime} [{c.author.name}]-{c.message} {c.amountString}") - chat.tick() + data.tick() ``` ### asyncio context: @@ -62,10 +62,10 @@ async def main(): #other background operation here. await asyncio.sleep(3) -async def func(chat) - for c in chat.items: +async def func(data) + for c in data.items: print(f"{c.datetime} [{c.author.name}]-{c.message} {c.amountString}") - await chat.tick_async() + await data.tick_async() loop = asyncio.get_event_loop() loop.run_until_complete(main())