Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# Placeholder
from hypixel import hypixel
API_KEYS = ['API_KEY_HERE_PLS', 'ANOTHER_API_KEY?']
hypixel.setKeys(API_KEYS)
options = ['rank', 'level', 'karma', 'twitter']
while True:
mahInput = input("\nPlease give me a Minecraft username/UUID: ")
optionInput = input("Please select from list: {}\n> ".format(options))
try:
if optionInput.lower() == "rank":
player = hypixel.Player(mahInput)
playerJSON = player.getJSON()
print("The player is rank: " + player.getRank()['rank'])
print("Were they previously a staff member? {}".format(player.getRank()['wasStaff']))
elif optionInput.lower() == "level":
pass