added infinite loop to keep the logs running and os compatibility

This commit is contained in:
Alexander 2024-08-23 19:20:10 -04:00
parent 825d82e5cf
commit c13817a61a

View file

@ -46,10 +46,11 @@ def load_chat(latest_block):
}) })
loop = asyncio.new_event_loop() loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop) asyncio.set_event_loop(loop)
try: while True:
asyncio.run(keep_chat_updated(event_filter, 2)) try:
except KeyboardInterrupt: asyncio.run(keep_chat_updated(event_filter, 2))
pass except KeyboardInterrupt:
break
def output_line(log): def output_line(log):