860 Commits

Author SHA1 Message Date
James Lu
84de8f100e RelayNext: fix disconnected networks causing error in 'nicks'
Reported by @nathan0.
2015-12-28 20:27:41 -08:00
James Lu
a08eb2dc4a Relaynext: fix check for disconnected networks 2015-12-27 13:58:36 -08:00
James Lu
7af92f86a5 SupyMisc: add "average" command 2015-12-23 22:33:56 -08:00
James Lu
b347f658f8 Replacer: swap order of comparisons in message filtering
Previously, this would error whenever a message without a first argument was present in irc.state.history.

ERROR 2015-12-17T21:12:51 Uncaught exception in _callRegexp:
Traceback (most recent call last):
  File "/home/gl/.local/lib/python3.4/site-packages/supybot/callbacks.py", line 1457, in _callRegexp
    method(irc, msg, m)
  File "/home/gl/SupyPlugins/Replacer/plugin.py", line 116, in replacer
    if m.args[0] == msg.args[0] and \
IndexError: tuple index out of range
ERROR 2015-12-17T21:12:51 Exception id: 0x2b96f
2015-12-17 21:15:09 -08:00
James Lu
688f00ac4d RelayNext: don't send messages to relay channels we're not in
This pretends a slew of "cannot send to channel" errors and possible excess floods whenever the bot is starting, as different networks connect at their own pace.
2015-12-13 18:01:04 -08:00
James Lu
2dff5dd4e6 README: update IRC addresses
[skip ci]
2015-11-26 16:36:25 -08:00
James Lu
d1e3cd9837 Update my email in various places 2015-11-26 16:27:57 -08:00
James Lu
287b4eaf2c WTE: skip translations when we get 400 errors instead of breaking entirely 2015-11-21 22:34:38 -08:00
James Lu
d9fe1a0137 WTE: update tests to show two lines of responses instead of one (verbose) 2015-11-21 22:27:52 -08:00
James Lu
a0611ba422 WTE: refresh language list, default to verbose output & show language names too 2015-11-21 22:25:10 -08:00
James Lu
917e5c15df RhymeZone: add utf-8 header (Python 2 compatibility) 2015-11-21 19:49:40 -08:00
James Lu
3efa917937 Add RhymeZone plugin 2015-11-21 19:30:04 -08:00
James Lu
2d0e90b2dc Wikifetch: Limit supybot.commands import to remove __builtins__.any hack 2015-11-14 16:19:11 -08:00
James Lu
b02a0bce9c Revert ".travis.yml: skip testing BonusLevel plugin (site is having issues)"
This reverts commit 70340a0e5943653b0e9aa51d1a10f69c1a354e23.
2015-11-10 20:55:29 -08:00
James Lu
70340a0e59 .travis.yml: skip testing BonusLevel plugin (site is having issues) 2015-11-09 16:39:11 -08:00
James Lu
7b6d7ea441 Weather: update README [skip ci] 2015-11-09 16:38:45 -08:00
James Lu
7b2da8e25e SupyMisc: skip testTldInternationalTLDs on Python 2 only 2015-11-09 16:35:27 -08:00
James Lu
d0288021a7 NoTrigger: remove extraneous logging in \x07 blocking 2015-11-09 16:23:41 -08:00
James Lu
4109741a01 Wikifetch: "Not found or page malformed" should be an error, not a reply 2015-11-01 11:14:32 -08:00
James Lu
0abe86e824 LastFM: update copyright, remove unused code / imports 2015-11-01 11:04:55 -08:00
James Lu
99d6557e46 LastFM: add experimental YouTube link fetching for 'np'
Essentially, my reimplementation of krf/supybot-lastfm#8. Instead of using YouTube's API (which requires API keys and all that), this performs web search on site:youtube.com using the DDG (DuckDuckGo) plugin in this repository. The advantage to this is that it's simpler to set up, but results may not always be the most accurate / relevant.

This behavior can be turned on by setting supybot.plugins.LastFM.fetchYouTubeLinks to True - it defaults to off since this is experimental anyways. The DDG plugin needs to be loaded too for this to work.

