aboutsummaryrefslogtreecommitdiff
path: root/src/utils
Commit message (Expand)AuthorAgeFilesLines
* actually replace "$$" with "$"Gravatar jesopo2019-12-271-0/+4
* `i` should shift righwards also when finding double sigilGravatar jesopo2019-12-271-2/+2
* simplify token replace, catch one-char end-of-string tokensGravatar jesopo2019-12-211-10/+6
* implement standardised $token replacement in utils.parseGravatar jesopo2019-12-211-0/+31
* we no longer use DECODE_CONTENT_TYPESGravatar jesopo2019-12-181-1/+0
* allow Request objects to specify their timeoutGravatar jesopo2019-12-111-1/+3
* move sys.exit() codes to an enum in utils.constsGravatar jesopo2019-12-101-1/+9
* Revert "add utils.parse.shortencode() and utils.parse.shortdecode - effective...•••This reverts commit e71f3bbc36eba8abf616d93fde48cba66b3749f1. Gravatar jesopo2019-12-061-45/+1
* add utils.parse.shortencode() and utils.parse.shortdecode - effectively base62Gravatar jesopo2019-12-061-1/+45
* add utils.http.Session object, to preserve cookies across requestsGravatar jesopo2019-12-031-0/+14
* rework permissions module to precompile hostmasksGravatar jesopo2019-11-301-7/+16
* use ANSI_RESET in utils.irc.parse_format, not all the different resetsGravatar jesopo2019-11-281-9/+1
* utils.http.Response.decode() should default to detected encodingGravatar jesopo2019-11-281-2/+2
* explicitly use "lxml" for finding page encodingGravatar jesopo2019-11-261-1/+1
* _find_encoding takes `bytes` and soupifies nowGravatar jesopo2019-11-261-1/+2
* utils.http.request_many() shouldn't decode data for ResponseGravatar jesopo2019-11-261-3/+2
* utils.http.Response.data should always be `bytes` - add .decode and .soupGravatar jesopo2019-11-261-25/+7
* remove `parser` from utils.http.Request, add Request.soup()Gravatar jesopo2019-11-261-15/+6
* utils.datetime.datetime_utcnow() -> utils.datetime.utcnow()Gravatar jesopo2019-11-251-2/+2
* add `cookies` and `.json()` to utils.http.Response objectsGravatar jesopo2019-11-251-7/+13
* change utils.http.Request to be a dataclassGravatar jesopo2019-11-251-38/+30
* give bitbot a unique User-Agent•••closes #206 Gravatar jesopo2019-11-201-6/+5
* consecutive HASH_STOP chars at start shouldn't count as a stopGravatar jesopo2019-11-191-1/+4
* HASH_STOP should still be respected if last characterGravatar jesopo2019-11-191-1/+1
* move "+5m" syntax parsing out to utils.parseGravatar jesopo2019-11-181-0/+11
* switch some utils.irc functions to use f-stringsGravatar jesopo2019-11-181-4/+3
* truncate nickname hash operations to 64bitGravatar jesopo2019-11-181-1/+1
* implement weechat-style djb2 colour hashingGravatar jesopo2019-11-181-3/+11
* `import` missing comma, 'Events'->'Event'Gravatar jesopo2019-11-181-2/+2
* remove unused imports in src/utils/__init__.pyGravatar jesopo2019-11-181-2/+2
* "EventsResultsError"->"EventResultsError", move errors to utils.errorGravatar jesopo2019-11-182-12/+14
* move utils.consts.BITBOT_MAGIC to utils.decoratorsGravatar jesopo2019-11-152-6/+5
* move all datetime-related code from utils/__init__ to utils.datetimeGravatar jesopo2019-11-152-125/+127
* dont expose has_magic/get_magic in utils/__init__.py, ref directlyGravatar jesopo2019-11-151-2/+2
* split some stuff out of utils/__init__.pyGravatar jesopo2019-11-154-181/+191
* show first-words datestamp on !words outputGravatar jesopo2019-11-151-0/+3
* add typehinting for foreground/backgroundGravatar jesopo2019-11-131-2/+2
* only set color_finished=True when is_background, otherwise next char sets itGravatar jesopo2019-11-131-13/+12
* hash_colorize code should first be looked up in HASH_COLORSGravatar jesopo2019-11-111-2/+2
* .lower() strings when hash-colorizing themGravatar jesopo2019-11-111-1/+1
* don't use hash() for hashed colorising as it's not stable through restartsGravatar jesopo2019-11-111-1/+1
* add utils.irc.hash_colorize() to color a string by the string's hashGravatar jesopo2019-11-111-0/+5
* don't stop parsing colors at commaGravatar jesopo2019-11-041-1/+1
* `' '` -> `" "`Gravatar jesopo2019-10-311-4/+4
* Fix type errors detected by 'mypy --ignore-missing-imports src'.Gravatar Valentin Lorentz2019-10-302-13/+19
* add utils.date_human() - use it in badges.pyGravatar jesopo2019-10-301-0/+3
* utils.parse doesn't need to import utilsGravatar jesopo2019-10-291-1/+0
* 'from src.utils import' -> 'from . import'Gravatar jesopo2019-10-291-1/+1
* utils.cli shouldn't know about DatabaseGravatar jesopo2019-10-291-3/+3
* utils.irc doesn't need to know about the whole of utilsGravatar jesopo2019-10-291-31/+31