1074 Commits

Author SHA1 Message Date
James Lu
4aeec6efa1 Revert "PkgInfo: remove the Fedora fetcher"
This reverts commit 2c69e99299b2708b870651241dfead53fc00362e.
2018-02-23 19:17:54 -05:00
James Lu
0906dc554d OperUp: rework numeric logging
- Include full messages for the numerics we care about
- Remove handlers for 464 and 481; they aren't useful for our purposes
2018-02-23 19:08:12 -05:00
James Lu
1d20f5afd5 OperUp: unset _oper_tried_oper on disconnect
Closes #67.
2018-02-23 19:08:12 -05:00
James Lu
88c5cad072 Weather: show states/provinces in 'locationsearch' where available 2018-02-04 11:29:22 -08:00
James Lu
e04f6c5b2d Weather: remove unused _weatherSymbol helper 2018-02-04 11:23:02 -08:00
James Lu
e4c7bc81b8 Weather: show names in 'locationsearch' again 2018-02-04 11:20:13 -08:00
James Lu
1134e8474d Weather: fix potentially corrupt API URLs if features and presets are added in reverse order
This can happen because dict.items() doesn't sort deterministically.

Reported by @jztech101.
2018-01-28 17:30:21 -08:00
James Lu
e61f73fc9d Weather: don't need to add in the api key twice
Reported by @jztech101.
2018-01-28 17:25:05 -08:00
James Lu
ac4c9f2063 travis: don't test Weather, it hits my API limits too quickly 2018-01-28 16:35:58 -08:00
James Lu
a6de04f08b Weather: more comprehensive tests 2018-01-28 16:28:49 -08:00
James Lu
063f3e4800 Weather: quick fix to locationsearch
This will be updated again in the future to return the place names like it used to.
2018-01-28 16:28:49 -08:00
James Lu
0f5fdcfefd Weather: fix errors when forecast info isn't available 2018-01-28 16:28:49 -08:00
James Lu
e13eb7203c Weather: rewrite to use the geolookup API
Thanks to @jztech101 for the initial suggestion.

