jesopo
|
dfdde884b8
|
implement command spec modifiers, use for pattern , use pattern for dice.py
|
2020-02-15 23:31:55 +00:00 |
|
jesopo
|
c73570a953
|
use re.sub, not str.replace, otherwise things like "$" dont work
|
2020-02-14 23:57:23 +00:00 |
|
jesopo
|
275f896ed8
|
move SpecTypeErro to utils.parse.spec
|
2020-02-14 22:03:53 +00:00 |
|
jesopo
|
f827bdce7f
|
split out command_spec module
|
2020-02-14 21:59:41 +00:00 |
|
jesopo
|
df38d7a57f
|
replace lxml usage with html5lib! the future is cool
|
2020-02-13 21:50:33 +00:00 |
|
jesopo
|
e5fdef6726
|
support & in utils.parse.sed, change sed.py to use utils.parse.sed
|
2020-02-09 16:32:15 +00:00 |
|
jesopo
|
29f0a282a8
|
add utils.parse.sed.
|
2020-02-09 10:49:18 +00:00 |
|
jesopo
|
4e9df2c552
|
handle git being in a detached head state when getting current commit
|
2020-02-08 13:21:29 +00:00 |
|
jesopo
|
822a44570c
|
accept "1"/"0" as "true"/"false" for !config
|
2020-02-06 17:58:29 +00:00 |
|
jesopo
|
f52a824ffb
|
fix SpecTypeArgumentDate simple()
|
2020-02-06 16:40:02 +00:00 |
|
jesopo
|
01441efe75
|
only pull 'charset' from <meta> content-type when it definitely exists
|
2020-02-06 11:54:04 +00:00 |
|
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 |
|