mirror of
https://git.wownero.com/wowlet/wowlet-backend.git
synced 2024-08-15 01:03:13 +00:00
Initial support for a trollbox
This commit is contained in:
parent
e79059820f
commit
0619522bb1
6 changed files with 104 additions and 12 deletions
|
@ -161,3 +161,54 @@ async def image_resize(buffer: bytes, max_bounding_box: int = 512, quality: int
|
|||
buffer.seek(0)
|
||||
|
||||
return buffer.read()
|
||||
|
||||
|
||||
async def whaleornot(amount: float):
|
||||
if amount <= 0:
|
||||
fish_str = "amoeba"
|
||||
elif amount < 100:
|
||||
fish_str = "plankton"
|
||||
elif amount >= 100 and amount < 200:
|
||||
fish_str = "Paedocypris"
|
||||
elif amount >= 200 and amount < 500:
|
||||
fish_str = "Dwarf Goby"
|
||||
elif amount >= 500 and amount < 1000:
|
||||
fish_str = "European Pilchard"
|
||||
elif amount >= 1000 and amount < 2000:
|
||||
fish_str = "Goldfish"
|
||||
elif amount >= 2000 and amount < 4000:
|
||||
fish_str = "Herring"
|
||||
elif amount >= 4000 and amount < 7000:
|
||||
fish_str = "Atlantic Macerel"
|
||||
elif amount >= 7000 and amount < 9000:
|
||||
fish_str = "Gilt-head Bream"
|
||||
elif amount >= 9000 and amount < 12000:
|
||||
fish_str = "Salmonidae"
|
||||
elif amount >= 12000 and amount < 20000:
|
||||
fish_str = "Gadidae"
|
||||
elif amount >= 20000 and amount < 40000:
|
||||
fish_str = "Norwegian Delicious Salmon"
|
||||
elif amount >= 40000 and amount < 60000:
|
||||
fish_str = "Electric eel"
|
||||
elif amount >= 60000 and amount < 80000:
|
||||
fish_str = "Tuna"
|
||||
elif amount >= 80000 and amount < 100000:
|
||||
fish_str = "Wels catfish"
|
||||
elif amount >= 100000 and amount < 120000:
|
||||
fish_str = "Black marlin"
|
||||
elif amount >= 120000 and amount < 160000:
|
||||
fish_str = "Shark"
|
||||
elif amount >= 160000 and amount < 220000:
|
||||
fish_str = "Dolphin"
|
||||
elif amount >= 220000 and amount < 320000:
|
||||
fish_str = "Narwhal"
|
||||
elif amount >= 320000 and amount < 500000:
|
||||
fish_str = "Orca"
|
||||
elif amount >= 500000 and amount < 700000:
|
||||
fish_str = "Blue Whale"
|
||||
elif amount >= 700000 and amount < 1000000:
|
||||
fish_str = "Leviathan"
|
||||
else:
|
||||
fish_str = "Cthulu"
|
||||
return fish_str
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue