Merge pull request #38 from scoobybejesus/patch-9
Proper xmrtall spacing makes luigi happy
This commit is contained in:
commit
a18ac6fc0a
20
price.py
20
price.py
|
@ -603,7 +603,7 @@ def xmrtall(bot, trigger):
|
||||||
# Finally, price in BTC, and volume in XMR
|
# Finally, price in BTC, and volume in XMR
|
||||||
thumbBTCxmr = thumbXMRkrw/thumbBTCkrw
|
thumbBTCxmr = thumbXMRkrw/thumbBTCkrw
|
||||||
thumbXMRVol = float(xmrjson['data']['volume_1day'])
|
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:
|
except:
|
||||||
bot.say("Error - bithumb korea is worst korea.")
|
bot.say("Error - bithumb korea is worst korea.")
|
||||||
|
|
||||||
|
@ -644,7 +644,7 @@ def xmrtall(bot, trigger):
|
||||||
if i["symbol"] == "XMRBTC":
|
if i["symbol"] == "XMRBTC":
|
||||||
last=float(i['lastPrice'])
|
last=float(i['lastPrice'])
|
||||||
vol=float(i['volume'])
|
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
|
found = True
|
||||||
except:
|
except:
|
||||||
bot.say("Borka borka ┌∩┐(◣_◢)┌∩┐")
|
bot.say("Borka borka ┌∩┐(◣_◢)┌∩┐")
|
||||||
|
@ -674,12 +674,12 @@ def xmrtall(bot, trigger):
|
||||||
last=float(i['LastPrice'])
|
last=float(i['LastPrice'])
|
||||||
# change=float(i['Change'])
|
# change=float(i['Change'])
|
||||||
vol=float(i['Volume'])
|
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
|
found = True
|
||||||
if found == False:
|
# if found == False:
|
||||||
bot.say("WTF?!?")
|
# bot.say("WTF?!?")
|
||||||
except:
|
# except:
|
||||||
bot.say("Something borked ( -.-)ノ-=≡≡卍")
|
# bot.say("Something borked ( -.-)ノ-=≡≡卍")
|
||||||
|
|
||||||
# Tux
|
# Tux
|
||||||
try:
|
try:
|
||||||
|
@ -693,9 +693,9 @@ def xmrtall(bot, trigger):
|
||||||
last=float(coin['last'])
|
last=float(coin['last'])
|
||||||
vol=float(coin['baseVolume'])
|
vol=float(coin['baseVolume'])
|
||||||
# change=float(coin['percentChange'])
|
# change=float(coin['percentChange'])
|
||||||
stringtosend += "Tux last: {0:.6f} BTC on {1:.2f} BTC volume. ".format(last, vol)
|
# stringtosend += "Tux last: {0:.6f} BTC on {1:.2f} BTC volume. ".format(last, vol)
|
||||||
except:
|
# except:
|
||||||
bot.say("Something borked ( ︶︿︶)_╭∩╮")
|
# bot.say("Something borked ( ︶︿︶)_╭∩╮")
|
||||||
#Finally... print to IRC
|
#Finally... print to IRC
|
||||||
bot.say(stringtosend[:-1])
|
bot.say(stringtosend[:-1])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue