Skip to content

Commit

Permalink
feat: added a message for invalid uuids
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxgh committed Feb 25, 2024
1 parent 254bd9f commit eb3ae5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/referral_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ async def validate_invites(inviter_ign, invitee_ign):
inviter_ign, inviter_uuid = await get_mojang_profile(inviter_ign) if inviter_ign else (None, None)
if not inviter_uuid:
return f"{inviter_ign} is not a valid minecraft username.\nThis reference will not count."
if not invitee_uuid:
return f"Bot broke. \n{invitee_ign} is not a valid minecraft username.\nThis reference will not count."

guild_data = await get_player_guild(inviter_uuid)
guild_name = "Guildless" if not guild_data else guild_data["name"]
Expand Down

0 comments on commit eb3ae5c

Please sign in to comment.