From aa52c5ec976a322fc7cf281b9e86ad103f841867 Mon Sep 17 00:00:00 2001 From: scoobybejesus Date: Thu, 15 Feb 2018 12:30:38 -0500 Subject: [PATCH 1/2] Proper xmrtall spacing makes luigi happy --- price.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/price.py b/price.py index a003dec..bd6bd73 100644 --- a/price.py +++ b/price.py @@ -603,7 +603,7 @@ def xmrtall(bot, trigger): # Finally, price in BTC, and volume in XMR thumbBTCxmr = thumbXMRkrw/thumbBTCkrw thumbXMRVol = float(xmrjson['data']['volume_1day']) - stringtosend = "Bithumb last: {0:.6f} BTC on {1:.2f} XMR volume |".format(thumbBTCxmr,thumbXMRVol) + stringtosend = "Bithumb last: {0:.6f} BTC on {1:.2f} XMR volume | ".format(thumbBTCxmr,thumbXMRVol) except: bot.say("Error - bithumb korea is worst korea.") @@ -644,7 +644,7 @@ def xmrtall(bot, trigger): if i["symbol"] == "XMRBTC": last=float(i['lastPrice']) vol=float(i['volume']) - stringtosend += ("Binance last: {0:.6f} on {1:.2f} BTC volume |".format(last, vol*last)) + stringtosend += ("Binance last: {0:.6f} on {1:.2f} BTC volume | ".format(last, vol*last)) found = True except: bot.say("Borka borka ┌∩┐(◣_◢)┌∩┐") From 180d6e1aea34890cdcbc6e14f82c552dc71196d6 Mon Sep 17 00:00:00 2001 From: scoobybejesus Date: Thu, 15 Feb 2018 18:30:19 -0500 Subject: [PATCH 2/2] Comment out tux and cryptopia string additions from .xmrtall --- price.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/price.py b/price.py index bd6bd73..011b3c1 100644 --- a/price.py +++ b/price.py @@ -674,12 +674,12 @@ def xmrtall(bot, trigger): last=float(i['LastPrice']) # change=float(i['Change']) vol=float(i['Volume']) - stringtosend += "Cryptopia last: {0:.6f} {1} on {2:.2f} {1} volume | ".format(last, pair, vol*last) +# stringtosend += "Cryptopia last: {0:.6f} {1} on {2:.2f} {1} volume | ".format(last, pair, vol*last) found = True - if found == False: - bot.say("WTF?!?") - except: - bot.say("Something borked ( -.-)ノ-=≡≡卍") +# if found == False: +# bot.say("WTF?!?") +# except: +# bot.say("Something borked ( -.-)ノ-=≡≡卍") # Tux try: @@ -693,9 +693,9 @@ def xmrtall(bot, trigger): last=float(coin['last']) vol=float(coin['baseVolume']) # change=float(coin['percentChange']) - stringtosend += "Tux last: {0:.6f} BTC on {1:.2f} BTC volume. ".format(last, vol) - except: - bot.say("Something borked ( ︶︿︶)_╭∩╮") +# stringtosend += "Tux last: {0:.6f} BTC on {1:.2f} BTC volume. ".format(last, vol) +# except: +# bot.say("Something borked ( ︶︿︶)_╭∩╮") #Finally... print to IRC bot.say(stringtosend[:-1])