jesopo
|
460cda87bb
|
add command spec type "words" - array of remaining words
|
2020-02-05 16:32:41 +00:00 |
|
jesopo
|
87bc9bab9e
|
is8601_format_now() -> iso8601_now()
|
2020-02-05 10:15:57 +00:00 |
|
jesopo
|
7a15e5b2bf
|
store timestamp and current git commit when loading a module
|
2020-02-03 23:00:53 +00:00 |
|
jesopo
|
7105ba01de
|
also detect encoding for http.request_many()
|
2020-01-31 11:40:17 +00:00 |
|
jesopo
|
5d3e1ea492
|
add 'date' command spec type
|
2020-01-30 21:21:12 +00:00 |
|
jesopo
|
d0d5cc4d08
|
split utils.datetime out in to .parse and .format
|
2020-01-30 21:20:56 +00:00 |
|
jesopo
|
1674ef325b
|
add utils.datetime.seconds_since(); compare utcnow to datetime
|
2020-01-30 14:58:32 +00:00 |
|
jesopo
|
c1543ed899
|
SpecArgumentTypeString should return None when no args
|
2020-01-29 17:04:17 +00:00 |
|
jesopo
|
63d2c16954
|
change "non-consuming spec arg" character from "=" to "-"
|
2020-01-28 15:42:56 +00:00 |
|
jesopo
|
a35ed3c6ea
|
use dateutil.relativedelta for to_pretty_time, to cover years/months
|
2020-01-28 12:33:27 +00:00 |
|
jesopo
|
65b992e238
|
allow spec arguments to be "non-consuming" (doesn't show up in usage)
|
2020-01-27 12:13:28 +00:00 |
|
jesopo
|
d7cc7781bd
|
add 'int' command arg spec type
|
2020-01-27 12:13:10 +00:00 |
|
jesopo
|
d438b6dbc9
|
add "additional word" (aword ) command arument spec type
|
2020-01-27 11:57:23 +00:00 |
|
jesopo
|
23d3ba5e29
|
add tstring spec type, string with trimmed consecutive spaces
|
2020-01-26 11:24:57 +00:00 |
|
jesopo
|
41e1115999
|
fix typehinting issues
|
2020-01-26 02:09:48 +00:00 |
|
jesopo
|
e0686ef7b4
|
support command spec literals
|
2020-01-26 02:01:18 +00:00 |
|
jesopo
|
1d1e2d95a9
|
split utils/parse.py in to multiple files
|
2020-01-26 00:06:47 +00:00 |
|
jesopo
|
ced3bb23da
|
"time" spec arg renamed to "duration"
|
2020-01-25 23:58:09 +00:00 |
|
jesopo
|
1a8a4ac9d4
|
support spec arg "context" (e.g. private only), marked exported as private
|
2020-01-25 23:57:27 +00:00 |
|
jesopo
|
0c28d63822
|
add utils.parse.argument_spec_human() for usage strings
|
2020-01-25 22:56:56 +00:00 |
|
jesopo
|
bd33ea5d8a
|
implement default spec argument types
|
2020-01-25 22:56:06 +00:00 |
|
jesopo
|
478223f88c
|
support type names of spec arguments
|
2020-01-25 21:17:35 +00:00 |
|
jesopo
|
341b314104
|
change command specs to be compiled at runtime by a decorator
|
2020-01-25 14:01:11 +00:00 |
|
jesopo
|
5722a567a1
|
fix format_token_replace for $$
|
2020-01-25 11:32:01 +00:00 |
|
jesopo
|
47cb5eaab8
|
utils.parse.timed_args() min_args should be optional
|
2020-01-24 15:30:32 +00:00 |
|
jesopo
|
175e8c0a16
|
change utils.irc.strip_font() to remove tokens, no regex
|
2020-01-22 16:32:21 +00:00 |
|
jesopo
|
f79aa036f2
|
fix hostmask_match_many typehint
|
2020-01-22 15:04:48 +00:00 |
|
jesopo
|
ade5cbb1f3
|
add an optional mask pattern arg to !clear
|
2020-01-22 15:00:59 +00:00 |
|
jesopo
|
369160d46f
|
allow requesting utils.irc.color() to not add terminating code
|
2020-01-21 16:40:01 +00:00 |
|
jesopo
|
dba3f7abc3
|
.zfill(3) milliseconds in utils.datetime.datetime_human
|
2020-01-20 13:24:58 +00:00 |
|
jesopo
|
cb73507c5e
|
use a TimeSpec system to request milliseconds in utils.datetime
|
2020-01-20 13:20:26 +00:00 |
|
jesopo
|
ba5d79c953
|
fix utils.datetime.iso8601_parse linting error
|
2020-01-17 16:37:31 +00:00 |
|
jesopo
|
e4d71f6c0c
|
add dateutil as a dependency, use it in utils.datetime.iso8601_parse
|
2020-01-17 15:57:30 +00:00 |
|
jesopo
|
ba958f341b
|
also Accept-Language "en" in HTTP requests (0.5 weight)
|
2020-01-11 17:55:18 +00:00 |
|
jesopo
|
366a7bf326
|
Revert "explicitly .close() task in http.request_many()"
This reverts commit 7478d62b77 .
|
2020-01-06 17:17:49 +00:00 |
|
jesopo
|
7478d62b77
|
explicitly .close() task in http.request_many()
|
2020-01-06 17:04:30 +00:00 |
|
jesopo
|
e9f82fc645
|
sort variable $names descending so longer ones are caught first
|
2020-01-03 06:59:22 +00:00 |
|
jesopo
|
9dc6069e06
|
add missing closing paren to bitbot's User Agent
|
2019-12-29 08:00:05 +00:00 |
|
jesopo
|
cff1a55fe6
|
actually replace "$$" with "$"
|
2019-12-27 13:55:55 +00:00 |
|
jesopo
|
f2eba715b4
|
i should shift righwards also when finding double sigil
|
2019-12-27 13:50:12 +00:00 |
|
jesopo
|
b2c5ad041c
|
simplify token replace, catch one-char end-of-string tokens
|
2019-12-21 21:40:44 +00:00 |
|
jesopo
|
bc1c77d8a8
|
implement standardised $token replacement in utils.parse
|
2019-12-21 21:16:50 +00:00 |
|
jesopo
|
cfcccdd37b
|
we no longer use DECODE_CONTENT_TYPES
|
2019-12-18 20:04:14 +00:00 |
|
jesopo
|
5a2905de01
|
allow Request objects to specify their timeout
|
2019-12-11 11:18:19 +00:00 |
|
jesopo
|
9d16f7d523
|
move sys.exit() codes to an enum in utils.consts
|
2019-12-10 05:26:16 +00:00 |
|
jesopo
|
b212714561
|
Revert "add utils.parse.shortencode() and utils.parse.shortdecode - effectively base62"
This reverts commit e71f3bbc36 .
|
2019-12-06 14:29:26 +00:00 |
|
jesopo
|
e71f3bbc36
|
add utils.parse.shortencode() and utils.parse.shortdecode - effectively base62
|
2019-12-06 12:10:41 +00:00 |
|
jesopo
|
b889a9f841
|
add utils.http.Session object, to preserve cookies across requests
|
2019-12-03 13:00:43 +00:00 |
|
jesopo
|
d688636909
|
rework permissions module to precompile hostmasks
|
2019-11-30 19:32:38 +00:00 |
|
jesopo
|
411f66324d
|
use ANSI_RESET in utils.irc.parse_format, not all the different resets
|
2019-11-28 15:42:12 +00:00 |
|