Valentin Lorentz
cd02444f87
supybot-plugin-doc: Add labels for all command and config variables
...
So they can be referenced from elsewhere in the doc.
2021-04-06 00:33:07 +02:00
Valentin Lorentz
833af36b08
all plugins: auto-generate READMEs
...
Starting with this commit, there should be no "original" text
in READMEs.
Instead, the entire text should be in docstrings, and READMEs
should be automatically generated from these docstrings.
Motivation:
* The same help is available both via IRC and in the README
(although the README can be more detailed, as only the first
paragraph will be shown on IRC)
* This will allow auto-generating plugin help on docs.limnoria.net
using the same content as the README, as it's sourced from the
docstrings
Additionally, this converts all READMEs from Markdown to ReST,
because the documentation already uses ReST, and other docstrings
in the codebase are in ReST for this reason.
2021-04-05 17:42:31 +02:00
Valentin Lorentz
21657f31ee
Aka, Alias: Remove mentions of Alias in the Aka documentation, and explain Alias is deprecated
2021-04-05 15:00:02 +02:00
Valentin Lorentz
78dc45e99e
Aka: eliminate race condition in tests?
...
Sometimes (very rarely), the test errors with:
```
======================================================================
FAIL: testHistsearch (Aka.test.AkaChannelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/supybot/test.py", line 214, in runTest
originalRunTest()
File "/usr/lib/python3/dist-packages/supybot/plugins/Aka/test.py", line 67, in testHistsearch
self.assertResponse('histsearch .*', '@echo foo')
File "/usr/lib/python3/dist-packages/supybot/test.py", line 402, in assertResponse
self.assertEqual(m.args[1], expectedResponse,
AssertionError: '@aka add histsearch "last --from [cif true[80 chars]"]]"' != '@echo foo'
- @aka add histsearch "last --from [cif true \"echo test\" \"echo test\"] --regexp [concat \"m/$1/\" [re s/g// \"@2\"]]"
+ @echo foo
: '@echo foo' != '@aka add histsearch "last --from [cif true \\"echo test\\" \\"echo test\\"] --regexp [concat \\"m/$1/\\" [re s/g// \\"@2\\"]]"'
```
ie. histsearch returns the 'aka add' message instead of the 'echo foo'
one.
My guess is that if they happen too closely to each other, they get
added to the history in the wrong order (how? it's not threaded)
So this commit works around the issue by making the regexp unambiguous.
2021-02-21 00:18:03 +01:00
Valentin Lorentz
e2d72c5a43
Fix msgfmt warnings.
2020-03-26 22:10:28 +01:00
James Lu
4528a847e4
Aka, Google, String: fix more DeprecationWarning in tests ( #1328 )
2020-01-26 11:31:28 -08:00
James Lu
ff899f5158
Aka, Debug: cleanup imports
2020-01-26 10:42:43 -08:00
Valentin Lorentz
9ab908759a
Use importlib instead of imp.
...
importlib is deprecated.
2020-01-26 12:00:08 +01:00
James Lu
9291fbd4a0
All plugins: set Limnoria contributors as maintainer
2019-11-16 11:41:13 -08:00
James Lu
9eecedee93
Fill in author info for plugins missing it
2019-10-27 12:59:37 -07:00
Johannes Löthberg
27e7d6a9ac
Aka: Add web UI ( #1373 )
...
* utils.web: Import html escaping functions
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* Aka: Add web interface for browsing Akas
Fixes #1226 .
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* httpserver: Actually handle KeyError in unhook
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* test: FakeHTTPConnection: Don't decode data in send
BaseHTTPRequestHandler expects to get bytes, so we can't decode the sent
data.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* test: HTTPPluginTestCase: Use BytesIO instead of StringIO
BaseHTTPRequestHandler expects bytes, not strings.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* test: HTTPPluginTestCase: Rewind wfile to 0 before reading the response
Otherwise the read pointer is at the end of the file.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
* Aka: Add basic web UI tests
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2019-10-10 17:27:34 +02:00
Valentin Lorentz
696254ff1b
Use irc.isChannel instead of ircutils.isChannel when possible.
...
It's aware of the network's 'chantypes'.
2019-08-04 21:52:40 +02:00
Valentin Lorentz
bee98f6711
Conditional: Do not use noReply() after running the command.
...
As the command already calls reply() or noReply(), calling noReply()
there had disastrous effects:
* if reply() was called, noReply() erases the argument
* if noReply() was called, calling noReply() a second time erases **the next argument** (because the current argument was already erased).
This was 'caused' by the change of behavior of noReply() in 543edccd41
.
2017-10-26 09:55:52 +02:00
Ken Spencer
76c73a57b9
Use a prefix-less help string, don't assume a '@' prefix ( #1309 )
...
* Use a prefix-less help string, don't assume a '@' prefix
* Nickometer: follow through on plugin.py with ` -> '
2017-10-25 21:19:37 +02:00
Valentin Lorentz
543edccd41
Properly handle noReplies() in nested commands.
...
This fix prevents the bot from replying 'Error: I tried to send you an empty message'
when 'utilities ignore' is called from an Aka.
2017-10-21 15:37:43 +02:00
Valentin Lorentz
0998651f61
Aka: Escape the command in help strings, so they can be copy-pasted into @aka add.
2017-10-01 10:40:23 +02:00
Valentin Lorentz
087fa71d63
Aka: Tell in the help message what channel the aka is for.
2017-08-20 19:55:28 +02:00
Valentin Lorentz
5272bf3a86
Aka: Fix combination of required and optional arguments.
...
Was broken by 7f43727835
(why?)
2017-08-18 18:30:22 +02:00
Marc Chevalier
99b4a7289b
Aka: fix backquote matching in readme
2017-05-04 14:58:48 +02:00
Valentin Lorentz
7f43727835
Aka: Proper mitigation of expansion bomb.
2017-04-17 11:05:04 +02:00
Valentin Lorentz
3075a41a3b
Aka: Allow more than one in an aka. Closes GH-1283.
2017-04-17 10:53:26 +02:00
Valentin Lorentz
5452d4194a
Aka: Remove first elements of the 'args' list in a single pass.
2017-04-17 10:31:43 +02:00
Valentin Lorentz
6936e3d634
Aka: make @list --keys reply on a single line, even if supybot.reply.oneToOne is False. Closes GH-1225.
2016-03-11 21:00:01 +01:00
Valentin Lorentz
6b3766dcd1
Remove trailing spaces.
2016-01-27 14:04:58 +01:00
Sujeet Akula
c44d2007c4
add desc for wizard
2016-01-27 08:03:05 -05:00
Valentin Lorentz
56d4cbec08
Aka: Fix Python 2 compatibility.
2015-12-02 09:06:34 +01:00
Valentin Lorentz
3fde279e50
Aka: Fix database name.
2015-12-02 07:55:00 +00:00
Valentin Lorentz
e1d0c232ea
Aka: Deprecate SQLAlchemy backend.
2015-11-07 18:29:43 +01:00
James Lu
dbd12e9c0c
Aka: allow filtering 'list' by Aka lock status
...
This adds two mutually incompatible options to Aka list: --locked and --unlocked
2015-08-29 17:21:17 -07:00
Valentin Lorentz
aa98d987a7
Fix imports to minisix.
2015-08-11 17:01:58 +02:00
Valentin Lorentz
c3a2c800f1
Remove need for 2to3.
2015-08-11 16:50:23 +02:00
Valentin Lorentz
2c380a4c3a
Remove fix_xrange.
2015-08-10 19:36:07 +02:00
Valentin Lorentz
be6bc1a734
Remove need for fix_unicode.
2015-08-10 18:52:51 +02:00
Valentin Lorentz
216c5d213f
Replace sys.version_info[0] usages with minisix.PY{2,3}.
2015-08-09 00:23:03 +02:00
Valentin Lorentz
be118c3338
Remove use of fix_dict fixer.
2015-08-08 23:08:49 +02:00
James Lu
97228afb7d
Aka.search: be case insensitive and handle "not found" errors correctly
...
Closes #1110 .
2015-05-18 14:53:30 -07:00
James Lu
308eea922e
Aka: add a 'search' command.
...
Closes ProgVal/Limnoria#1081 .
2015-04-26 22:20:24 -07:00
James Lu
5bd2c5eaaf
Aka: add 'aka list --keys'
...
This allows one to view just the list of Akas without their commands,
similar to the older 'list aka' behavior.
2015-01-14 21:39:31 -05:00
GLolol
c492cb40e1
Aka: add a missing '.' in the error message
2014-12-26 16:21:20 -05:00
GLolol
b76cff73a8
Revert "Aka: update converters to use 'channel' instead of 'somethingWithoutSpaces'"
...
This reverts commit 231c250b75
.
2014-12-26 16:18:39 -05:00
GLolol
4a70a9a79c
Merge branch 'testing' into aka-2
...
Conflicts:
plugins/Aka/plugin.py
2014-12-26 14:05:32 -05:00
James Lu
231c250b75
Aka: update converters to use 'channel' instead of 'somethingWithoutSpaces'
2014-12-22 19:57:26 -08:00
Valentin Lorentz
d06d744f11
Squashed commit of the following:
...
commit 47ede7f658c17857fd291a1a40df3b3c18e36473
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 14:51:45 2014 +0200
Misc: update l10n-fi
Sorry, I forgot to commit this before PR.
commit 6b5d61e5a5ae323dcc2c8366ea68236fd09bccae
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 14:42:37 2014 +0200
Web: update l10n-fi
[CI SKIP]
commit e103515083d9448bd80520c02c895ea8a1f33107
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 14:41:15 2014 +0200
URL: update l10n-fi
commit 942d1db0aa1deb8e5d2a4f81a62edefc30a6ce27
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 14:33:52 2014 +0200
Factoids: update l10n-fi
[CI SKIP]
commit dae8da0c7568c63ebc3986503ac86a5d6466c6e9
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 14:32:46 2014 +0200
Conditional: update l10n-fi
commit 7bd2d8cc65b3908c6ffe5b1eb9250987484c247a
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 14:20:23 2014 +0200
Todo: update l10n-fi
commit ee37330b8fdd3a32fd5156ab0e792d76176b0515
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 14:19:17 2014 +0200
Nickometer: update l10n-fi
commit 81271aa71846469de61d1be4b5cb442a26f955b9
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 14:16:30 2014 +0200
NickAuth: update l10n-fi
commit 7d9bfeaffaef0c1f1fee7ed7d84064ba02bfdfb1
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 14:14:04 2014 +0200
Note: update l10n-fi
commit 9ab5c2c3803413b1e775121a733ddf0408065764
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 14:10:09 2014 +0200
Google: update l10n-fi
"This is a simple plugin to provide access to the Google services we
all know and love from our favorite IRC bot." :D
commit 897a7b79c45108e70b2ba1a4f7156029a043a17d
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 14:07:13 2014 +0200
Herald: update l10n-fi
commit 2825cd6a32d4cc843a748d0ea6162760064cdc77
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 14:00:59 2014 +0200
Misc: update l10n-fi
[SKIP CI]
commit fba930cd3982d5ba92ba1b1ec1c194911a01e875
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:58:51 2014 +0200
Utilities: update l10n-fi
commit 21c875b3fc66176f2c65fd1291e3a6360e8708f3
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:57:25 2014 +0200
Aka: update l10n-fi
commit 05005f464db107f8ad18becc3855e263f04634c8
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:51:15 2014 +0200
Config: update l10n-fi
commit 8e57df072c9af0dda1ac2b048712f5e973163c7d
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:50:20 2014 +0200
Karma: add l10n-fi
commit d2f6c6802fc327d2f308ef71ac2640df244463d1
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:47:28 2014 +0200
Alias: update l10n-fi
[CI SKIP]
commit b97484dd74e553606de26cab987c69bc160781a9
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:45:23 2014 +0200
Topic: update l10n-fi
commit 6dc04aca97a2a107821f53c5d067133122323df3
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:43:41 2014 +0200
Time: update l10n-fi
commit e0f04cb4334f854524da711993ae7041f151b1c8
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:38:44 2014 +0200
Scheduler: update l10n-fi
commit bcd8ede5ad263963b6fa67fac204cf8f2ab3cafa
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:37:28 2014 +0200
Filter: update l10n-fi
commit 32619add01f26332f3c5b559003c94711c4a299b
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:26:11 2014 +0200
Internet: update l10n-fi
commit a3c3342db39ae8404df8d89478b5c23f6642847d
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:12:05 2014 +0200
Web: update l10n-fi
[CI SKIP]
commit 77476fd14b970969ef6d64cfe6930e3812e6f88e
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:10:23 2014 +0200
Unix: update l10n-fi
commit db5d59b4514becf128b6ec0dbec8f4543cb069ea
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:09:19 2014 +0200
ChannelStats: update l10n-fi
commit 827c225fe5141cd3fa5060b19e8e19aafc8a2895
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:08:02 2014 +0200
Quote: update l10n-fi
commit 615019735eae74f95413622d0e42a7cd7d610da1
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:06:22 2014 +0200
Seen: update l10n-fi
commit 36c4606fd82b207f93658fda320890eb26bec6d4
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 13:03:52 2014 +0200
MoobotFactoids: update l10n-fi
commit c1c958a6dbb14b2f039771cb4179c5ba36d10026
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 12:23:33 2014 +0200
Dict: update l10n-fi
[CI SKIP]
commit 9d98da8e3d3fdd0f2204bd92e5c57313e8fc3477
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 12:21:58 2014 +0200
ShrinkURL: update l10n-fi
commit a5d6a7325b753e4ea2bfbb29374be89207fc59fd
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 12:20:04 2014 +0200
String: update l10n-fi
commit 95f88c750ebcbaf66512d940b089298a67e19851
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 12:19:06 2014 +0200
Admin: update l10n-fi
commit ba52e93038468f785148ba31cb87c974fe64cddb
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 12:17:45 2014 +0200
Relay: update l10n-fi
commit 0ae032bf4d4562c91164560cefe2e4d88be1ed74
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 12:16:42 2014 +0200
Math: update l10n-fi
commit c16cc0fa114d063d75c3b043dc5b357a470ce46e
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 12:14:54 2014 +0200
Channel: update l10n-fi
[CI SKIP]
commit 738a3c91d66cfc822697bc4d35f0bc3ea44a8191
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 12:13:28 2014 +0200
ChannelLogger: update l10n-fi
commit 843dc98cea02cc4027d2ea6824258e12a69cb828
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 12:12:14 2014 +0200
RSS: update l10n-fi
commit 903b50150d42202c382cb20f18fefd17d62ae0ad
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 12:09:44 2014 +0200
Protector: add l10n-fi
[CI SKIP]
commit d5488599151814e0a26ab43d4e2d0545a2910a0c
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 12:08:08 2014 +0200
QuoteGrabs: update l10n-fi
commit 2586497f74555a092969e07190e544374effa634
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 12:04:30 2014 +0200
Lart: update l10n-fi
[CI SKIP]
commit 276d76eb3c6ba64d6b5bccd54897d01059a86fcd
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 12:03:18 2014 +0200
Anonymous: update l10n-fi
commit b98c6a51c9f2e12b0207d68baa7f4311e7c276be
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 11:44:16 2014 +0200
User: update l10n-fi
[CI SKIP]
commit 218a53ffcbfc854678cac3a4af033753f1f48fa6
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 11:42:13 2014 +0200
News: update l10n-fi
commit 0b68eda84131448fbe585983f4320c163574e2d2
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 11:40:41 2014 +0200
Format: update l10n-fi
commit 9c390ed244c2b152f343d56837e56bedab7d7698
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 11:39:03 2014 +0200
AutoMode: update l10n-fi
commit 4523e154792fdead7a26b19a3178c1c1e86082a7
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 11:37:49 2014 +0200
Status: update l10n-fi
commit 28d6c4b0c5072273d8d37c9bf87b671aba6d5df4
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 11:36:33 2014 +0200
Games: update l10n-fi
[CI SKIP]
commit 52e21367d99e908b1c650f2f379659037251c4eb
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 11:34:22 2014 +0200
Network: update l10n-fi
[CI SKIP]
commit 7876a8f1e1ae35a13df9299e24c996a887542481
Author: Mikaela Suomalainen <mikaela.suomalainen@outlook.com>
Date: Sat Dec 20 11:28:18 2014 +0200
core: update l10n-fi
2014-12-20 14:37:27 +01:00
GLolol
a1a7864f54
Aka: update list command
2014-12-17 07:35:26 -08:00
James Lu
26df32086d
Aka: catch with error if 'aka list' response is empty
2014-12-16 16:52:14 -08:00
James Lu
f05f04807d
Aka: update tests
2014-12-16 16:40:42 -08:00
James Lu
f802f77904
Aka: update listCommands override to only include built in cmds
...
The old behavior is superseded by 'aka list'. This makes it easier for people to find Aka plugin's core commands, as
'list Aka' won't be filled with random, irrelevant alias definitions.
2014-12-16 16:40:42 -08:00
GLolol
fe778c60bf
Aka: add 'list' command ( Closes ProgVal/Limnoria#572 )
2014-12-16 16:40:42 -08:00
GLolol
40df743cbf
Aka: Fix typo and help for 'show'
...
Help for 'aka show' should now mentions the --channel argument (this
was implemented but not mentioned).
2014-12-16 14:25:43 -08:00
James Lu
74655e4203
Add help for the following plugins (ref #903 ):
...
- Admin
- Alias
- AutoMode
- Channel
- ChannelLogger
- ChannelStats
- Conditional
- Config
- Ctcp
- Dict
- Also, proofread Aka's help from #904 for grammar.
2014-11-29 23:18:44 -08:00