Also, only bold the album/artist/track data during output formatting, NOT before (this screws up searches with all the \x02's).
2015-11-01 10:48:56 -08:00
James Lu
5431f25e0a DDG: log search URL to DEBUG 2015-11-01 10:48:56 -08:00
James Lu
932a27e588 LastFM: catch and fall back to "some point in time" if LastFM's API doesn't show the listened-to date 2015-11-01 10:24:44 -08:00
James Lu
52ec05a041 DDG: remove broken error catching (irc isn't in the _ddgurl namespace) 2015-11-01 10:24:03 -08:00
James Lu
2cfdb46708 PkgInfo: add "xenial" to Ubuntu codenames, drop "lucid" and "utopic" (lookup no longer available) 2015-10-31 17:09:56 -07:00
James Lu
18b2c27774 .travis.yml: no longer exclude LastFM from tests 2015-10-25 17:51:27 -07:00
James Lu
facd42da12 Wikifetch: add test for 'random' 2015-10-25 17:44:17 -07:00
James Lu
03cd552a08 Wikifetch: special case for Wikimedia commons 2015-10-25 17:42:49 -07:00
James Lu
535dcc3bc3 Wikifetch: add 'random' command, fetching a random article via Special:Random 2015-10-25 17:36:14 -07:00
James Lu
54a9d6a8a6 Wikifetch: reword command description (Wikipedia article -> wiki article) 2015-10-25 17:35:45 -07:00
James Lu
08a2942d99 Wikifetch: modularize wiki fetcher, use new-style wrap, simplify URL display 2015-10-25 17:20:40 -07:00
James Lu
f1bd086098 Update .mailmap
[skip ci]
2015-10-25 17:07:35 -07:00
James Lu
c50c50b1cb Wikifetch: also strip newlines from regular paragraphs
Example of problem article: https://en.wikipedia.org/wiki/2BOT_Physical_Modeling_Technologies
2015-10-25 17:07:35 -07:00
James Lu
af6a4d5314 .travis.yml: still test on 3.2, just allow it to fail 2015-10-11 22:38:11 -07:00
James Lu
2a0469d039 LastFM: readme updates
Remove references to the subtree repo for LastFM, it's out of date and isn't in sync anymore (merge conflicts, yay!)

[skip ci]
2015-10-11 22:27:55 -07:00
James Lu
8e8a3a30a5 NoTrigger: make list of prefixes/suffixes and bell (\x07) blocking configurable, docs+test case updates 2015-10-11 22:20:59 -07:00
James Lu
7f5cea73ad Wikifetch: fallback to '' instead of "None" for bold text, w/ combinations of <a> tags inside <b> tags
Example for this is the article for "Fallstreak hole", where the old behavior would create incorrect results when an <a> tag is nested at the beginning of a <b> tag.

Bad:
<Lily> A Nonefallstreak hole, also known as a hole punch cloud, punch hole cloud, skypunch, canal cloud or cloud hole, is a large circular or elliptical gap that can appear in cirrocumulus or altocumulus clouds. Such holes are formed when the water temperature in the clouds is below freezing but the water has not frozen yet due to the lack of ice nucleation (see supercooled water). When ice crystals do form it will set off a (1 more message)

Better:
<Lily> A fallstreak hole, also known as a hole punch cloud, punch hole cloud, skypunch, canal cloud or cloud hole, is a large circular or elliptical gap that can appear in cirrocumulus or altocumulus clouds. Such holes are formed when the water temperature in the clouds is below freezing but the water has not frozen yet due to the lack of ice nucleation (see supercooled water). When ice crystals do form it will set off a (1 more message)
2015-10-11 17:26:31 -07:00
James Lu
f03b891fc2 LastFM: rewrite "np" using the JSON API
Close 36.
2015-10-09 18:25:57 -07:00
James Lu
18beb9814c CONTRIBUTING.md isn't relevant anymore, remove it
[skip ci]
2015-10-09 18:23:48 -07:00
James Lu
f5b1bedd3f LastFM: fix "profile", moving to JSON API (#36) 2015-10-09 18:23:48 -07:00
James Lu
02a2efffb2 LastFM: reduce the plugin to "np" and "profile" (#36)
LastFM's API breakages are making this hard to maintained, and the low demand for these commands make it not worth maintaining.
2015-10-09 18:23:48 -07:00
James Lu
3564f0bd43 LastFM: "compare" is dead, remove it. (#36)
LastFM seems to have disabled their tasteometer API without any notice whatsoever. Oddly, the only relevant information I can find on this is a Reddit post: https://www.reddit.com/r/lastfm/comments/3mkrqm/is_the_tasteometer_api_down/
2015-10-09 18:23:44 -07:00
James Lu
d3e780e1f5 Drop Python 3.2/3.3 support; update Replacer's README 2015-10-02 22:52:54 -07:00
James Lu
544bd27b84 update-version: don't add + before date if old version field is empty 2015-10-02 22:44:53 -07:00
James Lu
9a7d4aaab8 Weather: bump to 2015.10.02 2015-10-02 22:44:16 -07:00
James Lu
4ab5ebd9c3 Replacer: bump version to 0.6~supyplugins+2015.10.02 2015-10-02 22:42:25 -07:00
James Lu
d940878ae8 Overhaul update-version.py using argparse
Setting specific versions, choosing which plugin folders to update, and disabling auto-commit are now command line options.
2015-10-02 22:42:25 -07:00
James Lu
c0e2b0426b Add "Replacer" plugin from GLolol/t3chguy-Limnoria-Plugins@f802227064 2015-10-02 22:07:00 -07:00
James Lu
b42592a7ee CtcpNext: update docs, add "show" command
Closes #37.
2015-10-02 20:26:19 -07:00
James Lu
f5325dfa43 Merge remote-tracking branch 'weather/devel' 2015-09-28 13:07:59 -07:00