From b4847464e85300aa5b9ba091305cba50d4d47926 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 9 May 2017 00:00:00 +0000 Subject: [PATCH 01/18] invest --- trifling.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/trifling.py b/trifling.py index 4da6b55..c373b5b 100644 --- a/trifling.py +++ b/trifling.py @@ -139,6 +139,10 @@ def hmm(bot, trigger): # except: # bot.say("Something something reddit's servers") +@sopel.module.commands('invest') +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.') + @sopel.module.commands('isittrue') def isittrue(bot, trigger): draw = random.random() @@ -310,7 +314,7 @@ def trump(bot, trigger): bot.say("Monero is the best crypto, believe me, I know crypto and it's going to be yuuuuuuuge!") @sopel.module.commands('tumbleweed') -def trump(bot, trigger): +def trumbleweed(bot, trigger): bot.say("https://rootco.de/2016-03-28-why-use-tumbleweed/") @sopel.module.commands('unflip') From 52b2def53ed2ff04f525de460e62d0d2a496caff Mon Sep 17 00:00:00 2001 From: root Date: Sun, 14 May 2017 19:21:07 +0000 Subject: [PATCH 02/18] Update before ferret pull --- price.py | 17 +++++++++++++++++ trifling.py | 8 ++++++++ 2 files changed, 25 insertions(+) diff --git a/price.py b/price.py index 7570513..7d3cf3d 100644 --- a/price.py +++ b/price.py @@ -288,6 +288,23 @@ def okc(bot, trigger): except: 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') def pepe(bot, trigger): try: diff --git a/trifling.py b/trifling.py index c0e3099..9277659 100644 --- a/trifling.py +++ b/trifling.py @@ -30,6 +30,10 @@ def bananas(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') +@sopel.module.commands('bb') +def bb(bot, trigger): + bot.say('https://www.youtube.com/watch?v=_VvbP0QNmF0') + @sopel.module.commands('bear') def bear(bot, trigger): bot.say(u'ʕ ·(エ)· ʔ'.encode('utf8')) @@ -139,6 +143,10 @@ def hmm(bot, trigger): # except: # 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') 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.') From 9fa312332a55974ae9f301922d02def22db01b80 Mon Sep 17 00:00:00 2001 From: s55ma Date: Thu, 1 Jun 2017 02:32:30 +0200 Subject: [PATCH 03/18] update trifling.py added "pump o clock yet?" quote from pero --- trifling.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trifling.py b/trifling.py index e6e3d7f..183d45b 100644 --- a/trifling.py +++ b/trifling.py @@ -380,6 +380,10 @@ def wave(bot, trigger): #def politics(bot, trigger): # bot.reply("politics is the mind killer") +@sopel.module.commands('pamp') +def pamp(bot, trigger): + bot.say(" pamp o clock yet?") + @sopel.module.commands('asp') def asp(bot, trigger): polourl = "https://poloniex.com/public?command=returnTicker" From 2a77fc1c474cc5edac40a8113e815700c09106ee Mon Sep 17 00:00:00 2001 From: root Date: Thu, 1 Jun 2017 01:10:54 +0000 Subject: [PATCH 04/18] Weekly push before pull --- .gitignore | 1 + price.py | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++-- trifling.py | 57 +++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 118 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 8ac217a..9d90a83 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ client.py *.pyc +apikey.py diff --git a/price.py b/price.py index 7d3cf3d..55f3c0f 100644 --- a/price.py +++ b/price.py @@ -3,6 +3,7 @@ import sopel.module import requests import time import random +# from apikey import commodity_key polourl = "https://poloniex.com/public?command=returnTicker" poloxmrlendurl = "https://poloniex.com/public?command=returnLoanOrders¤cy=XMR&limit=999999" @@ -20,6 +21,7 @@ krakusd = 'https://api.kraken.com/0/public/Ticker?pair=XMRUSD' krakeur = 'https://api.kraken.com/0/public/Ticker?pair=XMREUR' okcquar = 'https://www.okcoin.com/api/v1/future_ticker.do?symbol=btc_usd&contract_type=quarter' krakusdt = 'http://api.kraken.com/0/public/Ticker?pair=USDTUSD' +bitflyerurl = 'https://api.bitflyer.jp/v1/ticker' @sopel.module.commands('bfx', 'bitfinex') def bfx(bot, trigger): @@ -175,6 +177,28 @@ def lending(bot, trigger): except: bot.say("Something bad happened :o") +@sopel.module.commands('btclending') +def btclending(bot, trigger): + try: + r=requests.get(polobtclendurl) + j=r.json() + amnt=0 + amnt10=0 + rate10=0 + amnt100=0 + rate100=0 + for i in j['offers']: + if amnt < 10: + amnt10=amnt + rate10=float(i['rate']) + if amnt < 100: + amnt100=amnt + rate100=float(i['rate']) + amnt+=float(i['amount']) + bot.say("Minimum rate is {0:.3f}%. To borrow {1:,.2f} BTC need up to rate {2:.3f}%. To borrow {3:,.2f} BTC need up to rate {4:.3f}%. Total amount is {5:,.2f} BTC at max rate {6:.3f}%".format(float(j['offers'][0]['rate'])*100, amnt10, rate10*100, amnt100, rate100*100, amnt, float(j['offers'][-1]['rate'])*100)) + except: + bot.say("Something bad happened :o") + @sopel.module.commands('trex', 'bittrex') def trex(bot, trigger): @@ -345,13 +369,15 @@ def tall(bot, trigger): btccurl = 'https://data.btcchina.com/data/ticker?market=btccny' huobiurl = 'http://api.huobi.com/staticmarket/ticker_btc_json.js' gemiurl = 'https://api.gemini.com/v1/pubticker/btcusd' - gdaxurl = 'https://api.coinbase.com/v2/exchange-rates?currency=BTC' + # gdaxurl = 'https://api.coinbase.com/v2/exchange-rates?currency=BTC' + gdaxurl = 'https://api.gdax.com/products/BTC-USD/ticker' # Get conversion rate try: fixerresult = requests.get(fixerurl) fixerjson = fixerresult.json() usdcny = fixerjson['rates']['CNY'] usdeur = fixerjson['rates']['EUR'] + usdjpy = fixerjson['rates']['JPY'] except: usdcny = 7 # Bitstamp @@ -388,7 +414,7 @@ def tall(bot, trigger): except: gdaxjson = False if gdaxjson: - stringtosend += "GDAX price: {0:,.2f} | ".format(float(gdaxjson['data']['rates']['USD'])) + stringtosend += "GDAX price: {0:,.2f}, vol: {1:,.1f} | ".format(float(gdaxjson['price']), float(gdaxjson['volume'])) # Bitfinex try: finexresult = requests.get(finexurl) @@ -413,6 +439,14 @@ def tall(bot, trigger): huobijson = False if huobijson: stringtosend += "Huobi last: {0:,.2f}, vol: {1:,.1f} | ".format(float(huobijson['ticker']['last'])/usdcny, float(huobijson['ticker']['vol'])) + # Bitflyer + try: + bitflyerresult = requests.get(bitflyerurl) + bitflyerjson = bitflyerresult.json() + except: + bitflyerjson = False + if bitflyerjson: + stringtosend += "Bitflyer last: {0:,.2f}, vol: {1:,.1f} | ".format(float(bitflyerjson['ltp'])/usdjpy, float(bitflyerjson['volume_by_product'])) # Send the tickers to IRC bot.say(stringtosend) @@ -635,3 +669,28 @@ def price(bot, trigger): bot.say("1 XMR = $1000 USD (Offer valid in participating locations)") except: bot.say("C-cex sucks") + +@sopel.module.commands('commodity', 'com') +def commodity(bot, trigger): + commodity_key = 'B1ZnykTmG6_A1vkwzt9u' + input_com = trigger.group(2).upper() + if input_com == ('AU' or 'GOLD' or 'XAU'): + commodity = 'AU_EGL' + unit = 'oz' + elif input_com == ('AG' or 'SILVER' or 'XAG'): + commodity = 'AG_USD' + unit = 'oz' + elif input_com == ('PT' or 'PLATINUM' or 'XPT'): + commodity = 'WLD_PLATINUM' + unit = 'oz' + elif input_com == ('COFFEE'): + commodity = 'COFFEE_BRZL' + unit = 'lb' + try: + r=requests.get("https://www.quandl.com/api/v3/datasets/COM/{0}.json?&api_key={1}".format(commodity, commodity_key)) + j=r.json() + last=j['dataset']['data'][0][1] + bot.say("Last price on {0} was ${1:.3f} per {2}.".format(commodity, last, unit)) + except: + bot.say("Monerobux fails again...") + diff --git a/trifling.py b/trifling.py index e6e3d7f..637ce89 100644 --- a/trifling.py +++ b/trifling.py @@ -5,6 +5,7 @@ import re import requests import praw from client import * +from threading import Timer @sopel.module.commands('4matter') def fourmatter(bot, trigger): @@ -131,6 +132,15 @@ def gay(bot, trigger): def gui(bot, trigger): bot.say('http://imgur.com/a/hnxfS') +hitleroptions = [ +'https://www.youtube.com/watch?v=L2WfedZG7bo', +r"There's always Aeon", +'http://adolfcoin.camp/' +] +@sopel.module.commands('hitler', 'adolf') +def hitler(bot, trigger): + bot.say(random.choice(hitleroptions)) + @sopel.module.commands('hmm', 'hmmm') def hmm(bot, trigger): # try: @@ -182,10 +192,18 @@ def kid(bot, trigger): def lenny(bot, trigger): bot.say(u'( ͡° ͜ʖ ͡°)'.encode('utf8')) +@sopel.module.commands('luigi') +def luigi(bot, trigger): + bot.say(u'🍄 luigi is doing. mario is not doing luigi is doing 🍄'.encode('utf8')) + @sopel.module.commands('ltc', 'chikun') def ltc(bot, trigger): bot.say(u'🐔🐔🐔 https://cdn.meme.am/cache/instances/folder100/48222100.jpg 🐔🐔🐔'.encode('utf8')) +@sopel.module.commands('major') +def major(bot, trigger): + bot.say(r"Showed them a sneak peak of the MAJOR Monero announcement that is happening at tomorrow's meetup, they're excited!") + @sopel.module.commands('masternode', 'masternodes') def masternode(bot, trigger): bot.say('http://hadoopilluminated.com/hadoop_illuminated/images/hdfs3.jpg') @@ -198,6 +216,18 @@ def moon(bot, trigger): def multisig(bot, trigger): bot.say(u'𝓼𝓲𝓰𝓷𝓪𝓽𝓾𝓻𝓮 𝓼𝓲𝓰𝓷𝓪𝓽𝓾𝓻𝓮'.encode('utf8')) +@sopel.module.commands('myriad', 'myr', 'myriadcoin') +def myriad(bot, trigger): + bot.say(u'Myriad - A coin for everyone 🖐'.encode('utf8')) + +@sopel.module.commands('needmoney', 'needmoney90', 'nm90') +def needmoney(bot, trigger): + bot.say(u'cash rules everything around me C.R.E.A.M get the money 💵 💵 bill yall'.encode('utf8')) + +@sopel.module.commands('nioc') +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')) + @sopel.module.commands('nomnomnom') def nomnomnom(bot, trigger): bot.say(u'ᗧ•••ᗣ'.encode('utf8')) @@ -213,7 +243,7 @@ odboptions = [ ] @sopel.module.commands('odb', 'oldirty') def odb(bot, trigger): - bot.say(random.choice(confirmoptions)) + bot.say(random.choice(odboptions)) perooptions = [ 'https://www.youtube.com/watch?v=QqreRufrkxM', @@ -300,6 +330,27 @@ def summon(bot, trigger): def timetravelpp(bot, trigger): bot.say("A journey is best measured in pepes, rather than miles http://rarepepedirectory.com/wp-content/uploads/2016/09/timetravelpepe.jpg") +@sopel.module.commands('trivia') +def trivia(bot, trigger): + try: + triviaurl = 'https://opentdb.com/api.php?amount=1&type=multiple' + r = requests.get(triviaurl) + j = r.json() + category = j['results'][0]['category'] + difficulty = j['results'][0]['difficulty'] + question = j['results'][0]['question'] + correct_answer = j['results'][0]['correct_answer'] + incorrect_answers = j['results'][0]['incorrect_answers'] + bot.say("This question is in the field of {} and is of {} difficulty: {}".format(category, difficulty, question)) + replystr = "If you said {} you are correct, but if you said {}, {}, or {} you should call your parents and complain.".format(correct_answer, incorrect_answers[0], incorrect_answers[1], incorrect_answers[2]) + def f(): + bot.say(replystr) + t = Timer(10.0, f) + t.start() + except: + bot.say("No trivia for you!") + + reddit=praw.Reddit(client_id=client_id, client_secret=client_secret, user_agent='monerobux', @@ -372,6 +423,10 @@ zcashoptions = [ def zcash(bot, trigger): bot.say(random.choice(zcashoptions)) +@sopel.module.commands('zooko') +def zcash(bot, trigger): + bot.say("And by the way, I think we can successfully make Zcash too traceable for criminals like WannaCry, but still completely private & fungible.") + @sopel.module.rule('monerobux o\/') def wave(bot, trigger): #bot.reply(u'‹^› ‹(•_•)› ‹^›'.encode('utf8')) From 74320e39a45a9a4762a88cb51d01789da0b5b3cf Mon Sep 17 00:00:00 2001 From: s55ma Date: Fri, 2 Jun 2017 13:32:25 +0200 Subject: [PATCH 05/18] update Added .xrp with response: We have the best C++ dev team on the world --- trifling.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trifling.py b/trifling.py index 648bc66..f6acf18 100644 --- a/trifling.py +++ b/trifling.py @@ -438,6 +438,10 @@ def wave(bot, trigger): @sopel.module.commands('pamp') def pamp(bot, trigger): bot.say(" pamp o clock yet?") + +@sopel.module.commands('xrp') +def xrp(bot, trigger): + bot.say("We have the best C++ dev team on the world!") @sopel.module.commands('asp') def asp(bot, trigger): From cd2ae0bdbd6fd3dc37d30fc1f2fdc5166be43eed Mon Sep 17 00:00:00 2001 From: s55ma Date: Fri, 2 Jun 2017 13:35:44 +0200 Subject: [PATCH 06/18] update typo fixed typo --- trifling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trifling.py b/trifling.py index f6acf18..ff98e41 100644 --- a/trifling.py +++ b/trifling.py @@ -441,7 +441,7 @@ def pamp(bot, trigger): @sopel.module.commands('xrp') def xrp(bot, trigger): - bot.say("We have the best C++ dev team on the world!") + bot.say("We have the best C++ dev team in the world!") @sopel.module.commands('asp') def asp(bot, trigger): From 7383fe4e22456d068b354edf205859aadfa52b13 Mon Sep 17 00:00:00 2001 From: s55ma Date: Fri, 2 Jun 2017 18:41:51 +0200 Subject: [PATCH 07/18] update command added .fake response = and gay --- trifling.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/trifling.py b/trifling.py index ff98e41..5424d64 100644 --- a/trifling.py +++ b/trifling.py @@ -4,7 +4,7 @@ import random import re import requests import praw -from client import * +from client import from threading import Timer @sopel.module.commands('4matter') @@ -442,7 +442,11 @@ def pamp(bot, trigger): @sopel.module.commands('xrp') def xrp(bot, trigger): bot.say("We have the best C++ dev team in the world!") - + +@sopel.module.commands('fake') +def fake(bot, trigger): + bot.say("and gay") + @sopel.module.commands('asp') def asp(bot, trigger): polourl = "https://poloniex.com/public?command=returnTicker" From d2d7c822295046c43d729ef544e8dcbfd34aba28 Mon Sep 17 00:00:00 2001 From: s55ma Date: Fri, 2 Jun 2017 18:42:30 +0200 Subject: [PATCH 08/18] fixed typo typo --- trifling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trifling.py b/trifling.py index 5424d64..9150460 100644 --- a/trifling.py +++ b/trifling.py @@ -4,7 +4,7 @@ import random import re import requests import praw -from client import +from client import * from threading import Timer @sopel.module.commands('4matter') From 1f03219e59ac9e604a0345ec6ea27cc89678503f Mon Sep 17 00:00:00 2001 From: ajs Date: Sun, 4 Jun 2017 12:57:34 +0300 Subject: [PATCH 09/18] Added vitalik comment https://twitter.com/vitalikbuterin/status/871263595593572353 --- trifling.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trifling.py b/trifling.py index 9150460..d3579af 100644 --- a/trifling.py +++ b/trifling.py @@ -404,7 +404,8 @@ def urmom(bot, trigger): vitalikoptions = [ "https://pbs.twimg.com/media/CrWjczJXgAExF2S.jpg", "mETH, not even once: https://cdn-az.allevents.in/banners/e7df519e0808bac49fa3aaf503aff87d", -"Betteridge's law of headlines: https://fortunedotcom.files.wordpress.com/2016/09/blo_startups_2520x1667.png" +"Betteridge's law of headlines: https://fortunedotcom.files.wordpress.com/2016/09/blo_startups_2520x1667.png", +"Casper can survive 51% attacks happening once in a while; we can just delete the attackers' deposits and keep going." ] @sopel.module.commands('vitalik', 'buterin') def vitalik(bot, trigger): From 45c031f9d912802486648e7a31d27d0b1f19a56e Mon Sep 17 00:00:00 2001 From: s55ma Date: Sun, 4 Jun 2017 21:29:46 +0200 Subject: [PATCH 10/18] removed pero from pamp o clock yet --- trifling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trifling.py b/trifling.py index d3579af..e38391d 100644 --- a/trifling.py +++ b/trifling.py @@ -438,7 +438,7 @@ def wave(bot, trigger): @sopel.module.commands('pamp') def pamp(bot, trigger): - bot.say(" pamp o clock yet?") + bot.say("Pamp o clock yet?") @sopel.module.commands('xrp') def xrp(bot, trigger): From eb75782532804062cc824571766f537c3a40f70c Mon Sep 17 00:00:00 2001 From: s55ma Date: Mon, 5 Jun 2017 18:04:10 +0200 Subject: [PATCH 11/18] added .pony --- trifling.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trifling.py b/trifling.py index e38391d..a581c42 100644 --- a/trifling.py +++ b/trifling.py @@ -448,6 +448,10 @@ def xrp(bot, trigger): def fake(bot, trigger): bot.say("and gay") +@sopel.module.commands('pony') +def pony(bot, trigger): + bot.say("https://www.youtube.com/watch?v=O3rpmctmC_M") + @sopel.module.commands('asp') def asp(bot, trigger): polourl = "https://poloniex.com/public?command=returnTicker" From 41de725661001943e04b93bd5798d644f0b8dd9f Mon Sep 17 00:00:00 2001 From: s55ma Date: Mon, 5 Jun 2017 23:45:33 +0200 Subject: [PATCH 12/18] added .primer quote --- trifling.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trifling.py b/trifling.py index e38391d..087e27c 100644 --- a/trifling.py +++ b/trifling.py @@ -448,6 +448,10 @@ def xrp(bot, trigger): def fake(bot, trigger): bot.say("and gay") +@sopel.module.commands('primer') +def pfimer(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!") + @sopel.module.commands('asp') def asp(bot, trigger): polourl = "https://poloniex.com/public?command=returnTicker" From 63af1170be3a643f0f8d330a6e468de7faf74ae8 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 6 Jun 2017 13:38:37 +0000 Subject: [PATCH 13/18] Remove fake --- trifling.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/trifling.py b/trifling.py index e38391d..e589173 100644 --- a/trifling.py +++ b/trifling.py @@ -444,10 +444,6 @@ def pamp(bot, trigger): def xrp(bot, trigger): bot.say("We have the best C++ dev team in the world!") -@sopel.module.commands('fake') -def fake(bot, trigger): - bot.say("and gay") - @sopel.module.commands('asp') def asp(bot, trigger): polourl = "https://poloniex.com/public?command=returnTicker" From bbee28a0d436a6580fe5872d347220c238841288 Mon Sep 17 00:00:00 2001 From: s55ma Date: Thu, 8 Jun 2017 23:04:08 +0200 Subject: [PATCH 14/18] added .kramer --- trifling.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trifling.py b/trifling.py index a83b6f4..25e32a5 100644 --- a/trifling.py +++ b/trifling.py @@ -452,6 +452,10 @@ def primer(bot, trigger): def pony(bot, trigger): bot.say("https://www.youtube.com/watch?v=O3rpmctmC_M") +@sopel.module.commands('kramer') +def kramer(bot, trigger): + bot.say("Waiting for a retrace to 0.007") + @sopel.module.commands('asp') def asp(bot, trigger): polourl = "https://poloniex.com/public?command=returnTicker" From d2740a8184ff6aff6a617975808b293a6722505d Mon Sep 17 00:00:00 2001 From: s55ma Date: Fri, 9 Jun 2017 13:06:25 +0200 Subject: [PATCH 15/18] fixed alphabetical order --- trifling.py | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/trifling.py b/trifling.py index 25e32a5..ed5f139 100644 --- a/trifling.py +++ b/trifling.py @@ -187,6 +187,10 @@ def jwinterm(bot, trigger): @sopel.module.commands('kid', 'rehrar') def kid(bot, trigger): bot.say(u'What up kid?') + +@sopel.module.commands('kramer') +def kramer(bot, trigger): + bot.say("Waiting for a retrace to 0.007") @sopel.module.commands('lenny') def lenny(bot, trigger): @@ -245,6 +249,10 @@ odboptions = [ def odb(bot, trigger): bot.say(random.choice(odboptions)) +@sopel.module.commands('pamp') +def pamp(bot, trigger): + bot.say("Pamp o clock yet?") + perooptions = [ 'https://www.youtube.com/watch?v=QqreRufrkxM', 'https://www.youtube.com/watch?v=ZnPrtiLy0uU' @@ -256,7 +264,15 @@ def pero(bot, trigger): @sopel.module.commands('pivx') def pivc(bot, trigger): bot.say("Masternodes + PoS...what could possibly go wrong?") + +@sopel.module.commands('primer') +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!") +@sopel.module.commands('pony') +def pony(bot, trigger): + bot.say("https://www.youtube.com/watch?v=O3rpmctmC_M") + confirmoptions = [ "I can confirm that it is true", "This is true", @@ -415,6 +431,10 @@ def vitalik(bot, trigger): @sopel.module.commands('wat') def wat(bot, trigger): bot.say("https://www.destroyallsoftware.com/talks/wat") + +@sopel.module.commands('xrp') +def xrp(bot, trigger): + bot.say("We have the best C++ dev team in the world!") zcashoptions = [ "Trust us guys, we totally smashed that computer up, with like...magnetic baseball bats.", @@ -435,26 +455,6 @@ def wave(bot, trigger): #@sopel.module.rule('[Tt]rump') #def politics(bot, trigger): # bot.reply("politics is the mind killer") - -@sopel.module.commands('pamp') -def pamp(bot, trigger): - bot.say("Pamp o clock yet?") - -@sopel.module.commands('xrp') -def xrp(bot, trigger): - bot.say("We have the best C++ dev team in the world!") - -@sopel.module.commands('primer') -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!") - -@sopel.module.commands('pony') -def pony(bot, trigger): - bot.say("https://www.youtube.com/watch?v=O3rpmctmC_M") - -@sopel.module.commands('kramer') -def kramer(bot, trigger): - bot.say("Waiting for a retrace to 0.007") @sopel.module.commands('asp') def asp(bot, trigger): From 81bf21b7d8c4022ac047f52a0c8e4d3a7a05f890 Mon Sep 17 00:00:00 2001 From: s55ma Date: Fri, 9 Jun 2017 13:14:00 +0200 Subject: [PATCH 16/18] fixed alphabetical order #2 --- trifling.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trifling.py b/trifling.py index ed5f139..881b32e 100644 --- a/trifling.py +++ b/trifling.py @@ -265,13 +265,13 @@ def pero(bot, trigger): def pivc(bot, trigger): bot.say("Masternodes + PoS...what could possibly go wrong?") -@sopel.module.commands('primer') -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!") - @sopel.module.commands('pony') def pony(bot, trigger): bot.say("https://www.youtube.com/watch?v=O3rpmctmC_M") + +@sopel.module.commands('primer') +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!") confirmoptions = [ "I can confirm that it is true", From 30e3a4331f782b4917bde1f5768042455c533a4c Mon Sep 17 00:00:00 2001 From: root Date: Sat, 24 Jun 2017 01:16:43 +0000 Subject: [PATCH 17/18] update trifling --- trifling.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/trifling.py b/trifling.py index 881b32e..d03d137 100644 --- a/trifling.py +++ b/trifling.py @@ -79,6 +79,10 @@ def dash(bot, trigger): def dealwithit(bot, trigger): bot.say(u'(•_•) ( •_•)>⌐■-■ (⌐■_■)'.encode('utf8')) +@sopel.module.commands('diiorio') +def diiorio(bot, trigger): + bot.say(u'http://www.contravex.com/2016/06/29/from-the-scammer-files-anthony-di-iorio/'.encode('utf8')) + @sopel.module.commands('disapprove') def disapprove(bot, trigger): bot.say(u'ಠ_ಠ'.encode('utf8')) @@ -196,6 +200,10 @@ def kramer(bot, trigger): def lenny(bot, trigger): bot.say(u'( ͡° ͜ʖ ͡°)'.encode('utf8')) +@sopel.module.commands('livermore') +def livermore(bot, trigger): + bot.say(u'https://en.wikipedia.org/wiki/Reminiscences_of_a_Stock_Operator'.encode('utf8')) + @sopel.module.commands('luigi') def luigi(bot, trigger): bot.say(u'🍄 luigi is doing. mario is not doing luigi is doing 🍄'.encode('utf8')) From 52b1d84e1d2f38c721c67d4afc2f30c20972df81 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 24 Jun 2017 01:22:21 +0000 Subject: [PATCH 18/18] Re-add five new coins for ferret asp --- trifling.py | 53 ++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/trifling.py b/trifling.py index d03d137..0682412 100644 --- a/trifling.py +++ b/trifling.py @@ -469,6 +469,7 @@ def asp(bot, trigger): polourl = "https://poloniex.com/public?command=returnTicker" stampurl = 'https://www.bitstamp.net/api/ticker/' cmcurl = "https://api.coinmarketcap.com/v1/ticker/monero/" + trexurl = "https://bittrex.com/api/v1.1/public/getmarketsummary?market=btc-ans" try: r=requests.get(cmcurl) @@ -476,7 +477,14 @@ def asp(bot, trigger): xmrbtc_price=float(j[0]['price_btc']) except: bot.say("Error connecting to CoinMarketCap") - + try: + r = requests.get(trexurl) + j = r.json() + ans=j['result'][0] + last=float(ans['Last']) + value_ans = float(last*231.6) + except: + print ("Error retrieving data from Bittrex") try: r=requests.get(polourl) j=r.json() @@ -493,7 +501,11 @@ def asp(bot, trigger): label_nem="BTC_XEM" label_ripple="BTC_XRP" label_zcash="BTC_ZEC" - + label_nxt="BTC_NXT" + label_sia="BTC_SC" + label_dgb="BTC_DGB" + label_sys="BTC_SYS" + # Bitstamp try: stampresult = requests.get(stampurl) @@ -514,6 +526,10 @@ def asp(bot, trigger): ticker_nem=j[label_nem] ticker_ripple=j[label_ripple] ticker_zcash=j[label_zcash] + ticker_nxt=j[label_nxt] + ticker_sia=j[label_sia] + ticker_dgb=j[label_dgb] + ticker_sys=j[label_sys] last_dash=float(ticker_dash['last']) last_decred=float(ticker_decred['last']) last_factom=float(ticker_factom['last']) @@ -524,6 +540,10 @@ def asp(bot, trigger): last_nem=float(ticker_nem['last']) last_ripple=float(ticker_ripple['last']) last_zcash=float(ticker_zcash['last']) + last_nxt=float(ticker_nxt['last']) + last_sia=float(ticker_sia['last']) + last_dgb=float(ticker_dgb['last']) + last_sys=float(ticker_sys['last']) value_dash = float(last_dash*18.84760476) value_decred = float(last_decred*93.74095377) value_factom = float(last_factom*207.78912373) @@ -536,19 +556,38 @@ def asp(bot, trigger): value_ripple = float(last_ripple*27962.37965895) value_ripple_h = float(3.17485452) value_zcash = float(last_zcash*16.47649534) - total = value_dash + value_decred + value_factom + value_golem + value_maidsafecoin + value_augur + value_stellar_h + value_nem + value_ripple_h + value_zcash + value_nxt = float(last_nxt*14932.63473053) + value_sia = float(last_sia*129377.43190662) + value_dgb = float(last_dgb*84177.21518989) + value_sys = float(last_sys*10523.26194748) + + total = value_dash + value_decred + value_factom + value_golem + value_maidsafecoin + value_augur + value_stellar + value_nem + value_ripple + value_zcash + total_h = value_dash + value_decred + value_factom + value_golem + value_maidsafecoin + value_augur + value_stellar_h + value_nem + value_ripple_h + value_zcash + total_june = value_nxt + value_sia + value_dgb + value_sys + value_ans xmr_totalvalue = float(total / xmrbtc_price) - asppercent = (((stamp_price * total) / 14950)-1)*100 + asppercent = ((((stamp_price * total) / 14950)-1)*100) + ((((stamp_price * total_june) / 13240)-1)*100) if asppercent >= 0: aspsign = '+' else: aspsign = '-' - xmrpercent = ((650*(xmrbtc_price*stamp_price)/14950)-1)*100 + xmrpercent = ((((650*(xmrbtc_price*stamp_price)/14950)-1)*100)) + (((250*(xmrbtc_price*stamp_price)/13240)-1)*100) if xmrpercent >= 0: xmrsign = '+' else: xmrsign = '-' - - bot.say("{0} {1:.2f}BTC; {2} {3:.2f}BTC; {4} {5:.2f}BTC; {6} {7:.2f}BTC; {8} {9:.2f}BTC; {10} {11:.2f}BTC; {12} {13:.2f}[{14:.2f}]BTC; {15} {16:.2f}BTC; {17} {18:.2f}[{19:.2f}]BTC; {20} {21:.2f}BTC; ASP Total:{22:.2f}BTC/{23:,.0f}USD/{24:,.1f}XMR (02-May outlay, 10BTC/14,950USD/650XMR) (Since begin ASP:{25}{26:.2f}% XMR:{27}{28:.2f}%, Harvested 11.52BTC)".format("DASH", value_dash, "DCR", value_decred, "FCT", value_factom, "GNT", value_golem, "MAID", value_maidsafecoin, "REP", value_augur, "STR", value_stellar, value_stellar_h, "XEM", value_nem, "XRP", value_ripple, value_ripple_h, "ZEC", value_zcash, total, stamp_price * total, xmr_totalvalue, aspsign, asppercent, xmrsign, xmrpercent)) + asppercent_h = ((((stamp_price * total_h) / 14950)-1)*100) + ((((stamp_price * total_june) / 13240)-1)*100) + if asppercent_h >= 0: + aspsign_h = '+' + else: + aspsign_h = '-' + bot.say("{0} {1:.2f}BTC; {2} {3:.2f}BTC; {4} {5:.2f}BTC; {6} {7:.2f}BTC; {8} {9:.2f}BTC; {10} {11:.2f}BTC; {12} {13:.2f}[{14:.2f}]BTC; {15} {16:.2f}BTC; {17} {18:.2f}[{19:.2f}]BTC; {20} {21:.2f}BTC; {22} {23:.2f}BTC; {24} {25:.2f}BTC; {26} {27:.2f}BTC; {28} {29:.2f}BTC; {30} {31:.2f}BTC; ASP Total:{32:.2f}[{33:.2f}]BTC/{34:,.0f}USD/{35:,.1f}XMR (02-May+20-Jun outlay, 10BTC+5BTC/14,950USD+13,240USD/650XMR+250XMR) (Since begin ASP:{36}{37:.2f}[{38}{39:.2f}]% XMR:{40}{41:.2f}%, Harvested 11.52BTC)".format("DASH", value_dash, "DCR", value_decred, "FCT", value_factom, "GNT", value_golem, "MAID", value_maidsafecoin, "REP", value_augur, "STR", value_stellar, value_stellar_h, "XEM", value_nem, "XRP", value_ripple, value_ripple_h, "ZEC", value_zcash, "NXT", value_nxt, "SIA", value_sia, "DGB", value_dgb, "SYS", value_sys, "ANS", value_ans, total+total_june, total_h+total_june, stamp_price * (total + total_june), xmr_totalvalue, aspsign, asppercent, aspsign_h, asppercent_h, xmrsign, xmrpercent)) except: bot.say("ERROR!") + +@sopel.module.commands('wtfisasp') +def wtfisasp(bot, trigger): + bot.say("ASP means the Angry Shitcoin Portfolio, a list of the top 15 coins that piss me off as people mindlessly pour money into them.") + +@sopel.module.commands('asprules') +def asprules(bot, trigger): + bot.say("1. Shitcoins only, eg. a premine, ICO, Corporate, APPCoin, Buzzwordy, Copycat, etc. . 2. Must have high volume, it needs staying power to be considered as the ASP is a longterm thing. 3. 1 BTC gets bought of each coin on the list, as this list is not fictional, laughable as that is. 4. No trading, buy and hold only. 5. Can be liquidated at my discretion, but preferably once it's fleeced users of 4> BTC in value or more, or almost nothing is left (<0.1 BTC in value). 5. Each shitcoin should preferably should have a poor/toxic community, and or dev group shilling, censoring, etc. . 6. I must literally hate the idea of this coins existence.")