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 |
|
jesopo
|
c79bd6d0ba
|
utils.http.Response.decode() should default to detected encoding
|
2019-11-28 07:35:16 +00:00 |
|
jesopo
|
e4a5bd01e9
|
explicitly use "lxml" for finding page encoding
|
2019-11-26 14:34:48 +00:00 |
|
jesopo
|
8e9da0d681
|
_find_encoding takes bytes and soupifies now
|
2019-11-26 13:58:37 +00:00 |
|
jesopo
|
c898bc4be1
|
utils.http.request_many() shouldn't decode data for Response
|
2019-11-26 13:54:17 +00:00 |
|
jesopo
|
2d21dfa229
|
utils.http.Response.data should always be bytes - add .decode and .soup
|
2019-11-26 13:42:01 +00:00 |
|
jesopo
|
ed775ddbe3
|
remove parser from utils.http.Request, add Request.soup()
|
2019-11-26 11:35:56 +00:00 |
|
jesopo
|
93aea08818
|
utils.datetime.datetime_utcnow() -> utils.datetime.utcnow()
|
2019-11-25 18:18:09 +00:00 |
|
jesopo
|
6a6e789ec9
|
add cookies and .json() to utils.http.Response objects
|
2019-11-25 18:17:30 +00:00 |
|
jesopo
|
ab8bc65cc9
|
change utils.http.Request to be a dataclass
|
2019-11-25 13:42:10 +00:00 |
|
jesopo
|
4d30263315
|
give bitbot a unique User-Agent
closes #206
|
2019-11-20 14:42:34 +00:00 |
|
jesopo
|
bd176240d6
|
consecutive HASH_STOP chars at start shouldn't count as a stop
|
2019-11-19 14:45:47 +00:00 |
|
jesopo
|
554f21a84c
|
HASH_STOP should still be respected if last character
|
2019-11-19 14:43:24 +00:00 |
|
jesopo
|
65023dc84b
|
move "+5m" syntax parsing out to utils.parse
|
2019-11-18 15:57:23 +00:00 |
|
jesopo
|
fe25c6bc26
|
switch some utils.irc functions to use f-strings
|
2019-11-18 14:16:30 +00:00 |
|
jesopo
|
d89a3125ab
|
truncate nickname hash operations to 64bit
|
2019-11-18 14:09:47 +00:00 |
|
jesopo
|
a8b1bd95f7
|
implement weechat-style djb2 colour hashing
|
2019-11-18 13:51:55 +00:00 |
|
jesopo
|
a7e21abfad
|
import missing comma, 'Events'->'Event'
|
2019-11-18 12:10:20 +00:00 |
|
jesopo
|
06161b326c
|
remove unused imports in src/utils/__init__.py
|
2019-11-18 12:09:18 +00:00 |
|
jesopo
|
9c4902dcfe
|
"EventsResultsError"->"EventResultsError", move errors to utils.error
|
2019-11-18 12:06:59 +00:00 |
|
jesopo
|
5d55086847
|
move utils.consts.BITBOT_MAGIC to utils.decorators
|
2019-11-15 14:09:35 +00:00 |
|
jesopo
|
5d01db8514
|
move all datetime-related code from utils/__init__ to utils.datetime
|
2019-11-15 13:59:09 +00:00 |
|
jesopo
|
5e8cf06a45
|
dont expose has_magic/get_magic in utils/__init__.py, ref directly
|
2019-11-15 13:41:03 +00:00 |
|
jesopo
|
bfcf40edd7
|
split some stuff out of utils/__init__.py
|
2019-11-15 13:39:24 +00:00 |
|