Skip to content

Commit

Permalink
dont know what im doing
Browse files Browse the repository at this point in the history
Added a fail for decrypted string returning none I think?
  • Loading branch information
FrontierProphet authored Dec 9, 2024
1 parent bf0f08b commit 41b9780
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/tfkeyprice/tf_key_price.star
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ load("http.star", "http")
load("encoding/base64.star", "base64")
load("secret.star", "secret")

KEY_PRICE_URL = secret.decrypt("AV6+xWcEWAz05OoP0h2mmP2O0ju1gTgFug7CQeqPsePy/1czmd5aXUghIRQFwsoIUOKU5pJ8UrotOZDp73BXR9a1zoZLQC0+OSkz0Oo3plwwanYo6VbLdLqmS6DdWEJQDd72Vk0NWld+RWkRvJ55zVIVWr3bCTkgJZCEyXp3fypL78zePll8g7PpY7UOC+Y+2ZSZZI9VClYHNLegeFNguH72X6ZWrbxcrQgJOyjKoGK6zA==")

TF2_ICON = base64.decode("""iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAbkSURBVFjDxVd5bJRFFJ/5ju7Z0rKF0qJFatWgKDZBVCAYNSbGVDwiMdE/LJoY/QM0waABI2mMIha8gsGo0RjjEbSGoIK3AiLKURQI9Figyrbbbq/d7vGdM+Ob7+p2WWo1JO7mZeb7Zt683/zemzfvQ+h//uH/otT+QWOlbhqXYFOIMEGMXrX8i/b/CkCa7MS2LTfOkyTUxLDQqClqPUICovCP9+fWwPB6Pmffltub/D5xscHQ+wse2rbrvABo27L4coxxC0P0NkIwYvDnP3hGHERHLJVw5w4mc7dUR8L3CVh4aP+bd++nCD9x3cOteyZaXzjXAJjBBzYvWkUIOmwSBMYZMrmYXKjXnoxloo6KKCBc745RyhYwgnb9+sY9r2xdt6zkXwFgW5eJv7268F1K0UaQEmIiRCyD0DpAeKvrlHy6K3baUSuRBKG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ZSZZI9VClYHNLegeFNguH72X6ZWrbxcrQgJOyjKoGK6zA=="), ttl_seconds = 240)
if KEY_PRICE_URL == none:
fail("Bakcpack.tf request failed")
rep = http.get(KEY_PRICE_URL, ttl_seconds = 240)
if rep.status_code != 200:
fail("Bakcpack.tf request failed with status %d", rep.status_code)

Expand All @@ -33,4 +37,4 @@ def main(config):
main_align = "space_between",
cross_align = "center",
),
)
)

0 comments on commit 41b9780

Please sign in to comment.