Fix whale or not
This commit is contained in:
parent
f4c779b549
commit
0142fcb49d
97
trifling.py
97
trifling.py
|
@ -597,51 +597,54 @@ def whaleornot(bot, trigger):
|
||||||
|
|
||||||
if not trigger.group(2):
|
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!")
|
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:
|
||||||
xmr_size = int(trigger.group(2))
|
try:
|
||||||
if xmr_size < 0.1:
|
xmr_size = int(trigger.group(2))
|
||||||
fish_string = "plankton"
|
if xmr_size < 0.1:
|
||||||
elif xmr_size >= 0.1 and xmr_size < 0.2:
|
fish_string = "plankton"
|
||||||
fish_string = "Paedocypris"
|
elif xmr_size >= 0.1 and xmr_size < 0.2:
|
||||||
elif xmr_size >= 0.2 and xmr_size < 0.5:
|
fish_string = "Paedocypris"
|
||||||
fish_string = "Dwarf Goby"
|
elif xmr_size >= 0.2 and xmr_size < 0.5:
|
||||||
elif xmr_size >= 0.5 and xmr_size < 1:
|
fish_string = "Dwarf Goby"
|
||||||
fish_string = "European Pilchard"
|
elif xmr_size >= 0.5 and xmr_size < 1:
|
||||||
elif xmr_size >= 1 and xmr_size < 2:
|
fish_string = "European Pilchard"
|
||||||
fish_string = "Goldfish"
|
elif xmr_size >= 1 and xmr_size < 2:
|
||||||
elif xmr_size >= 2 and xmr_size < 5:
|
fish_string = "Goldfish"
|
||||||
fish_string = "Herring"
|
elif xmr_size >= 2 and xmr_size < 5:
|
||||||
elif xmr_size >= 5 and xmr_size < 10:
|
fish_string = "Herring"
|
||||||
fish_string = "Atlantic Macerel"
|
elif xmr_size >= 5 and xmr_size < 10:
|
||||||
elif xmr_size >= 10 and xmr_size < 20:
|
fish_string = "Atlantic Macerel"
|
||||||
fish_string = "Gilt-head Bream"
|
elif xmr_size >= 10 and xmr_size < 20:
|
||||||
elif xmr_size >= 20 and xmr_size < 50:
|
fish_string = "Gilt-head Bream"
|
||||||
fish_string = "Salmonidae"
|
elif xmr_size >= 20 and xmr_size < 50:
|
||||||
elif xmr_size >= 50 and xmr_size < 100:
|
fish_string = "Salmonidae"
|
||||||
fish_string = "Gadidae"
|
elif xmr_size >= 50 and xmr_size < 100:
|
||||||
elif xmr_size >= 100 and xmr_size < 200:
|
fish_string = "Gadidae"
|
||||||
fish_string = "Norwegian Delicious Salmon"
|
elif xmr_size >= 100 and xmr_size < 200:
|
||||||
elif xmr_size >= 200 and xmr_size < 500:
|
fish_string = "Norwegian Delicious Salmon"
|
||||||
fish_string = "Electric eel"
|
elif xmr_size >= 200 and xmr_size < 500:
|
||||||
elif xmr_size >= 500 and xmr_size < 1000:
|
fish_string = "Electric eel"
|
||||||
fish_string = "Tuna"
|
elif xmr_size >= 500 and xmr_size < 1000:
|
||||||
elif xmr_size >= 1000 and xmr_size < 2000:
|
fish_string = "Tuna"
|
||||||
fish_string = "Wels catfish"
|
elif xmr_size >= 1000 and xmr_size < 2000:
|
||||||
elif xmr_size >= 2000 and xmr_size < 5000:
|
fish_string = "Wels catfish"
|
||||||
fish_string = "Black marlin"
|
elif xmr_size >= 2000 and xmr_size < 5000:
|
||||||
elif xmr_size >= 5000 and xmr_size < 10000:
|
fish_string = "Black marlin"
|
||||||
fish_string = "Shark"
|
elif xmr_size >= 5000 and xmr_size < 10000:
|
||||||
elif xmr_size >= 10000 and xmr_size < 20000:
|
fish_string = "Shark"
|
||||||
fish_string = "Dolphin"
|
elif xmr_size >= 10000 and xmr_size < 20000:
|
||||||
elif xmr_size >= 20000 and xmr_size < 40000:
|
fish_string = "Dolphin"
|
||||||
fish_string = "Narwhal"
|
elif xmr_size >= 20000 and xmr_size < 40000:
|
||||||
elif xmr_size >= 40000 and xmr_size < 60000:
|
fish_string = "Narwhal"
|
||||||
fish_string = "Orca"
|
elif xmr_size >= 40000 and xmr_size < 60000:
|
||||||
elif xmr_size >= 60000 and xmr_size < 100000:
|
fish_string = "Orca"
|
||||||
fish_string = "Blue Whale"
|
elif xmr_size >= 60000 and xmr_size < 100000:
|
||||||
elif xmr_size >= 100000 and xmr_size < 200000:
|
fish_string = "Blue Whale"
|
||||||
fish_string = "Leviathan"
|
elif xmr_size >= 100000 and xmr_size < 200000:
|
||||||
elif xmr_size >= 200000:
|
fish_string = "Leviathan"
|
||||||
fish_string = "Cthulu"
|
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")
|
||||||
|
|
||||||
bot.say("{0} level.".format(fish_string))
|
|
||||||
|
|
Loading…
Reference in New Issue