From e7f7c854329f40045daccbb95f0464136a9efc72 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 16 Aug 2017 03:16:11 +0000 Subject: [PATCH] Add lambo --- price.py | 14 +++++++------- trifling.py | 4 ++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/price.py b/price.py index f8adabb..c980d80 100644 --- a/price.py +++ b/price.py @@ -447,13 +447,13 @@ def tall(bot, trigger): if stampjson: stringtosend += "Bitstamp last: {0:,.2f}, vol: {1:,.1f} | ".format(float(stampjson['last']), float(stampjson['volume'])) # BTC-E - try: - btceresult = requests.get(btceurl) - btcejson = btceresult.json() - except: - btcejson = False - if btcejson: - stringtosend += "BTC-E last: {0:,.2f}, vol: {1:,.1f} | ".format(float(btcejson['btc_usd']['last']), float(btcejson['btc_usd']['vol_cur'])) + # try: + # btceresult = requests.get(btceurl) + # btcejson = btceresult.json() + # except: + # btcejson = False + # if btcejson: + # stringtosend += "BTC-E last: {0:,.2f}, vol: {1:,.1f} | ".format(float(btcejson['btc_usd']['last']), float(btcejson['btc_usd']['vol_cur'])) # Gemini try: gemiresult = requests.get(gemiurl) diff --git a/trifling.py b/trifling.py index f500adf..30ab681 100644 --- a/trifling.py +++ b/trifling.py @@ -208,6 +208,10 @@ def kid(bot, trigger): def kramer(bot, trigger): bot.say("Waiting for a retrace to 0.007") +@sopel.module.commands('lambo') +def lambo(bot, trigger): + bot.say(u'Our mission is to give you a taste of the lambo dream 🏎 '.encode('utf8')) + @sopel.module.commands('lenny') def lenny(bot, trigger): bot.say(u'( ͡° ͜ʖ ͡°)'.encode('utf8'))