Fix README

This commit is contained in:
taizan-hokuto
2019-12-30 17:27:25 +09:00
parent ce96d94e23
commit b8bc00d880

View File

@@ -102,7 +102,7 @@ from pytchat import ReplayChat
def main(): def main():
chat = ReplayChat("ojes5ULOqhc", seektime = 60*30) chat = ReplayChat("ojes5ULOqhc", seektime = 60*30)
while True: while chat.is_alive():
data = chat.get() data = chat.get()
for c in data.items: for c in data.items:
print(f"{c.elapsedTime} [{c.author.name}]-{c.message} {c.amountString}") print(f"{c.elapsedTime} [{c.author.name}]-{c.message} {c.amountString}")