Commit Graph

561 Commits

Author SHA1 Message Date
Valentin Lorentz
e16c10ff77 supybot-plugin-doc: Recursively document *all* groups
Not just groups that are values themselves.
2021-04-22 00:28:40 +02:00
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
76b6c56919 supybot-plugin-doc: Fix various edge case issues in the ReST output 2021-04-05 17:40:57 +02:00
Valentin Lorentz
16fc2aef93 supybot-plugin-doc: Add option --output-filename
It can be used like this to generate README.rst files:

```
supybot-plugin-doc --plugins-dir plugins/ --format rst --output-filename='plugins/$name/README.$format'
```
2021-04-05 12:27:33 +02:00
Valentin Lorentz
524e409322 supybot-plugin-doc: Fix bugs with --plugins-dir 2021-04-05 12:26:47 +02:00
Valentin Lorentz
6b9de3d09d supybot-plugin-doc: Add explicit target for each plugin reference
It can be useful to reference it from elsewhere in the doc
2021-04-05 12:26:47 +02:00
Valentin Lorentz
5b98503fd3 supybot-plugin-doc: Add config option for the page title 2021-04-05 11:32:09 +02:00
Valentin Lorentz
a7fb46f526 supybot-plugin-doc: Update value of supybot.databases
Required for Aka, etc.
2021-04-05 11:31:43 +02:00
Lars Kellogg-Stedman
d24130f46d
resolve warnings about 'is not' and integer comparisons (#1435)
running supybot-adduser (or supybot-reset-password) with a recent
python would result in the warning:

> ```
> /usr/local/bin/supybot-adduser:59: SyntaxWarning: "is not" with a literal. Did you mean "!="?
> if len(args) is not 1:
> ```

This commits corrects the syntax.
`
2020-10-29 12:22:34 -07:00
Valentin Lorentz
8ed0b95962 supybot-wizard: re-prompt for channels if there were too many commas. 2020-06-14 20:17:33 +02:00
Valentin Lorentz
19f9604851 supybot-wizard: Fix handling of channel keys.
The keys should be in a separate configuration variable,
not be concatenated with the channels themselves.
2020-06-14 20:15:49 +02:00
Valentin Lorentz
71cf7338c3 supybot-wizard: Fix crash when adding or removing owner capability.
Closes GH-1410.
2020-05-21 00:17:50 +02:00
Valentin Lorentz
73b604f875 supybot-test: Simplify impl of --exclude. 2020-05-01 21:38:35 +02:00
Valentin Lorentz
5f620ddd5c Don't use 'is not' for string comparison. 2020-03-25 20:10:06 +01:00
James Lu
5c2e16f391 scripts: remove obsolete conditionals for Python 2 2020-01-05 11:31:45 -08:00
James Lu
7e70ce43f2 scripts: migrate shebangs and version checks to Python 3 2020-01-05 11:29:41 -08:00
James Lu
9e03e0e6e2 Be less hostile to users in --allow-root help 2020-01-05 11:25:47 -08:00
Valentin Lorentz
130ceede57 Update supybot-plugin-doc to work with current version of the registry.
Closes GH-1388.
2019-12-09 21:34:21 +01:00
Valentin Lorentz
423a38770b Get locale name on startup from registry cache instead of parsing config file.
Parsing the config file needlessly requires an extra read of it,
and is brittle (extra spaces, etc.)
It was especially broken as there was a newline character
at the end of currentLocale, which made everything fail
shamefully.
2019-11-24 12:04:21 +01:00
James Lu
7ac2828ab2 supybot-plugin-create: CVS is dead, stop mentioning it 2019-10-19 10:20:38 -07:00
Valentin Lorentz
4f024cb0b2 Add network-specific config values. 2019-08-15 12:22:43 +02:00
cottongin
a6839ddcb8 Create supybot-reset-password
Adds ability to reset passwords for bot users from the shell
2019-01-08 23:04:01 +01:00
James Lu
11d4015f71 Fixes and tests to supybot-plugin-create; modernize the plugin template (#1340)
* supybot-plugin-create: compactify import statements in the template

* supybot-plugin-create: prefer importlib over imp on Python >= 3.4

The imp module is deprecated as of Python 3.4[1], with importlib being the successor. However, importlib is only available in Python 2.7+ and 3.1+, so we should still use a fallback.

[1]: https://docs.python.org/3.6/library/imp.html

* test: add test cases for supybot-plugin-create

* -plugin-create: fix errors when only a subset of args are given

* -plugin-create: rename --real-name to --author/-a

These days, working under a pseudonym or alias is not unheard of, so putting emphasis on real names feels somewhat out of place.

* -plugin-create: add -d as an alias to --desc for consistency
2018-06-20 17:18:46 +02:00
Valentin Lorentz
f26f098d82 supybot-wizard: Warn if run with ~/.local/bin as CWD. 2018-04-11 11:57:12 +02:00
James Lu
17a0348d9a Substitute $nick and friends with <console> when exiting on Ctrl-C 2017-09-17 12:07:16 -07:00
Valentin Lorentz
59ed253a0e supybot-wizard: do not pollute the CWD before paths to directories are known. 2017-06-04 15:59:06 +02:00
Valentin Lorentz
eef901894d Add 'import supybot.i18n' warning to supybot-wizard. 2017-01-22 09:28:42 +01:00
Valentin Lorentz
90c5c78813 Add option --no-setuid to supybot-test
https://bugs.debian.org/834950
2017-01-10 22:56:17 +01:00
Nick Cross
039a4f38f8 Use copyfile instead of copy 2016-12-23 13:57:27 +00:00
Valentin Lorentz
df130e8931 Fix inconsistency in the help message for configuring ident. 2016-10-26 21:17:01 +02:00
GLolol
7767777af4 supybot-wizard: load Network by default 2016-08-16 11:07:50 +02:00
Valentin Lorentz
ccc6b53a9a Fix version returned by 'supybot --version' (Limnoria, not Supybot). 2016-07-28 09:27:21 +02:00
Valentin Lorentz
6ec60479b7 supybot-wizard: Fix typo. 2016-06-29 09:17:15 +02:00
Valentin Lorentz
ea89e4b784 Fix supybot-wizard for disabling SSL.
Answering 'no' kept the default value for SSL, which is
True since c3dd5f8b64.
2016-06-27 20:14:17 +02:00
Valentin Lorentz
1d62a0a7c5 Fix version-clash error message to show the path to python instead of supybot. 2016-03-12 22:30:15 +01:00
Valentin Lorentz
c3dd5f8b64 Make SSL the default for connecting to a new network. 2016-02-21 13:04:26 +01:00
Valentin Lorentz
72ce405962 supybot-test: Remove ignored command-line argument. 2015-12-31 13:52:48 +01:00
Valentin Lorentz
7765bf7307 Fix Python 2.6 support. 2015-12-30 18:31:05 +01:00
Valentin Lorentz
481ffbf797 supybot-test: Add option --fail-fast. 2015-12-30 18:17:21 +01:00
Valentin Lorentz
fed4258040 supybot-test: Use absolute path for directories. 2015-09-20 15:45:43 +02:00
Valentin Lorentz
09cb8e977f supybot-test: Add a new level of verbosity, for showing only unexpected exceptions. 2015-08-29 23:02:20 +02:00
Valentin Lorentz
935abed77b Show an explicit error in case Python imports stock Supybot's library. 2015-08-26 17:03:21 +02:00
nyuszika7h
9f059b91ba Add missing future imports for print_function
There are some places where `print()` is used to print a blank line.
However, unless the future feature `print_function` is imported,
that will print `()` in Python 2.
2015-06-12 22:22:16 +02:00
James Lu
6fa96df607 scripts/supybot: use %.2f for rounding 2015-04-11 13:33:34 -07:00
James Lu
fc418d35b0 scripts/supybot: round total CPU time to 2 decimal places
This prevents rather silly things such as 0.9400000000001 from showing up.

(cherry picked from commit GLolol/Limnoria@2d5e936f0d)
2015-04-05 13:47:41 -07:00
James Lu
59b39ea45e scripts/supybot: use None as msg for standardSubstitute on Ctrl-C 2015-02-07 10:01:47 -08:00
James Lu
0c85c6d796 supybot: also expand substitutes when exiting on Ctrl-C 2015-02-05 22:34:07 -08:00
Valentin Lorentz
719559902f Merge pull request #837 from TingPing/wizard-prompt
Wizard: Add prompt for file to save to
2015-01-03 20:39:55 +01:00
James Lu
9a07f07a72 supybot-plugin-create: create PEP8-compliant files 2014-12-27 11:16:08 -08:00
James Lu
95fb289f53 supybot-plugin-create: use options.desc to fill in more fields, saner defaults 2014-12-10 17:28:40 -08:00