From be6ca4f099d0b39820b1543003d394f3eadd2aa3 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 4 Apr 2021 15:19:13 +0000 Subject: [PATCH] update top command --- price.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/price.py b/price.py index 5b64423..91a9b1d 100644 --- a/price.py +++ b/price.py @@ -476,7 +476,7 @@ def top(bot, trigger): rounded_mcap = trim_mcap(market_cap_usd) 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 - final = (topXstring[:125] + " {...} " + xmr_str) if len(topXstring) > 165 else topXstring + final = (topXstring[:350] + " {...} " + xmr_str) if len(topXstring) > 350 else topXstring bot.say(final[:-2]) except: bot.say("The use is 'top' and then a digit 1 - 20")