Commit Graph

403 Commits (8598fdcf5ecf1bad7a67ea9f3fed574b265fc12b)

Author SHA1 Message Date
mutantmonkey 7622bd3376 fix filename of seen.db files 2013-01-02 19:48:06 +01:00
Reese Moore 62a5ce7681 Make '.seen' persistent
Instead of using a dict, use a shelve so that seen is persistent across phenny
reloads.

This will cause some more disk IO as we are syncing the shelve every time
someone says something. It is probably better to just .close() the shelve when
phenny exits (using atexit).

Also, clean up some dead code that was left in the module.
2013-01-01 15:19:06 -05:00
mutantmonkey ac72cb5c1d fix test_head.py to also mock linx_api_key 2012-12-05 15:17:25 -05:00
mutantmonkey f8e2afbb9d remove broken nodetodo module 2012-12-05 15:17:04 -05:00
mutantmonkey 402137d379 clean up head.py a bit and readd title brackets 2012-11-26 22:37:22 -05:00
Andrei M 1002bf04c6 linx is now optional because of spongebob 2012-11-26 22:04:36 -05:00
mutantmonkey 900ac0c5c9 weather: deal with VRB returned for degrees 2012-11-05 10:41:51 -05:00
mutantmonkey 4b199e9629 Merge pull request #43 from telnoratti/master
Fix for missing artist
2012-10-08 22:02:42 -07:00
Calvin Winkowski 3d23dc53ad Fixed for suspected API change. I think the old key was bound to an older API switching keys cause the new API to be used. 2012-10-09 01:03:04 -04:00
mutantmonkey 4b97b54215 ensure lastfm test cases fail when output is bad 2012-10-09 00:57:45 -04:00
mutantmonkey 7ea5006cd8 remove randomreddit module 2012-10-09 00:50:06 -04:00
mutantmonkey aaa50263fa lastfm: update API key 2012-10-09 00:38:26 -04:00
Calvin Winkowski 0ef5fefd3f Fixed lastfm module to handle new format. 2012-10-01 21:02:31 -04:00
Andrei M 7882141091 Threadable 2012-09-24 23:03:15 -04:00
AndreiM 7b87baeb7e Gets title from linx for augmented titling capacity 2012-09-24 21:55:58 -04:00
Andrei M 7f55eb7cc5 .lnx to return short remote uploaded links 2012-08-30 01:43:44 -04:00
Andrei M 24a6907049 Adding multi-channel support to linx features 2012-07-02 19:01:59 -04:00
mutantmonkey 0ba6438922 weather: handle bad locations better 2012-06-29 20:52:07 -07:00
Andrei 52aaa0778a Add old link alert to title grabber 2012-06-28 20:51:40 -07:00
mutantmonkey 78441d5fbf kill .py 2012-06-28 19:05:45 -07:00
mutantmonkey 9f11190f0b randomreddit: handle invalid json response 2012-06-23 21:56:16 -07:00
mutantmonkey 6ecbe4ca18 wiki: handle json parsing error 2012-06-23 21:55:37 -07:00
Andrei M 2c9a937c2e .posted 2012-06-21 21:11:53 -07:00
mutantmonkey 251b01e000 calc: fix handling and add tests for empty result 2012-06-19 18:04:02 -07:00
mutantmonkey bf55297f43 add test cases for mediawiki modules 2012-06-15 20:04:47 -07:00
mutantmonkey ce2d548ff4 switch wikipedia to https 2012-06-15 20:04:29 -07:00
mutantmonkey ec32741826 refactor mediawiki modules into unified library 2012-06-13 21:58:31 -07:00
mutantmonkey 63c6adb316 wuvt: call strip on artist and track name 2012-06-09 22:17:00 -07:00
mutantmonkey 8c5ace989c wuvt: fix artist/track name ordering 2012-06-09 22:14:08 -07:00
mutantmonkey cf53da9d6e fix wiktionary no results error handling 2012-06-07 18:17:55 -07:00
mutantmonkey 931b53a974 add .head tests 2012-06-06 22:23:06 -07:00
mutantmonkey 2dbc8797e5 calc: fix .c scientific output 2012-06-05 18:24:43 -07:00
mutantmonkey c702d7bc59 tfw: handle location errors properly 2012-06-04 21:42:56 -07:00
mutantmonkey 4e8803fa9d add last.fm tests 2012-06-04 00:04:51 -07:00
mutantmonkey fec81731f3 remove broken etymology module 2012-06-03 23:07:44 -07:00
mutantmonkey b87e62dd47 add randomreddit test 2012-06-02 15:24:36 -07:00
mutantmonkey 3dc958283b add nsfw test 2012-06-02 15:16:47 -07:00
mutantmonkey f84eb9061c validate: fix and add test 2012-06-02 15:11:51 -07:00
mutantmonkey 888854adb2 add clock tests 2012-06-02 15:06:08 -07:00
mutantmonkey 0e675fb713 calc: remove deprecated, fix wa output, add test 2012-06-02 14:23:28 -07:00
mutantmonkey 6979d538d6 add weather tests 2012-06-02 03:08:32 -07:00
mutantmonkey 28527c6fee use called is True instead of called == 1 2012-06-02 03:07:22 -07:00
mutantmonkey ed2a892187 add search tests 2012-06-02 02:38:22 -07:00
mutantmonkey 6fece14639 catfacts test and test cleanup 2012-06-02 01:13:50 -07:00
mutantmonkey f995769b6f fix translate and add test 2012-06-02 00:58:19 -07:00
mutantmonkey 743d92700c rename nodetodo and add test 2012-06-02 00:31:16 -07:00
mutantmonkey 30705b87de add what the commit test, simply mylife tests 2012-06-01 22:17:33 -07:00
mutantmonkey 9add0985ec use global GrumbleError for web exceptions 2012-06-01 22:17:09 -07:00
mutantmonkey 5a3dd40afb fix urban dictionary module 2012-06-01 21:34:54 -07:00
mutantmonkey da77b275e0 fix wiktionary and add tests 2012-06-01 21:01:56 -07:00
mutantmonkey b272cfd0f9 fix rule34 header and add test 2012-06-01 00:27:21 -07:00
mutantmonkey f820c6dcb3 split out path adjustments into __init__ 2012-06-01 00:13:57 -07:00
mutantmonkey 34f3f8a9c4 add urban dictionary test 2012-06-01 00:09:44 -07:00
mutantmonkey 226b10f967 remove my life is desi, add mylife tests 2012-05-31 23:56:54 -07:00
mutantmonkey 03b7a6df9e remove re import from slogan test 2012-05-31 23:34:49 -07:00
mutantmonkey cf0ce39d3e add test for short 2012-05-31 23:34:38 -07:00
mutantmonkey 5087eb07d0 clean up slogan.py and add test 2012-05-31 23:13:02 -07:00
mutantmonkey abc29de35c add tests for fcc callsign lookup module 2012-05-31 23:06:05 -07:00
mutantmonkey 59bd004538 add hokie stalker tests 2012-05-31 22:44:03 -07:00
mutantmonkey b4c5ee8ccd fix typos in imdb test case 2012-05-31 22:31:34 -07:00
mutantmonkey 1b7ef76f15 add imdb tests 2012-05-31 01:17:08 -07:00
mutantmonkey 6aef5cab6f add wuvt test 2012-05-31 00:55:31 -07:00
mutantmonkey 546b3113d5 tfw: tests and retry on first failure 2012-05-31 00:39:40 -07:00
Randy 946171fccb wuvt module 2012-05-27 20:56:36 -07:00
Randy c99334c2fb IDMB module 2012-05-26 15:39:26 -07:00
mutantmonkey 4639e17b49 Merge https://github.com/randynobx/phenny 2012-05-21 22:59:54 -04:00
Randy 99197b84c8 Modified r_duck reg expr to skip sponsored links 2012-05-21 22:52:31 -04:00
mutantmonkey da739a760e DRY in rule34 and urbandit for usage 2012-05-14 16:49:41 -04:00
mutantmonkey 70f7b82bc3 add what the commit module 2012-05-14 16:44:38 -04:00
mutantmonkey f36d73e136 short: s/linx/short/ 2012-05-03 22:03:09 -04:00
hansenchris 0aadc3f6fa extra tab 2012-05-03 22:58:28 -03:00
Andrei M 2489b49639 short urls 2012-05-03 21:57:46 -04:00
mutantmonkey aefd3bbe3f catfacts: append fact ID 2012-05-01 23:52:19 -04:00
mutantmonkey a72baa47b2 remove priority from catfacts to fix multithreading issue 2012-04-29 19:34:17 -04:00
Michael Barnes 037041cae4 added the cat facts command 2012-04-25 19:47:40 -04:00
mutantmonkey 5ba500bc5c fix tfw for new redesign 2012-04-24 14:29:01 -04:00
AndreiM feb70d09e8 Since reddit can be so random, let's make it try 3 times before saying no. 2012-04-02 17:13:36 -04:00
Andrei Marcu 7efbe19b2c Random reddit link module 2012-04-02 12:22:16 -04:00
Andrei M 8ce5e37eb5 small fix 2012-03-28 22:01:04 -04:00
Andrei M 76a991f842 removed nickname requirement 2012-03-28 21:51:28 -04:00
Andrei M 5d23c7d550 linx: remove requirement of date, check arguments 2012-03-28 19:32:53 -04:00
mutantmonkey 4476412821 linx: support capital letters in nicks 2012-03-27 23:23:44 -04:00
mutantmonkey a951f0d3a7 update linx module from andreim 2012-03-27 23:20:18 -04:00
mutantmonkey 825bf46fc0 fix .yi 2012-03-20 22:01:32 -04:00
mutantmonkey acbbd199c2 Merge branch 'master' of https://github.com/sbp/phenny 2012-03-10 17:14:28 -05:00
Sean B. Palmer c5fe137b01 Updated etymology interface 2012-02-27 00:10:33 +00:00
mutantmonkey 0810db22fd choose: fix no strip() on list object error 2012-02-22 22:33:27 -05:00
Rebecca Stewart 9ffdc28102 fix .choose bugs 2012-02-22 17:04:17 -05:00
mutantmonkey 72135ea0ed tfw: everything is more fun with unicode 2012-02-22 15:41:28 -05:00
mutantmonkey 8d5e750c9c botfun: fix header 2012-02-22 15:35:07 -05:00
mutantmonkey 1356a039dd lastfm: remove .aep since it's broken 2012-02-22 15:33:37 -05:00
Rebecca Elena Stewart ebf5a57d6f added choose module 2012-02-22 15:06:32 -05:00
mutantmonkey c355528107 remove brokem mylife sites 2012-02-18 03:51:36 -05:00
mutantmonkey 22cc890e73 tell: disallow storing messages for phenny.nick 2012-02-18 03:38:22 -05:00
mutantmonkey 61e3b91ab7 also add messageAlert to ignore for .stats 2012-02-18 03:30:01 -05:00
mutantmonkey be18cfe02a ignore logger and measure functions when showing stats 2012-02-18 03:28:22 -05:00
mutantmonkey 2820bc61d6 fix translate module, convert to 4 space tabs 2012-02-17 22:16:49 -05:00
mutantmonkey 09e26155ce Merge branch 'master' of https://github.com/sbp/phenny
Conflicts:
	irc.py
	modules/oblique.py
	modules/startup.py
