Fix whale or not

This commit is contained in:
root 2017-07-02 19:57:12 +00:00
parent f4c779b549
commit 0142fcb49d
1 changed files with 50 additions and 47 deletions

View File

@ -597,7 +597,8 @@ def whaleornot(bot, trigger):
if not trigger.group(2):
bot.say("Gotta have skin in the game to be a big fish! Add some XMR after the command to see what level the player is at!")
else
else:
try:
xmr_size = int(trigger.group(2))
if xmr_size < 0.1:
fish_string = "plankton"
@ -643,5 +644,7 @@ def whaleornot(bot, trigger):
fish_string = "Leviathan"
elif xmr_size >= 200000:
fish_string = "Cthulu"
bot.say("{0} level.".format(fish_string))
except:
bot.say("Try a base ten representation of a number")