commit
332d4351e1
4
price.py
4
price.py
|
@ -367,7 +367,7 @@ def top(bot, trigger):
|
||||||
mylist = range(1,limit + 1)
|
mylist = range(1,limit + 1)
|
||||||
if limit > 10:
|
if limit > 10:
|
||||||
bot.say("Too high! Max is 10!")
|
bot.say("Too high! Max is 10!")
|
||||||
else if limit < 1:
|
elif limit < 1:
|
||||||
bot.say("Dude...")
|
bot.say("Dude...")
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
@ -389,7 +389,7 @@ def top(bot, trigger):
|
||||||
price_btc = float(coin['price_btc'])
|
price_btc = float(coin['price_btc'])
|
||||||
market_cap_usd = float(coin['market_cap_usd'])
|
market_cap_usd = float(coin['market_cap_usd'])
|
||||||
if market_cap_usd >= 1000000000:
|
if market_cap_usd >= 1000000000:
|
||||||
market_cap_short = int(round(market_cap_usd,-9)/1000000000
|
market_cap_short = int(int(round(market_cap_usd,-9))/int(1000000000))
|
||||||
rounded_mcap = str(market_cap_short)+"B"
|
rounded_mcap = str(market_cap_short)+"B"
|
||||||
else:
|
else:
|
||||||
rounded_mcap = "tiny"
|
rounded_mcap = "tiny"
|
||||||
|
|
Loading…
Reference in New Issue