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 re
# networkurl = "http://node.marty.cf:18019/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')
def fork(bot, trigger):

View File

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