1082 Commits

Author SHA1 Message Date
James Lu
d713ee66a8 RelayNext: refactor antiflood check into its own method 2020-12-19 23:36:13 +01:00
James Lu
ecf52180b0 RelayNext: make channel a mandatory argument to relay()
Messages where this is not set correctly are thrown away anyways.
2020-12-19 23:35:01 +01:00
James Lu
5c9a9a9aab RelayNext: fix antiflood not using the timeout value 2020-12-19 23:08:23 +01:00
James Lu
d892978272 RelayNext: rewrite the config help text 2020-12-19 22:57:40 +01:00
James Lu
2e296b38ff RelayNext: add events.relaySelfMessages option to toggle relaying the bot's output
Closes #98.
2020-12-19 22:57:40 +01:00
James Lu
2baceb609e README: direct people to #limnoria @ freenode
[skip ci]
2020-12-04 17:43:42 -08:00
James Lu
968e4c7390 NuWeather: refactor tests to workaround errors in the test framework
Previously, these tests always errored:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/supybot/test.py", line 214, in runTest
    originalRunTest()
  File "/usr/local/lib/python3.7/dist-packages/supybot/test.py", line 214, in runTest
    originalRunTest()
  File "./NuWeather/test.py", line 73, in testSavedLocation
    self.assertError('weather')  # No location set
  File "/usr/local/lib/python3.7/dist-packages/supybot/test.py", line 344, in assertError
    m = self._feedMsg(query, expectException=True, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/supybot/test.py", line 298, in _feedMsg
    to = self.irc.nick
AttributeError: 'NoneType' object has no attribute 'nick'
2020-09-19 01:07:13 -07:00
mogad0n
2a098528c7
LastFM: more immersive nowplaying output (#95)
* Making the output for nowplaying immersive

Added a simple conditional to make the output of now playing a little more aesthetically pleasing.
mogad0n is listening to Roller Mobster by Carpenter Brut [Trilogy]
vs
mogad0n listened to Roller Mobster by Carpenter Brut [Trilogy] just now.
Close #92
2020-09-10 20:27:22 -07:00
James Lu
f548d2dd54 NuWeather: use PluginTestCase.setUp() in tests
PluginTestCase.setUp() checks some hardcoded class names, so using super() here causes the tests to break.
2020-08-14 18:00:35 -07:00
James Lu
586d16712f NuWeather: add CI tests for Weatherstack and Openweathermap 2020-08-03 14:17:17 -07:00
James Lu
1eb83ea9df NuWeather: switch to OneCall API for OpenWeatherMap
This API is more complete and includes things like daily forecasts.
2020-08-03 14:13:11 -07:00
James Lu
47b7b422e4 README: remove dropped plugins 2020-07-08 17:33:25 -07:00
James Lu
025ad791cb DDG: remove; moved into core 2020-07-08 17:32:13 -07:00
James Lu
579c3e0cc6 AQI: fix name of config variables in docs 2020-06-21 11:31:06 -07:00
James Lu
5062d3c935 Wikifetch: remove broken Wikimedia commons test 2020-06-09 10:06:13 -07:00
James Lu
3c7e9e275a AQI: properly encode place names with spaces in them 2020-06-09 09:56:10 -07:00
James Lu
de4d74a3a9 NuWeather: drop apixu -> weatherstack link 2020-05-25 14:02:17 -07:00
James Lu
f960b66a72 NuWeather: update default backend to OpenWeatherMap 2020-05-25 14:01:29 -07:00
James Lu
fcef45ae77 NuWeather: fix crash with DarkSky when forecast summary is unavailable 2020-05-25 13:56:19 -07:00
James Lu
38e31daf3e SedRegex: remove; this plugin is now bundled with Limnoria 2020-04-10 17:27:44 -07:00
James Lu
4b698d40ed PkgInfo: update Ubuntu codenames 2020-03-29 11:19:17 -07:00
James Lu
af8384ba4f SedRegex: skip testReDoSTimeout if multiprocessing is disabled
From: d3b991895c
2020-03-22 21:16:07 -07:00
James Lu
866875ec5d SedRegex: allow matching text with the trailing suffix missing
Closes https://github.com/jlu5/SupyPlugins/issues/91

Also add test cases for issues described in https://github.com/jlu5/SupyPlugins/issues/59 - text after the trailing separator should be ignored unless its a regex flag.
2020-03-22 21:12:40 -07:00
James Lu
ab22cc980a README: refresh, update PluginDownloader repo name
[skip ci]
2020-03-20 16:45:10 -07:00
Gordon Shumway
56f3e1c4f4
NuWeather: Add weatherstack geocode backend (#90) 2020-02-09 00:11:57 -08:00
James Lu
0b662c6146 RelayNext: don't break relays if one network is disconnected 2020-01-24 07:54:30 -08:00
James Lu
17b3e86d1b Bump version to 2020.01.05+git 2020-01-05 21:12:06 -08:00
James Lu
5675a97857 Bump version to 2020.01.05 2020.01.05 2020-01-05 21:11:31 -08:00
James Lu
f01f9789fc MCInfo: strip nbsp from crafting item names 2019-12-31 23:08:00 -08:00
James Lu
bcf43ba48d PkgInfo: drop CentOS fetcher
This has broken in CentOS 8 and isn't feasible to maintain anymore, given the lack of a proper API.
2019-12-24 14:04:27 -08:00
James Lu
8ddf4a101a PkgInfo: show 'vlist' output in reverse by default
The madison API still shows EOL releases for Debian and Ubuntu, which are hardly useful at this point.
2019-12-24 14:04:27 -08:00
James Lu
4dd3f7ff08 GitLab: fix searching for X-Gitlab-Event
This was broken by 726ac377ed29363c9a88fc1ef51523718e3540b7
2019-12-24 13:19:29 -08:00
James Lu
ede632047d .travis.yml: add Python 3.8 2019-12-08 16:17:26 -08:00
James Lu
cbd953b32c Update plugin author/maintainer data 2019-11-16 12:29:03 -08:00
James Lu
22146bcb08 Remove unmaintained plugins CtcpNext, Namegen, PassGen 2019-11-11 12:36:17 -08:00
James Lu
19ae9f5cbe MCWiki: fix crafting table parsing 2019-11-11 12:34:28 -08:00
James Lu
ee59e5c6db Qalculate plugin: initial commit 2019-11-10 01:38:49 -08:00
James Lu
726ac377ed GitLab: s/Gitlab/GitLab/g 2019-11-08 19:04:19 -08:00
James Lu
6382b9d197 GitLab: Store super() information so that reloads don't fail with TypeError
This happens because the named reference to the "Gitlab" class is replaced by a new version on reload, making the old instance no longer an instance of it.

(cherry picked from commit f5ffcee53f)
2019-11-08 19:02:58 -08:00
James Lu
83fdfeb113 GitLab: Add an option to use NOTICE instead of PRIVMSG
(cherry picked from commit 3c0d66ea34)
2019-11-08 19:02:31 -08:00
James Lu
caed6ec0a5 GitLab: Drop the need for channel names in the URL
This behaviour was unclear and misleading for a number of reasons:
- The channel name was actually only used for checking the bot's channel presence, and not as the announcement target.
- What the plugin actually did is check *all* channels the bot is in on the target network for configured announcements,
  and announce to all of them (regardless of what channel was given in the URL).

Backwards compatibility with the old URL format is kept with this commit.

(cherry picked from commit 630786e541)
2019-11-08 19:02:06 -08:00
James Lu
46719240b0 GitLab: Fix support for multiple networks
Instead of fixing the webhook handler to the network where the plugin was loaded, dynamically search through networks (much like the plugin already did with channels).

This also makes the plguin raise an explicit error if a network+channel target is unknown, instead of leaving any frontend servers with confusing 502 (Bad Gateway) errors.

(cherry picked from commit 140d724fb3)
2019-11-08 19:00:53 -08:00
James Lu
ea198f0b8c GitLab: Remove dead metadata & test.py boilerplate 2019-11-08 18:59:13 -08:00
Moritz Lipp
175b3b7612 Import https://github.com/mlq/limnoria-gitlab@a58314f 2019-11-08 18:56:48 -08:00
James Lu
b6f0b34e9d README: remove webchat link
[skip ci]
2019-10-28 19:24:22 -07:00
Valentin Lorentz
ede85ca8b0 SedRegex: spawn a single process to handle the whole history.
This is more efficient than spawning up to 1000 processes (assuming
Limnoria's default config).
2019-10-26 01:28:27 +02:00
James Lu
81debc45ec SedRegex: add test for ReDoS timeout 2019-10-17 22:15:46 -07:00
James Lu
e5af479939 SedRegex: abort when a search times out
This requires commit b54d8f8073, which separates the timeout and no match cases.

Also, raise the default processTimeout as the plugin now aborts on the first message that times out.
2019-10-17 22:15:28 -07:00
James Lu
2ae51939b3 Update my email & repo link references 2019-10-11 09:58:50 -07:00
James Lu
152e037176 NuWeather: update list of supported backends 2019-10-06 15:42:56 -07:00