summaryrefslogtreecommitdiff
path: root/ffxiv_test.py
diff options
context:
space:
mode:
authorlexicade <jasonnlelong@gmail.com>2023-01-27 21:06:30 +0000
committerlexicade <jasonnlelong@gmail.com>2023-01-27 21:06:30 +0000
commit52801b4de1d63cd01191acf7fcee137977140ec0 (patch)
tree08271a1f1e3e8060486b6651c67c9934867c648e /ffxiv_test.py
parent8df873808c86805624851356f5dea76ec621de23 (diff)
Project initHEADmain
Diffstat (limited to 'ffxiv_test.py')
-rw-r--r--ffxiv_test.py25
1 files changed, 25 insertions, 0 deletions
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}")