From b58d4006d2c02d010f53adf42b63ef5ecf724081 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 May 2017 02:17:00 +0000 Subject: [PATCH 1/2] try to make praw 4.4 work --- .gitignore | 2 ++ network.pyc | Bin 2855 -> 0 bytes price.pyc | Bin 22509 -> 0 bytes stock.pyc | Bin 1106 -> 0 bytes trifling.py | 3 ++- trifling.pyc | Bin 22102 -> 0 bytes 6 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 network.pyc delete mode 100644 price.pyc delete mode 100644 stock.pyc delete mode 100644 trifling.pyc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8ac217a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +client.py +*.pyc diff --git a/network.pyc b/network.pyc deleted file mode 100644 index 698f40e0d819005ac1e206d0d381e4cdbe77ef42..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2855 zcmbVOZEqVz5Z?1!-jhmgN<&0?l&Y90@j0QO5<*m3X!#NYmrAXoNYVLjZC_&Fy0`0K zlUPDZ{{er1kMIxp5&Rpz1JBHz9mg%G!Sc?|?aS@#JkQKr_RqQLKW_f@!WZc;i~b>+ z{v9H~-x5tB_N{@Q5&M~eo)!C95nv=Iq$Q5>;;0}3jO4^Q*5t)2Ak4Bjiw!}#!T{3`l=s10M_gI|4HI`U{!^@(-PM6=!UQ?E8W44wUN zg6C%qY5ScxmXWcmP30fk$qGBv_Gx)*tzWXAVDISY29KU@qD!`D+bFxP*6fDYZnKx{ zFtVY?svEXEBbz<@^y974X02~GR43M@I!?xK=b^rVZcnwOX~4O56-UXyUO!xC^UWk? zWBIZpH2@(V)}=Ai=+i58;wIyCq*cT?ecknC+k|+c)!OUvr2!+%NM1?fRb|*QCJyU$ z85;{@i9BLmy0nT9A_gQLDPl;l(6^yEu~Nny>;MZ5fZA`j^ zUf+1S5raBBw3%>cx8bDJ`RP^Z%YUa1+2&ICx_J`hSeKx1X#!qATsM_xTncQL*i_^l zGxRu1VvYnQ40nM9lY!nx7i3O0QtOHsyaFc(??p6yi}sCiVjlds3sx}gs>W~0R$Hki z^Mfp)#{75+rMH$Q9Hfsl;UH}w#d6xAa?mdwpGnGT}`3?C^WtbqYt&6ULwgReZ7L6 zPdZ34J=IyWy(qA2^pvhg8c{`t>;k+YMjYoxc1@8S;a&#oiZ~DkchNL~pWyHwd7elz z>UJ`N8oT`&l-_5rxgD-X&gVQ&d6=sooKK;Lumb>N7$n6I;Wfm7Zd}p#Ak(50sX&%c zk*c15TrH_cZf&40Z8%7N1c|@}NBQOuQitD;qrlNK zgrdmsTt}6je<3o{mF-+MBpPrGJKM zZ(19(TumX7;Rca01`KL${&J3^#8J^?VG2x({hAn-LnVinbQpatQ{&VgRtMsNE~PwOx4_^P?y)$5ygc8UkV>PLDLNA2=k(!z?{+v)_d zh4seXESCobm#Z_%Z_h{_Qu$&i9}NqsP6}!Hu$<&JMvRCCCs9e|vZ$pO`wf>0)I~1j z{8*1wr~M|FISL7sD?+`5Gd@KdK#fYcXng>vi_A$9TuDnwC1oRcAj#wJl8FQd+nuhN z#52CxT1X?B%WYDQD7amsmP?0T*vZ=4ly1)O+sPq2?AvR2(JZ(*n<->g=9d?iCzq%H E0hz^EQ2+n{ diff --git a/price.pyc b/price.pyc deleted file mode 100644 index 79b6cfd594997d74e0a4cac1b447fc97767ea81c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 22509 zcmds9Yiv~6eLpic#uyunF<>xwFV8hB%z%M?u$LsKPH)kl&KNmRAlJeqErv{Ix>Nt;Krt@<@mRpoPdq>-=&FUk075z2i`&E2`pEN1u;D1ULm6}MI=d_wg zo98Aq(PW;R)kL#$0NtP*l(#5nTzxdHavN2yRXH2f#3tpmsEIb^Y*Z7QmD8#w+Lg0O zO>`)yO-*c3&So{SRXOcyqEk5?YGRvmwy23NVnEL(Ktlq0)qwgFpz{K{U_eI`pkV=x7|^i<=%RpL zGoa@Zpi2U}Y(U2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})yWqvTk7Oa zBy&IwIu@0V)(lFE(7gerZ(~@iGB}mctwwcYyQvg4G15#Aj7?NeX&!zBMn3J;%8+Buxa> z$tr&EiYvq~n3}tn<_E8O5TW23L=yTCu7^5tc!GBjqn`qi6Q^;i#c`yI;Cr?T!um3vVE~S_%I2OWtxbqCjS(w8O3fz1ydU;-3D+NcFY#hww z_5WxEUHMbo01_U9b^N^z`4x-;3nc01Jr5m+=g)>^^v{NgSeD-r(-9}4yxhCC<-Xhn zW=EJ@WHQR+V@$@Fe42?ID>#y}87Hz2G2!po*oT=sVnUfK=N*m7Sw=rX8Q6GMb{7-U zsC@*9+y}sYZ`a3u+Rw6hh{+WuH<mzjK($=8{@&4dn1 zn|>;r-U*u~sZC47rUGhHjN0!o5o+On#uzA1E2E*z`U852ui!9L@G&Iq2$bPp^rCh( zuxg)R$_K$_<8zlV>S%QB78Nm3DEMP2Z zy9Hy5WeYMJatFo^h{T4^2xvg!u+W600doPe36mDN8~IIio&LgS=nE7L>A6Z)nT$zq zAUR0aNcuZ61Z@CLwgL>m5)}cr0+trs0&FcXHY^=TEZCsMf~^f38>+X&mzai4m$wcS zk0>Q}gogv8J+5&V_l4di%^KYz^vP?&W2U=E2X_(Q?m zPE8A8D5_ExhNf1@C^3{~CHb0`Q57!?1)EoDRr)0D-mLSf%CM*GfE~rEFzClnLOEl& zNFP;Trk|k{R7#nkuQ6s8>=s7{+Nk(rzg!#Y_FS3?BdL?zFAyEk7003}j;)SxERvq= zc}(e28bsHGpjqLTEqV87eQ>#W^{_J9GG0J|pU222?2zZ;6Fj74=9+Z04i8abGh3$0 za7}4Zu1rXc`=7$X2M9Pt($r=UM}jT>0V*LiEF}9b^jdQu?ofzU;7s_wq5HUTc~m6& dZ+w>ip}T~>*!BGK2xUzr9t!$Bw%gsd{TuuF)pq~@ diff --git a/trifling.py b/trifling.py index 8e00279..4d7dce2 100644 --- a/trifling.py +++ b/trifling.py @@ -4,6 +4,7 @@ import random import re import requests import praw +from client import * @sopel.module.commands('4matter') def fourmatter(bot, trigger): @@ -287,7 +288,7 @@ 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") -reddit=praw.Reddit(user_agent='monerobux') +reddit=praw.Reddit(client_id=client_id, client_secret=client_secret, user_agent='monerobux') @sopel.module.commands('tinytrump') def tinytrump(bot, trigger): try: diff --git a/trifling.pyc b/trifling.pyc deleted file mode 100644 index add8b42e74becbefbd429b4df93640d23635b2f1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 22102 zcmd6Pd5j#_dFSgH9^xe)q7I4@RTL?)DbDmU2RWn;ayYz?5mhr3X@=Tyb-(KFn(3}; z)~lMHCONSr%1M00Q7r0kBwL5&NRhme){Y~`ma_})Vu3hFko*xKK(GsYoB#{#AMs+5 z06Bo{@B6A=caclWGvW})^wihy)%WVv_pa}JuRH(milq-fvE(yF5&x~k_a0p8=wcxx z{!^kV#F>;%cZf3`I^8MGbn5g1ab|%|FBE4M3Ogmn7m4x3LUxEtc)U|QCn#~|mIP`6 zqZVq^k_2jzkc-77yz3T?U7Ely;Rly$)UpI>8KahK)ba#s1*2}&s1*s+N=B{Hs9O`L z)r?xBQ7aRu+ZeT0qgEwQw=?Pvjar>R-N~rCG-^!(wT@ADYt(HC)OtqUqfu)UsCyZ; zL8ER@pzdRop;31vP#cB3pL=+d#@?C0ZsrFc(5Sl-s0SIfMWfawP-!8za-9!p?A;0M zHh!>6qt+)--Hgg;)ICCGh0F<=7qUl`F}vc$SkMM(!YSjG+)MJd=tx=m2s6C7t)Tqq~)LupnY19J=)IK5iGbIN! z_Q3@9AU}9WqqZbahlM=C4<6OnbOL)!$m5J1*4V8H?BiVR35|LvfqH^brbcZ`phg%q zs!?4D)JaA?sZrfRo)Yr3ke?A{FpW&2O!952Yrp*k-#c`Fwm%h1S(|Iq(<#bpc;&t(x_btRFhHXHR|C6>H?!KYSbgbUMR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2YEOTcTjpI8sLAg1U9oukkHvUgB+W`x2Ez4Wxh;t<#9$sQ)Mzk=x40#75%=d_*ew zZTR7<2yGRL$c*|J&uAhkB*;$@iLE!p1hyWI$fGO{GKY41qQu$uM2T)BCQ5XpJyD|k zRW#CTqucF?66H0O)G^T=JyD`uVxmMhB0_0#u%bIhEzA4?9)vz36z$O!9g9+n+L2+( zUHj?OapR@H+=jACuk%@j$ntDH4|O~R*LwOG5l`d9KggAdevpgTJKtc(X+Wwdb|MjH zVE$64-#a0PSX`WjH5O;eBnHI4Yh^B`6yZ!7OOra@q*s}=m(E;8fFgi=_S_ty)F=UR za+*&PAfv*hBbDY^0(3IZ93${q0+6-BED*2>ln9gw_yiPzkO1|rNxO^9CV}$=V8siQ zc1D_?Bk(kVX8?FhI(C)C%D(w5A%2a(=L!4-0MDmD$V>OxrPkm{T|1s%lUl!=YiX5=-f}fu(y_T!>w2yi6y5Uw E0LaP*fdBvi From 178eab4f9ece3f92a83e28426e24585fc31d7898 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 7 May 2017 18:00:44 +0000 Subject: [PATCH 2/2] Update before merge ferret fix --- price.py | 1 + trifling.py | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/price.py b/price.py index 1b714e9..7570513 100644 --- a/price.py +++ b/price.py @@ -6,6 +6,7 @@ import random polourl = "https://poloniex.com/public?command=returnTicker" poloxmrlendurl = "https://poloniex.com/public?command=returnLoanOrders¤cy=XMR&limit=999999" +polobtclendurl = "https://poloniex.com/public?command=returnLoanOrders¤cy=BTC&limit=999999" prevamnt, prevtime = 0, 0 trexurl = "https://bittrex.com/api/v1.1/public/getmarketsummary?market=btc-" cryptopiaurl = "https://www.cryptopia.co.nz/api/GetMarkets" diff --git a/trifling.py b/trifling.py index 4d7dce2..a5d02f9 100644 --- a/trifling.py +++ b/trifling.py @@ -129,15 +129,15 @@ def gui(bot, trigger): @sopel.module.commands('hmm', 'hmmm') def hmm(bot, trigger): - try: - sub=reddit.get_subreddit('hmmm') - posts=sub.get_new(limit=100) + # try: + sub=reddit.subreddit('hmmm') + posts=sub.new(limit=100) n=random.randint(0,100) for i, post in enumerate(posts): if i==n: bot.say(post.url) - except: - bot.say("Something something reddit's servers") + # except: + # bot.say("Something something reddit's servers") @sopel.module.commands('isittrue') def isittrue(bot, trigger): @@ -288,12 +288,16 @@ 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") -reddit=praw.Reddit(client_id=client_id, client_secret=client_secret, user_agent='monerobux') +reddit=praw.Reddit(client_id=client_id, + client_secret=client_secret, + user_agent='monerobux', + username=username, + password=password) @sopel.module.commands('tinytrump') def tinytrump(bot, trigger): try: - sub=reddit.get_subreddit('tinytrump') - posts=sub.get_new(limit=100) + sub=reddit.subreddit('tinytrump') + posts=sub.new(limit=100) n=random.randint(0,100) for i, post in enumerate(posts): if i==n: