update before pull

This commit is contained in:
root 2018-07-28 14:00:43 +00:00
parent e2721b3dad
commit 3fd33aa2f1
2 changed files with 8 additions and 3 deletions

View File

@ -2,8 +2,10 @@ import sopel.module
import requests import requests
import re import re
# networkurl = "http://node.marty.cf:18019/getinfo"
# networkurl = "http://node.xmrbackb.one:18081/getinfo" # networkurl = "http://node.xmrbackb.one:18081/getinfo"
networkurl = "http://opennode.minemonero.pro:18081/getinfo" # networkurl = "http://opennode.minemonero.pro:18081/getinfo"
networkurl = "http://node.xmr.pt:18081/getinfo"
@sopel.module.commands('fork', 'forkening') @sopel.module.commands('fork', 'forkening')
def fork(bot, trigger): def fork(bot, trigger):

View File

@ -616,8 +616,11 @@ def tall(bot, trigger):
finexjson = finexresult.json() finexjson = finexresult.json()
except: except:
finexjson = False finexjson = False
try:
if finexjson: if finexjson:
stringtosend += "Bitfinex last: {0:,.2f}, vol: {1:,.1f} | ".format(float(finexjson['last_price']), float(finexjson['volume'])) stringtosend += "Bitfinex last: {0:,.2f}, vol: {1:,.1f} | ".format(float(finexjson['last_price']), float(finexjson['volume']))
except:
stringtosend += "Finex sucks | "
# Bitthumb # Bitthumb
try: try:
thumbresult = requests.get(thumbbtcurl) thumbresult = requests.get(thumbbtcurl)