995 Commits

Author SHA1 Message Date
James Lu
2fbfc37f98 Wikifetch: leave a fallback reply if paragraph parsing failed 2017-01-27 18:16:00 -08:00
James Lu
2bd06a39a9 Wikifetch: return the address in _get_article_tree as well 2017-01-27 18:10:52 -08:00
James Lu
18493a5e23 Wikifetch: revamp tests to be more complete
This now tests different combinations of --site, and tries to parse some other common wikis.
2017-01-27 18:01:13 -08:00
James Lu
100f503783 Wikifetch: support wikimedia.org and mediawiki.org 2017-01-27 18:00:48 -08:00
James Lu
8d586dad47 Wikifetch: fix NameError on redirect parsing 2017-01-27 17:38:37 -08:00
James Lu
5bf0bd6fd5 Wikifetch: bump copyright years 2017-01-27 17:32:20 -08:00
James Lu
9f1f04d25c Wikifetch: only show "possible results" in disambiguation pages if parsing succeeds 2017-01-27 17:25:43 -08:00
James Lu
d1eea2a0a4 Wikifetch: support disambiguation parsing on Wikia 2017-01-27 17:25:24 -08:00
James Lu
3ca87bb686 Wikifetch: abstract out article fetching, fix Wikia search support 2017-01-27 17:12:41 -08:00
James Lu
482a8dd1d9 Wikifetch: remove special case for articles about years
This isn't really relevant anymore, since most years on Wikipedia have an introductory paragraph describing them now.
2017-01-27 17:10:32 -08:00
James Lu
4d487dd0e0 Wikifetch: log the URL when fetching a link fails 2017-01-26 21:28:06 -08:00
James Lu
1e7bfed72e DDG: support !bang links (redirects) 2017-01-20 22:18:25 -08:00
James Lu
2db371a9fa DDG: rewrite _ddgurl() to return new and original request URLs
This uses utils.web.getUrlTargetAndContent(), which is specific to Limnoria and requires commit ProgVal/Limnoria@57b77a6725 or later
2017-01-20 22:18:21 -08:00
James Lu
0b0c1b59ab DDG: show all lines of multiline zeroclick replies
Thanks to @nathan0 for pointing this out.
2017-01-20 21:51:05 -08:00
James Lu
9d76e56a33 .travis.yml: replace 3.5-dev with 3.6 2017-01-20 19:09:21 -08:00
James Lu
1836cc7f90 LastFM: rewrite YouTube link search to use DDG's search_core()
This allows the LastFM plugin to share the same redirect expansion code as DDG (from commit 8187d51cef8a716f7b58d8e4521ebf37444f8fe0).
2017-01-20 19:04:07 -08:00
James Lu
4915b7713b DDG: actually, return a list of tuples in search_core()
This abstraction makes it easier for depending plugins to filter out the data they actually need.
2017-01-20 18:57:55 -08:00
James Lu
3729068633 DDG: fix a typo in comments 2017-01-20 18:51:10 -08:00
James Lu
7a6e2f9f97 DDG: rewrite to fix "max results" not working 2017-01-20 18:50:16 -08:00
James Lu
47bb74d7d9 DDG: abstract out a search_core(), as the LastFM plugin will use this later 2017-01-20 18:39:42 -08:00
James Lu
d332e73e48 DDG: make _ddgurl() a static method 2017-01-20 18:18:06 -08:00
James Lu
8187d51cef DDG: expand redirect links in search results
Some links on DuckDuckGo's site are now shown going through a redirect service.
These links are in the format "/l/?kh=-1&uddg=https%3A%2F%2Fduckduckgo.com%2F" instead of simply being "https://duckduckgo.com", and we should decode these here.
2017-01-20 18:14:07 -08:00
James Lu
22a710649e Bump version to 2017.01.16+git 2017-01-16 21:23:59 -08:00
James Lu
f97b54d709 Bump version to 2017.01.16 2017.01.16 2017-01-16 21:16:25 -08:00
James Lu
0ef8138ab3 SedRegex: bump copyright year to 2017 2017-01-16 21:15:58 -08:00
James Lu
926454b01d SedRegex: fix some replacement queries not working 2017-01-04 20:36:45 -08:00
James Lu
e137d29eb9 SedRegex: also catch errors in the regexp_wrapper() step
E.g. sre_constants.error: invalid group reference
2016-12-26 08:05:06 -08:00
James Lu
406d7b1790 SedRegex: log the exact error name instead of "SedRegex error" 2016-12-26 08:04:20 -08:00
James Lu
aa217516b0 Remove BonusLevel plugin, it isn't being used anymore 2016-12-22 12:20:45 -08:00
James Lu
97701522cc SysDNS: specifically hint that the domain exists when no records are found 2016-12-22 12:16:59 -08:00
James Lu
414a4a4a16 SedRegex: require ending delimiter to prevent overzealous matching of replacement text
Closes #59.
2016-12-22 12:12:21 -08:00
James Lu
244a8c6bee SedRegex: work around "nothing to replace" errors on < Python 2.7.6 again 2016-12-22 12:05:00 -08:00
James Lu
6ce29eda6c TranslateParty: update docs 2016-12-18 14:55:02 -08:00
James Lu
db125ee5d1 SedRegex: fix flag matching 2016-12-17 21:12:36 -08:00
James Lu
9d0dce6ef5 SedRegex: add configuration / usage instructions 2016-12-17 20:49:16 -08:00
James Lu
87c79db3d0 SedRegex: implement 's' regex flag to only match the caller's message 2016-12-17 20:49:16 -08:00
James Lu
423da9f996 SedRegex: allow free form flags and return them in _unpack_sed() 2016-12-17 20:49:16 -08:00
James Lu
4b14b252ce SysDNS: error if a domain exists but has no A/AAAA/MX record
In these cases, both bind9-host and unbound-host will exit with status code 0 and *no* console output, meaning that the bot would also give no response to 'dns'.

Closes #58.
2016-11-10 23:36:58 -08:00
James Lu
635dc2d03e PkgInfo: add Debian codename bullseye, Ubuntu codename zesty 2016-10-28 20:12:08 -07:00
James Lu
cefc7b7b12 README: fix typos
[skip ci]
2016-09-30 16:34:13 -07:00
James Lu
c407b36586 README: IRC link and Python version badges
[skip ci]
2016-09-30 16:33:56 -07:00
James Lu
b6f0397665 Bump version to 2016.09.26+git 2016-09-26 11:08:14 -07:00
James Lu
23989f692e Bump version to 2016.09.26 2016.09.26 2016-09-26 11:07:28 -07:00
James Lu
814351fa6c TranslateParty: wte->tp in readme examples
[skip ci]
2016-09-23 19:54:36 -07:00
James Lu
8dc024c894 RelayNext: refresh README [skip ci]
- mention prefix display toggle
- unmark flood prevention as experimental
2016-09-23 19:53:28 -07:00
James Lu
f1444666b3 PortLookup: update + fix typo in example [skip ci] 2016-09-23 19:43:33 -07:00
James Lu
a7a2dbc03c LastFM: refresh README [skip ci] 2016-09-23 19:39:42 -07:00
James Lu
62d6f0d400 Weather: refresh README 2016-09-23 19:36:23 -07:00
James Lu
eb96578e91 Wikifetch: remove another broken test 2016-09-18 12:19:39 -07:00
James Lu
9db9f000ed Wikifetch: remove long-broken test 2016-09-18 11:16:46 -07:00