725 Commits

Author SHA1 Message Date
James Lu
5bf5772b9a LastFM: switch to using wrap() as a decorator 2016.02.28 2016-02-25 06:58:30 -08:00
James Lu
1ae2baa347 RelayNext: strip CTCPs other than actions 2016-02-24 18:25:02 -08:00
James Lu
f4cde05c85 RelayNext: ignore PMs in doPrivmsg 2016-02-17 06:58:33 -08:00
James Lu
f132f2cad2 Weather: give a slightly different error if we're looking up someone else's weather, and the target doesn't have a location set 2016-02-16 19:30:58 -08:00
James Lu
c82aaf50a7 Weather: cleanup, use @wrap, allow looking up other users' weather 2016-02-16 19:30:58 -08:00
James Lu
a3b1236e66 .travis.yml: ignore archive/name branches too 2016-02-14 19:36:42 -08:00
James Lu
7b0c06292d LastFM: mention YouTube linking feature and initial setup
[skip ci]
2016-02-14 10:27:05 -08:00
James Lu
52f0fb2d46 RelayNext: Optionally show status prefixes in messages (Closes #38) 2016-02-11 10:02:45 -08:00
James Lu
867e61ea78 RelayNext: cleanup, switch to using new msg.tagged('channels') - Closes #40.
- Drop _getAllRelaysForNetwork() and custom state keeping code, as they aren't needed anymore
- Hopefully closes #41? (we may never know)
- Also, don't lowercase command names in flood prevention announcements: "PRIVMSGs" looks more correct than "privmsgs" IMO
2016-02-07 12:52:24 -08:00
James Lu
93e558d17c RelayNext: consistently use str.lower for channel names instead of casemapping-dependant ircutils.toLower
Internally, the relay database doesn't care about case mappings - channel names are stored lowercase, word for word.
Using ircutils.toLower for channel names in the relay core breaks if the channel name has characters that when lowercased using RFC1459 case mapping, give a different literal result (e.g. #\\\ becomes #|||, which isn't in a relay)
2016-02-07 12:52:24 -08:00
James Lu
af0b15c88c LastFM: remove Travis / gitignore files, since it isn't being used as a subtree anymore 2016-02-07 11:42:19 -08:00
James Lu
826f55f5a8 PkgInfo: simplify 'linuxmint' with new-style wrap
Also, update copyright year.
2016-02-05 20:32:05 -08:00
James Lu
5861d5b15d PkgInfo: sort 'archlinux' output and show repo when in verbose mode 2016-02-05 20:21:25 -08:00
James Lu
2319948a47 RelayNext: alphabetically sort 'nicks' output 2016-01-19 20:55:01 -08:00
James Lu
7ebc813cff Replacer: handle notices too, instead of just privmsg 2016-01-08 17:49:42 -08:00
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