From cbb30cb2e9682640fdb3834e9ff34269f0aa3514 Mon Sep 17 00:00:00 2001 From: Kevin Rode Date: Sun, 3 Jan 2021 22:55:51 -0500 Subject: [PATCH] Fixing weird json things --- the_prestige.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/the_prestige.py b/the_prestige.py index 24ab861..fcc44bb 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -768,7 +768,8 @@ def build_star_embed(player_json): embedstring += "⚪️" embed.add_field(name=starkeys[key], value=embedstring, inline=False) print(player_json) - vibes = int(player_json["current_vibe"]) + vibes = str(player_json["current_vibe"]) + vibes = int(vibes[0]) vibe = vibe_check(vibes) embed.add_field(name="Vibe", value=vibe, inline=False) return embed