Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
raise ValueError(SnuggleLevel)
SnuggleRank = Snuggle.getRank()
if SnuggleRank['rank'] == "Moderator":
print("Snuggle's is a {}.".format(SnuggleRank))
else:
raise ValueError(SnuggleRank)
SnuggleKarma = Snuggle.JSON['karma']
if SnuggleKarma > 0:
print("Snuggle has {} karma.".format(SnuggleKarma))
else:
raise ValueError(SnuggleKarma)
SnuggleGuildID = Snuggle.getGuildID()
SnuggleGuild = hypixel.Guild(SnuggleGuildID)
print("Snuggle's guild is called {}.".format(SnuggleGuild.JSON['name']))
end = time.time()
totalTime=end-start
print("\nDone! All tests finished successfully. Time taken: {}".format(totalTime))