From 52801b4de1d63cd01191acf7fcee137977140ec0 Mon Sep 17 00:00:00 2001 From: lexicade Date: Fri, 27 Jan 2023 21:06:30 +0000 Subject: Project init --- ffxiv_test.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ffxiv_test.py (limited to 'ffxiv_test.py') diff --git a/ffxiv_test.py b/ffxiv_test.py new file mode 100644 index 0000000..87e7433 --- /dev/null +++ b/ffxiv_test.py @@ -0,0 +1,25 @@ +import asyncio +from datetime import timedelta + +import psycopg2 +import time +from ffxiv.ffxiv_core import FFXIVCharacter + +character = FFXIVCharacter(character_id=16948279) # Hoptimus +# character = FFXIVCharacter(character_id=31356200) # Leonieros +# character = FFXIVCharacter(character_id=24587891) # Lille +# character = FFXIVCharacter(character_id=36388961) # Cleftin +# character = FFXIVCharacter(character_id=42094919) # Bekuh (Maddie) + +asyncio.run(character.obtain_character_data()) +asyncio.run(character.build_character_view()) + +# epoch = 1654714864 +# delta = timedelta(hours=23).seconds +# ctime = int(time.time()) +# print((ctime - epoch) > delta) +# print(f"epoch: {epoch}") +# print(f"delta: {delta}") +# print(f"ctime: {ctime}") +# print(f"ctime - epoch: {(ctime - epoch)}") +# print(f"ctime - epoch: {(ctime - epoch) > delta}") -- cgit v1.2.3