Commit Graph

548 Commits

Author SHA1 Message Date
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
Julian Paul Glass
191b1b2d06 supybot-plugin-create: options.desc substitution for README.md 2014-11-25 12:01:42 +00:00
Julian Paul Glass
09c01e0467 supybot-plugin-create: Added --desc short description option. 2014-11-25 11:51:37 +00:00
Julian Paul Glass
cbe579ec2d Substitution string re-added to __init__Template 2014-11-25 11:40:30 +00:00
Mikaela Suomalainen
317f765daa supybot-wizard: load NickAuth by default
NickAuth functionality is often wanted by users of the bots (is the word
end-users?) and is mentioned in the documentation as method of
identifying to the bot.

I think this should be loaded by default and as this isn't
important plugin, users who don't want or need it can unload it.

One reason of wanting to unload this plugin could be serviceless
networks even if they aren't that common nowadaays.
2014-10-22 13:29:03 +03:00
spline
94b1074749 Fix typo in supybot-plugin-create. 2014-10-18 17:05:31 +02:00
Mikaela Suomalainen
4443526864 supybot-wizard: suggest Aka instead of Alias 2014-10-13 11:21:20 +03:00
GLolol
3c3d51e300 supybot-plugin-create: remove outdated reference to supybot.com
All links just give a 404 error, and the main site itself just redirects to sourceforge now.
2014-09-21 12:30:37 +02:00
TingPing
0ede66debe Wizard: Add prompt for file to save to 2014-09-03 12:22:07 -04:00
TingPing
b0d0e06ebc Fix setting directories when not using advanced mode 2014-09-03 16:58:57 +02:00
Valentin Lorentz
3158c865b3 scripts/supybot: Fix typo. 2014-08-14 19:37:19 +02:00
Valentin Lorentz
bd1ac36c2c Move disableMultiprocessing from supybot.conf to supybot.world in order for it not to be in the config file. 2014-08-14 14:16:15 +02:00
Valentin Lorentz
41d63c7888 Allow --disable-multiprocessing in main supybot script. 2014-08-14 14:14:13 +02:00
Valentin Lorentz
b89d49a480 supybot-plugin-doc: Add Python 3 support. 2014-08-10 15:03:08 +02:00