Merge branch 'master' into patch-10

This commit is contained in:
jw 2018-10-18 16:50:36 -07:00 committed by GitHub
commit 69760b1079
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 8 deletions

View File

@ -602,7 +602,19 @@ def tall(bot, trigger):
except: except:
gdaxjson = False gdaxjson = False
if gdaxjson: if gdaxjson:
stringtosend += "GDAX last: ${0:,.2f}, vol: {1:,.1f} | ".format(gdaxprice, gdaxvolume) stringtosend += "CBP last: ${0:,.2f}, vol: {1:,.1f} | ".format(gdaxprice, gdaxvolume)
# Binance
try:
binanceresult = requests.get(binanceurl)
binancejson = binanceresult.json()
for i in binancejson:
if i["symbol"] == "BTCUSDT":
binanceprice = float(i['lastPrice'])
binancevolume = float(i['volume'])
except:
binancejson = False
if binancejson:
stringtosend += "Binance last: ${0:,.2f}, vol: {1:,.1f} | ".format(binanceprice, binancevolume)
# Bitfinex # Bitfinex
try: try:
finexresult = requests.get(finexurl) finexresult = requests.get(finexurl)
@ -785,7 +797,7 @@ def comm(bot, trigger):
code = i['code'] code = i['code']
except: except:
bot.say("Error getting data or commodity not priced") bot.say("Error getting data or commodity not priced")
break return
try: try:
r2 = requests.get(commurl+code+'/data/'+apitoken) r2 = requests.get(commurl+code+'/data/'+apitoken)
j = r2.json() j = r2.json()

View File

@ -11,11 +11,15 @@ from threading import Timer
def fourmatter(bot, trigger): def fourmatter(bot, trigger):
bot.say('Irish I be fookin <3 Milo') bot.say('Irish I be fookin <3 Milo')
@sopel.module.commands('allah') # @sopel.module.commands('allah')
def allah(bot, trigger): # def allah(bot, trigger):
bot.say('allah is doing') # bot.say('allah is doing')
bot.say('sun is not doing allah is doing') # bot.say('sun is not doing allah is doing')
bot.say('to accept Islam say that i bear witness that there is no deity worthy of worship except Allah and Muhammad peace be upon him is his slave and messenger') # bot.say('to accept Islam say that i bear witness that there is no deity worthy of worship except Allah and Muhammad peace be upon him is his slave and messenger')
@sopel.module.commands('ada', 'hoskinson')
def ada(bot, trigger):
bot.say('DO YOU KNOW WHO I AM?')
@sopel.module.commands('aminorex') @sopel.module.commands('aminorex')
def aminorex(bot, trigger): def aminorex(bot, trigger):
@ -49,6 +53,10 @@ def bear(bot, trigger):
def brothers(bot, trigger): def brothers(bot, trigger):
bot.say(u'http://www.trollaxor.com/2011/11/brief-history-of-ascii-penis.html'.encode('utf8')) bot.say(u'http://www.trollaxor.com/2011/11/brief-history-of-ascii-penis.html'.encode('utf8'))
@sopel.module.commands('bp', 'bps', 'bulletproof', 'bulletproofs')
def bulletproofs(bot, trigger):
bot.say(u'https://www.youtube.com/watch?v=Kk8eJh4i8Lo'.encode('utf8'))
@sopel.module.commands('buyorsell') @sopel.module.commands('buyorsell')
def buyorsell(bot, trigger): def buyorsell(bot, trigger):
draw = random.random() draw = random.random()
@ -279,6 +287,10 @@ def major(bot, trigger):
def masternode(bot, trigger): def masternode(bot, trigger):
bot.say('http://hadoopilluminated.com/hadoop_illuminated/images/hdfs3.jpg') bot.say('http://hadoopilluminated.com/hadoop_illuminated/images/hdfs3.jpg')
@sopel.module.commands('monerov', 'v')
def monerov(bot, trigger):
bot.say(u"🔒🔒🔒 MoneroV is more secured than others. That's why it is better invest on moneroV. 💰💰💰".encode('utf8'))
@sopel.module.commands('moon') @sopel.module.commands('moon')
def moon(bot, trigger): def moon(bot, trigger):
bot.say(u'┗(°0°)┛'.encode('utf8')) bot.say(u'┗(°0°)┛'.encode('utf8'))
@ -297,7 +309,7 @@ def needmoney(bot, trigger):
@sopel.module.commands('nioc') @sopel.module.commands('nioc')
def nioc(bot, trigger): def nioc(bot, trigger):
bot.say(u'If I had a monero for every time I went to the salt mines...I would have a lot of moneros'.encode('utf8')) bot.say(u'https://ifunny.co/fun/laeIohx56'.encode('utf8'))
@sopel.module.commands('nomnomnom') @sopel.module.commands('nomnomnom')
def nomnomnom(bot, trigger): def nomnomnom(bot, trigger):
@ -307,6 +319,10 @@ def nomnomnom(bot, trigger):
def noom(bot, trigger): def noom(bot, trigger):
bot.say(u'┏(.0.)┓'.encode('utf8')) bot.say(u'┏(.0.)┓'.encode('utf8'))
@sopel.module.commands('notbad', 'dorian')
def notbad(bot, trigger):
bot.say(u'(´ー`) http://hackingdistributed.com/images/2014-01-01-bitcoin/dorian1.jpg (´ー`)'.encode('utf8'))
odboptions = [ odboptions = [
"FBI don't you be watching me", "FBI don't you be watching me",
"Ooo baby I like it raw", "Ooo baby I like it raw",
@ -345,6 +361,10 @@ def pony(bot, trigger):
def primer(bot, trigger): def primer(bot, trigger):
bot.say("The point is not how much i made, point is fluffy did this on purpose, more than 10 people were in on it. His commit access needs to be revoked asap!") bot.say("The point is not how much i made, point is fluffy did this on purpose, more than 10 people were in on it. His commit access needs to be revoked asap!")
@sopel.module.commands('praise')
def praise(bot, trigger):
bot.say("https://praisemonero.com")
@sopel.module.commands('pubg') @sopel.module.commands('pubg')
def pubg(bot, trigger): def pubg(bot, trigger):
bot.say("https://i.redd.it/o6o5gqmetacz.jpg") bot.say("https://i.redd.it/o6o5gqmetacz.jpg")