Valentin Lorentz
5aefd6395f
Time: Fix error handling in @tztime.
2021-11-09 22:33:23 +01:00
Valentin Lorentz
8b26b675ba
Use stdlib instead of pytz on Python >= 3.9
...
Python 3.9 introduced the zoneinfo module, which provides the only
feature we used pytz for (getting a datetime.tzinfo object from
an IANA timezone id); so let's use it instead of a third-party
dependency.
2021-11-08 21:46:48 +01:00
Valentin Lorentz
63eb6672ea
Revert generic 'The Limnoria Contributors' in copyright notices
...
This commit reverts db7ef3f025
(though it keeps the year updates)
After discussion with several people, it seems better to mention
copyright owners explicitly. eg. https://reuse.software/faq/#vcs-copyright
explains the issue of using VCSs to track copyright.
As db7ef3f025
only replaced mentions
of my name with 'The Limnoria Contributors', this commit only needs
to undo that + add one person who contributed to setup.py.
2021-10-17 09:57:55 +02:00
Valentin Lorentz
db7ef3f025
all: Add generic 'The Limnoria Contributors' to copyright notices.
...
No need to bother with details (that are all outdated / out of sync
anyway), just look up the git history.
2021-08-01 21:54:49 +02:00
Valentin Lorentz
fec6959acb
all plugins: regenerate READMEs
2021-04-22 00:29:15 +02:00
Valentin Lorentz
82fbfcffa4
all plugins: regenerate READMEs
2021-04-17 20:09:33 +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
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
e2d72c5a43
Fix msgfmt warnings.
2020-03-26 22:10:28 +01: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
Valentin Lorentz
c1ae3f5c81
all plugins: Use msg.channel instead of msg.args[0] + give network name to self.registryValue.
2019-08-24 23:35:01 +02:00
James Lu
fd59612002
Time: tweak 'ddate missing' error message
...
Fix grammar and use a consistent URL format.
2017-10-29 16:24:45 -07:00
James Lu
9e7ca56067
Time: be less noisy about missing ddate module
...
This is a fairly niche command so it's not necessary to bother the user on every load.
Also, clarify which plugin this message originates from.
2017-10-29 16:24:45 -07:00
Ken Spencer
2ba7bc5c16
Time: add 'ddate' ( #1310 )
...
* Time: add 'ddate', fix contributors, add Time.local as a package_dir in setup.py
* Time: add in license information for ddate.py
* Time: change 'ddate' command to where it will error out gracefully if 'ddate.base' isn't available
* Time: add tests, remove Time.local from package_dir
2017-10-27 19:25:02 +02:00
Valentin Lorentz
fc3c9eec7c
Time: Explicitely handle the 'now' case.
...
dateutil never handled it, and just returned the current day.
https://github.com/dateutil/dateutil/issues/212
2016-03-08 22:40:41 +01:00
Valentin Lorentz
4d6bd84d00
Time: skip tests if dependencies are not available.
2015-08-26 22:45:33 +02:00
Valentin Lorentz
c3a2c800f1
Remove need for 2to3.
2015-08-11 16:50:23 +02:00
James Lu
382f46d7be
Time.time: reintroduce ability to specify <channel>
2015-01-02 12:22:07 -08:00
GLolol
cc2780b78a
Time.time: simply channel-handling code for getting formats
2015-01-01 00:00:25 -05:00
GLolol
a1d949c861
Time: improvements to 'tztime'
...
- Import pytz on load, not every time the command is called
- Respect plugins.time.format
- Use irc.error(e, Raise=True) instead of return
2014-12-31 23:59:56 -05: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
James Lu
a755238ef4
Add/improve help for Debug + plugins from F-W:
...
- Debug
- Factoids
- Format
- Games
- Google
- Herald
- Internet
- Karma
- Lart
- Math
- Misc
- MoobotFactoids
- Network
- News
- NickAuth
- Nickometer
- Note
- Owner
- Protector
- Quote
- QuoteGrabs
- Relay
- Scheduler
- Seen
- ShrinkUrl
- Status
- String
- Time
- Todo
- Topic
- URL
- Unix
- User
- Utilities
- Web
2014-11-30 12:07:41 -08:00
Valentin Lorentz
175a646500
Merge pull request #914 from nyuszika7h/time-workaround-python-bug
...
Time.time: Work around a Python bug
2014-11-26 08:19:07 +01:00
nyuszika7h
da2cec32eb
Time.time: Work around a Python bug
...
There is a bug [1] in older versions of Python (reproduced up to 2.7.5
and 3.2.3) where time.strftime('%z') would always give '+0000' if it's
given an argument. It's closed as "not a bug", but appears to be fixed
in recent versions. To work around this, datetime and dateutil is used
now when available.
[1] http://bugs.python.org/issue1493676
2014-11-24 22:09:38 +01:00
nyuszika7h
b697536db5
Time.tztime: Don't display microseconds
...
There's no reason for displaying them under most circumstances that I
can think of.
2014-11-24 19:00:45 +01:00
Mikaela Suomalainen
0ce8ef8299
Time: update messages.pot & l10n-fi
...
I translated IANA Time Zone Database too, because I tried googling for
my translation and the first results are about correct thing (even if
Google first suggests wrong spelling which (when clicked) suggests two
other wrong spellings…
[SKIP CI]
2014-07-23 18:31:27 +03:00
Mikaela Suomalainen
b8193e0c88
Time: tztime: mention IANA TZ Database in help
...
https://www.iana.org/time-zones uses the spelling IANA Time Zone Database,
so I use it too.
2014-07-23 18:21:23 +03:00
Valentin Lorentz
2ea9e7187f
Time & User & Web: Fix metadata of translation files.
2014-06-08 12:16:52 +02:00
Mikaela Suomalainen
fc81013be5
Mass rename README.txt --> README.md .
...
[SKIP CI]
2014-06-06 12:42:33 +02:00
Valentin Lorentz
5f306a8c74
Fix neutral pronouns.
2014-04-11 21:56:42 +00:00
Mikaela Suomalainen
3a2b01d517
PluginDownloader: update l10n-fi.
...
The typo fix edition.
2014-03-22 16:38:16 +02:00
Mikaela Suomalainen
9eec5c0ab5
Ctcp: update l10n-fi.
2014-03-22 16:16:52 +02:00
Mikaela Suomalainen
bf2640ddb8
User: update l10n-fi.
2014-03-22 15:44:26 +02:00
Mikaela Suomalainen
8377029993
Time: update l10n-fi.
2014-03-22 14:50:46 +02:00
Mikaela Suomalainen
aa59a98767
Aka: add l10n-fi.
2014-03-22 12:39:48 +02:00
Mikaela Suomalainen
0d62257d79
update messages.pot files && Unix: update l10n-fi.
2014-03-22 12:22:54 +02:00
Mikaela Suomalainen
f88e8e20b9
My name is Mikaela!
...
Thanks @nyuszika7h :) ☺
2014-03-22 12:01:11 +02:00
Valentin Lorentz
fe57cdb4dc
ChannelStats & MessageParser & PluginDownloader & RSS & User: Update l10n-fr.
2014-01-26 20:45:27 +01:00
Valentin Lorentz
736c615605
Time: Update l10n-fr.
2014-01-26 20:45:27 +01:00
Valentin Lorentz
a3dbece402
All plugins: Update .pot files and rename Supybot-fr to Limnora in French translation files.
2014-01-26 20:45:27 +01:00
Valentin Lorentz
9ff1483da2
Time: Make argument to @at optional. (Replacement for GH-533 that does not need nesting.)
2013-12-28 23:05:23 +00:00
Valentin Lorentz
13d2746454
ChannelStats & Conditionnal & Format & Karma & Limiter & MessageParser & Misc & Network & PluginDownloader & Seen & ShrinkUrl & Status & String & Time & Topic & User & Web: Update messages.pot.
2013-11-27 00:02:05 +01:00
Valentin Lorentz
b8abbd1e36
Make dependency on python-dateutil optionnal.
2013-11-24 14:47:26 +00:00
Valentin Lorentz
40675ffdfa
Merge remote-tracking branch 'supybot/master' into testing
...
Conflicts:
plugins/Admin/plugin.py
plugins/BadWords/config.py
plugins/Filter/plugin.py
plugins/Google/plugin.py
plugins/Math/plugin.py
plugins/Misc/plugin.py
plugins/Note/plugin.py
plugins/RSS/plugin.py
plugins/Seen/test.py
plugins/ShrinkUrl/config.py
plugins/ShrinkUrl/plugin.py
plugins/ShrinkUrl/test.py
plugins/Status/plugin.py
plugins/String/config.py
plugins/String/plugin.py
plugins/Time/plugin.py
plugins/Todo/plugin.py
plugins/Web/plugin.py
plugins/__init__.py
scripts/supybot-botchk
setup.py
src/__init__.py
src/callbacks.py
src/commands.py
src/conf.py
src/drivers/Socket.py
src/ircdb.py
src/irclib.py
src/ircutils.py
src/questions.py
src/registry.py
src/schedule.py
src/test.py
src/utils/file.py
src/utils/gen.py
src/utils/net.py
src/utils/web.py
src/world.py
2013-08-24 11:28:29 +02:00
Valentin Lorentz
517ee1cde6
Time: Fix import on Python 3.
2013-07-27 11:39:30 +00:00
Valentin Lorentz
6cbc6a14dd
Rename all 'locale' directories to 'locales'.
...
Firstly, these directories contains more than one locale. Secondly, it conflicts with the 'locale' python module.
2012-12-26 15:43:35 +01:00
James McCoy
198688eab4
Import external dateutil module
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-17 22:15:52 -04:00
James McCoy
52e71edacc
Time: Remove dateutil and add it to install_requires
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-10 22:28:34 -04:00
Valentin Lorentz
d71b1a815a
Merge pull request #341 from Mkaysi/l10n-de
...
Update l10n-de.
2012-04-27 08:56:40 -07:00