Compare commits

..

No commits in common. "c616de64b9a215832d53286cdbc0fc4858bc7d3b" and "9589dae3b535ead92735a20efb82edab72b668be" have entirely different histories.

1 changed files with 1 additions and 3 deletions

View File

@ -460,9 +460,7 @@ def top(bot, trigger):
market_cap_usd = float(i['market_cap']) market_cap_usd = float(i['market_cap'])
rounded_mcap = trim_mcap(market_cap_usd) rounded_mcap = trim_mcap(market_cap_usd)
topXstring += "{0}. {1} ${2} | ".format(rank, symbol, rounded_mcap) #TODO: add price_usd, rounded topXstring += "{0}. {1} ${2} | ".format(rank, symbol, rounded_mcap) #TODO: add price_usd, rounded
xmr_str = topXstring[-32:] # monero is at the end, and might get truncated bot.say(topXstring[:-2])
final = (topXstring[:125] + " {...} " + xmr_str) if len(topXstring) > 165 else topXstring
bot.say(final[:-2])
except: except:
bot.say("The use is 'top' and then a digit 1 - 20") bot.say("The use is 'top' and then a digit 1 - 20")