2012-02-17 22:10:05 -05:00
mutantmonkey f1e523e9bd update shebangs from python2 -> python3 to avoid confusion 2012-02-16 17:39:44 -05:00
Sean B. Palmer 6198b30d76 Throttle channel joins 2012-02-16 17:55:23 +00:00
Calvin Winkowski eba2e5b8a3 Added url shortener using xss vulnerablity that owner refused to fix. 2012-02-12 04:32:16 -05:00
mutantmonkey 3203eae258 rule34: fix 2012-02-12 01:06:32 -05:00
mutantmonkey 78dccb1ec8 rule34: handle empty result set 2012-02-12 01:03:39 -05:00
mutantmonkey e787df1850 add rule34 module 2012-02-12 01:01:50 -05:00
mutantmonkey e1a36026fd fix .npl 2012-02-10 22:02:53 -05:00
mutantmonkey fdf53d578f actually fix search module 2012-02-10 21:13:43 -05:00
mutantmonkey 8a33dabb3e fix search module 2012-02-10 21:11:04 -05:00
mutantmonkey 5423fc2edd log action messages too 2012-02-10 19:21:37 -05:00
mutantmonkey 410d72172f add logger module 2012-02-10 19:11:04 -05:00
mutantmonkey 3d41e2f1d9 fix clock and startup modules 2012-02-10 19:10:34 -05:00
mutantmonkey ee6ce7ba3e Merge branch 'master' of https://github.com/sbp/phenny 2012-02-08 16:10:44 -05:00
Sean B. Palmer 436d610ff4 Making the PING-loop optional 2012-01-14 22:55:59 +00:00
Sean B. Palmer 2575536078 Added clsn's ping-pong code 2012-01-12 14:21:49 +00:00
Sean B. Palmer e3633957a9 New .tr syntax for translations 2012-01-11 14:18:34 +00:00
mutantmonkey e21b2f6ec7 stache: fix case when no image is provided 2012-01-03 15:02:57 -05:00
mutantmonkey 585523cf7b add stache module 2012-01-03 14:54:26 -05:00
mutantmonkey 7ded434a61 tweak info and wadsworth module formatting 2012-01-03 14:28:14 -05:00
mutantmonkey 56f116732d module formatting tweaks; tabs -> spaces and more 2012-01-03 14:24:19 -05:00
mutantmonkey 733d3fd39e fix .mliar error message 2012-01-03 14:08:56 -05:00
mutantmonkey 9cd3578ed1 admin: join channel when invited 2012-01-03 13:55:39 -05:00
Reese Moore d972e70529 Move the content-type check back to the proper indent level, hopefully this
makes the bot check for an html Content-Type and not download every file.
2011-12-30 22:37:42 -05:00
mutantmonkey 92ea5b5310 head: fix .head and add response time 2011-12-28 17:45:11 -05:00
mutantmonkey 9594c33266 Merge fixed translation module 2011-12-27 12:18:29 -05:00
Sean B. Palmer b2fe5b31e2 Typo2 2011-12-27 14:50:21 +00:00
Sean B. Palmer 3724ba37cd Fixed translation module, with the help of der Hörmi 2011-12-27 14:48:24 +00:00
mutantmonkey 9a5acad5f0 urbandict: terminate if no definition found 2011-12-26 22:20:59 -05:00
mutantmonkey d127556c67 urbandict: strip whitespace, trim at 256 chars 2011-12-26 22:19:23 -05:00
mutantmonkey 2db37270a7 cleanup in fcc module 2011-12-26 22:16:16 -05:00
mutantmonkey 3adb930db8 add urban dictionary module 2011-12-26 22:16:06 -05:00
mutantmonkey f236a203df remove execute permissions from modules (unneeded) 2011-12-21 01:32:16 -05:00
mutantmonkey e14f178898 linx: should return when no url provided 2011-12-12 02:11:28 -05:00
mutantmonkey 42c37857fa linx: deal with no URL provided 2011-12-12 02:10:54 -05:00
mutantmonkey babaa9fb9f linx.li uploader 2011-12-12 01:55:10 -05:00
mutantmonkey 2b034e7a41 fix .u 2011-12-11 18:09:42 -05:00
mutantmonkey 6e69bc1ba3 tfw: fix indentation 2011-12-04 19:46:28 -05:00
mutantmonkey 76c0feddb5 tfw: handle unknown locations properly 2011-12-04 19:43:49 -05:00
mutantmonkey 0b5398ca04 fcc: show error when looking up non-existant callsign 2011-11-30 16:04:44 -05:00
mutantmonkey 01bcae7a03 start using callook.info instead of scraping from ARRL 2011-11-30 13:44:12 -05:00
mutantmonkey 5e3f24fadb add fcc callsign lookup 2011-11-29 22:58:05 -05:00
mutantmonkey d1ff59fd4f fix remind module 2011-11-26 21:20:01 -05:00
mutantmonkey 0461aab1c1 tfw: handle negative temps 2011-11-06 01:42:19 -05:00
mutantmonkey 7b41ea29bd fix .u 2011-10-22 21:54:12 -04:00
mutantmonkey 27ebfea407 chillmeter: add one more thing 2011-10-20 17:45:57 -04:00
mutantmonkey 4587c2de0c add some more chill things 2011-10-20 17:43:36 -04:00
mutantmonkey 4990fb63cf fix hs module to work with python3 2011-10-19 18:56:04 -04:00
mutantmonkey c0e16df2a8 Wadsworth's Constant module 2011-10-02 16:39:13 -04:00
mutantmonkey 0f62f9ceae fix wiktionary quoting 2011-09-29 19:41:18 -04:00
mutantmonkey 60660c1755 lastfm: handle http.client.BadStatusLine 2011-09-26 14:11:48 -04:00
mutantmonkey 04c41d07ed lastfm: open config file as w, not wb, to deal with unicode properly 2011-09-26 13:56:55 -04:00
mutantmonkey 4c64beada2 fix rounding in lastfm module caused by python3 upgrade 2011-09-23 19:00:58 -04:00