Update before ferret pull

This commit is contained in:
root 2017-05-14 19:21:07 +00:00
parent dfd2c59681
commit 52b2def53e
2 changed files with 25 additions and 0 deletions

View File

@ -288,6 +288,23 @@ def okc(bot, trigger):
except: except:
bot.say("Error retrieving data from OKCoin") bot.say("Error retrieving data from OKCoin")
@sopel.module.commands('tux')
def tux(bot, trigger):
try:
r = requests.get('https://tuxexchange.com/api?method=getticker')
j = r.json()
if not trigger.group(2):
ticker='XMR'
else:
ticker=trigger.group(2).upper()
coin=j['BTC_{}'.format(ticker)]
last=float(coin['last'])
vol=float(coin['baseVolume'])
change=float(coin['percentChange'])
bot.say("{0} at {1:.8f} BTC on {2:.3f} BTC volume, changed {3:.2f}% over last 24 hr".format(ticker, last, vol, change))
except:
bot.say("Error retrieving data from Tuxexchange")
@sopel.module.commands('pepe', 'pepecash') @sopel.module.commands('pepe', 'pepecash')
def pepe(bot, trigger): def pepe(bot, trigger):
try: try:

View File

@ -30,6 +30,10 @@ def bananas(bot, trigger):
def barolo(bot, trigger): def barolo(bot, trigger):
bot.say('I just opened a 2004 barolo in your and all the devs honor -- https://i.ytimg.com/vi/-JvdfsIeb-s/hqdefault.jpg') bot.say('I just opened a 2004 barolo in your and all the devs honor -- https://i.ytimg.com/vi/-JvdfsIeb-s/hqdefault.jpg')
@sopel.module.commands('bb')
def bb(bot, trigger):
bot.say('https://www.youtube.com/watch?v=_VvbP0QNmF0')
@sopel.module.commands('bear') @sopel.module.commands('bear')
def bear(bot, trigger): def bear(bot, trigger):
bot.say(u'ʕ ·(エ)· ʔ'.encode('utf8')) bot.say(u'ʕ ·(エ)· ʔ'.encode('utf8'))
@ -139,6 +143,10 @@ def hmm(bot, trigger):
# except: # except:
# bot.say("Something something reddit's servers") # bot.say("Something something reddit's servers")
@sopel.module.commands('hotline')
def hotline(bot, trigger):
bot.say(u'☎ Call 1-800-273-8255 to reach the National Suicide Prevention Lifeline ☎' .encode('utf8'))
@sopel.module.commands('invest') @sopel.module.commands('invest')
def invest(bot, trigger): def invest(bot, trigger):
bot.say('i think invest in bitcoin is much more safe and profitable because bitcoin price rising to higher value and we do not face to any risk when we invest our money in bitcoin and i if we invest our money in bitcoin we will be get a good profit from bitcoin in the future so i think bitcoin is much more profitable currency than altcoins.') bot.say('i think invest in bitcoin is much more safe and profitable because bitcoin price rising to higher value and we do not face to any risk when we invest our money in bitcoin and i if we invest our money in bitcoin we will be get a good profit from bitcoin in the future so i think bitcoin is much more profitable currency than altcoins.')