Closes #69.
2018-01-28 16:28:45 -08:00
James Lu
84e376acf5 Weather: remove try/except on getUrl in _wuac()
irc isn't defined in this scope, so this would throw errors trying to raise an error
2018-01-28 14:25:26 -08:00
Julian Zhou
0cc102c3c6 Weather: reword 'no API key configured' error (#68) 2018-01-04 09:41:29 -08:00
James Lu
ff867d3ed5 Weather: time out getUrl requests after 5 seconds
getUrl without a custom timeout seems to wait forever before returning a "Connection timed out" error, and this is really confusing.
2018-01-03 19:07:32 -08:00
James Lu
3ab4ba16dc DDG: remove zeroclick from plugin readme
[skip ci]
2017-12-28 00:24:07 -08:00
James Lu
51ff41251b SedRegex: make the regexp process timeout configurable
Although the default has been adequate on my systems, busy or low-powered machines may fail to process regexps quickly enough and cause SedRegex to sporadically error.

Reported by @cottongin via IRC.
2017-12-08 12:33:17 -08:00
James Lu
06e00beea6 OperUp: write tried_oper flag to irc.state, as attributes under irc are not persistant 2017-11-22 23:58:00 -08:00
James Lu
8c0b8d91a1 OperUp: don't try to autooper multiple times
This fixes an infinite loop when receiving OPERMOTDs that use the regular MOTD numerics (e.g. on InspIRCd).
2017-11-22 09:26:05 -08:00
James Lu
6fdcdefca6 OperUp: cleanup and reindent 2017-11-21 11:53:32 -08:00
James Lu
4081afc999 OperUp: remove 461 handler
ERR_NEEDMOREPARAMS is very general and can be triggered by other commands too.
2017-11-21 11:47:30 -08:00
James Lu
6dc362041c OperUp: fix wrong numeric in do464 logging 2017-11-21 11:46:05 -08:00
James Lu
4b5795b9ce OperUp: remove extraneous numeric 377 handler
The only MOTD-related usage of this is deprecated according to http://defs.ircdocs.horse/defs/numerics.html#rpl-kickexpired-377
2017-11-21 11:42:25 -08:00
James Lu
f25afcca35 TranslateParty: tweak testcase output logging 2017-11-12 01:39:28 -08:00
James Lu
d147207ad1 Wikifetch: ignore GPS coordinates from articles for countries, etc. 2017-11-12 01:39:28 -08:00
James Lu
d000140891 Wikifetch: roughly sort Wikipedia tests by theme 2017-11-12 01:39:28 -08:00
James Lu
ddc92142a2 TranslateParty: strip formatting before translating, not after...
Really fixes #60.
2017-11-12 01:39:28 -08:00
James Lu
afabf73705 NoTrigger: prepend, not append
[skip ci]
2017-11-10 10:01:19 -08:00
James Lu
e471a02cd4 NoTrigger: cleanup readme
[skip ci]
2017-11-10 09:58:23 -08:00
James Lu
d4e75618d6 TranslateParty: clean up tests
- Remove reference to "WTE"
- Remove Python 2 check.
2017-11-09 09:20:57 -08:00
James Lu
9378aca10f Weather: rewrite 'setweather' help for clarity 2017-11-02 20:20:26 -07:00
James Lu
bdb7d70185 PkgInfo: refresh Ubuntu and Mint codenames 2017-10-24 07:24:27 -07:00
James Lu
e32223bb66 Weather: omit the Alerts line completely if none are available
This is otherwise just spam...
2017-10-23 19:46:44 -07:00
James Lu
a66555dedf PkgInfo: update command help on most commands 2017-09-10 01:07:43 -07:00
James Lu
2c69e99299 PkgInfo: remove the Fedora fetcher
Fedora's PkgDB has been decommissioned, and the new PDC backend doesn't have a usable API yet for our purposes.
Specifically, the PDC API does not support sorting packages from oldest to newest, and we don't have a way to navigate its pages of results without making excessive API calls.

Possibly related: https://github.com/product-definition-center/product-definition-center/issues/439
2017-09-10 00:37:51 -07:00
James Lu
7f2110ee24 PkgInfo: remove old distro-specific functions, update tests (#64) 2017-09-10 00:35:53 -07:00
James Lu
fb5be74e35 PkgInfo: fix TypeError on 'pkg arch' 2017-09-10 00:34:42 -07:00
James Lu
e994064cc7 PkgInfo: general cleanup 2017-09-10 00:15:46 -07:00
James Lu
f7049ef484 PkgInfo: make private internal functions 2017-09-10 00:11:45 -07:00
James Lu
790f68e2b8 PkgInfo: clean up code for MadisonParser 2017-09-10 00:08:19 -07:00
James Lu
11242b4064 WIP: reimplement the fedora fetcher using the new PDC API
PkgDB is decommissioned already according to https://fedoraproject.org/wiki/Infrastructure/WhatHappenedToPkgdb
2017-09-09 23:51:30 -07:00
James Lu
0955fe4c13 PkgInfo: fix IndexError when a message only contains spaces 2017-09-09 23:50:48 -07:00
James Lu
400ffd7899 Wikifetch: fix quote_plus import 2017-09-07 19:20:21 -07:00
James Lu
f45cb0d5e7 PkgInfo: add 'pkgsearch' support for FreeBSD, Linux Mint 2017-09-04 16:50:27 -07:00
James Lu
d41178dd09 PkgInfo: Implement arch, archaur support in pkgsearch (#64) 2017-09-04 16:44:49 -07:00
James Lu
a3e0b16d82 PkgInfo: abstract pkgsearch into fetcher backends (#64) 2017-09-04 16:33:58 -07:00
James Lu
a7ad22cdbc PkgInfo: verify the output type from fetcher functions 2017-09-04 15:48:52 -07:00
James Lu
31ea5ebde6 PkgInfo: add 'pkg freebsd' support (#64) 2017-09-04 14:47:27 -07:00
James Lu
771070f6c4 PkgInfo: throw an error when using 'pkg mint --depends' (not implemented) 2017-09-04 14:47:12 -07:00