Fixing weird json things

This commit is contained in:
Kevin Rode 2021-01-03 22:55:51 -05:00
parent 779e6058f0
commit cbb30cb2e9

View File

@ -768,7 +768,8 @@ def build_star_embed(player_json):
embedstring += "⚪️" embedstring += "⚪️"
embed.add_field(name=starkeys[key], value=embedstring, inline=False) embed.add_field(name=starkeys[key], value=embedstring, inline=False)
print(player_json) print(player_json)
vibes = int(player_json["current_vibe"]) vibes = str(player_json["current_vibe"])
vibes = int(vibes[0])
vibe = vibe_check(vibes) vibe = vibe_check(vibes)
embed.add_field(name="Vibe", value=vibe, inline=False) embed.add_field(name="Vibe", value=vibe, inline=False)
return embed return embed