jesopo
|
d7fa2cfa24
|
Catch yield s in command callbacks for e.g. permission checks
|
2019-06-14 11:42:12 +01:00 |
|
jesopo
|
0afe798b83
|
Support parsing iso8601 with microseconds
|
2019-04-28 12:11:48 +01:00 |
|
jesopo
|
e095c56f77
|
Record and show when a !to was created
|
2019-04-24 14:32:56 +01:00 |
|
jesopo
|
87340bcbf9
|
change utils.iso8601_format to default to no milliseconds, switch to using
utils.iso8601 functions in badges.py
|
2019-04-23 21:27:43 +01:00 |
|
jesopo
|
0eaeca8f83
|
Put spaces between units in output from utils.to_pretty_time
|
2019-03-21 17:59:42 +00:00 |
|
jesopo
|
5d7f017c9c
|
Enum values shouldn't be all upper case
|
2019-03-10 13:14:25 +00:00 |
|
jesopo
|
d627ed49e2
|
Pull "is main thread" logic out to utils, force Database to be accessed on main
thread
|
2019-02-25 10:36:17 +00:00 |
|
jesopo
|
8c94bcf6ca
|
Move utils.irc.IRCParsedLine to IRCLine.ParsedLine, improve truncation
mechanism, don't convert sent line from ParsedLine to text to ParsedLine for
line_handler handling
|
2019-02-23 21:33:04 +00:00 |
|
jesopo
|
47c2cbb0fa
|
Split line_handler.py out in to different files for different categories
|
2019-02-22 11:23:36 +00:00 |
|
jesopo
|
cb0314da67
|
Put a helper function in utils to do iso8601 formatting. change IRCServer's
last-read setting to use it.
|
2019-02-17 14:15:40 +00:00 |
|
jesopo
|
8c9626f0a9
|
Put an strf format for ISO8601 in utils
|
2019-02-12 11:08:24 +00:00 |
|
jesopo
|
bd9eaad0b2
|
Return truncted data from encode_truncate and hold it in IRCLine.Line
|
2019-02-10 18:16:19 +00:00 |
|
jesopo
|
f2c762a2d0
|
add utils.truncate_encode , to encode and truncate a string while respecting utf8 multi-byte encoding
|
2019-02-10 16:41:56 +00:00 |
|
jesopo
|
e558a7676b
|
Abstract ssl socket wrapping away so we can reuse it
|
2019-02-10 12:36:52 +00:00 |
|
jesopo
|
d86a0fc55c
|
Return "0s" from utils.to_pretty_time when given 0 seconds
|
2019-02-07 22:47:03 +00:00 |
|
jesopo
|
1895ac34d7
|
If a server has a hostname that's not an IP, use it as SNI server name
|
2019-02-06 18:11:19 +00:00 |
|
jesopo
|
1c546a8244
|
Add typing hints to CaseInsensitiveDict, fix it's __setitem__ signature, call
.items() on `other` in ctor
|
2018-12-08 09:13:01 +00:00 |
|
jesopo
|
9bef4b7df1
|
Switch to using a case insensitive dictionary for headers instead of doing
.title() on each header key
|
2018-12-08 09:00:12 +00:00 |
|
jesopo
|
756c543c32
|
Typo in utils.__init__, 'number' -> 'number_str'
|
2018-11-16 17:45:40 +00:00 |
|
jesopo
|
73c0c911d4
|
Move logic for adding a server to the database out to utils.cli and add a
--add-server flag for start.py, to add new server
|
2018-11-13 10:40:49 +00:00 |
|
jesopo
|
a4d8d1f855
|
Fix some non-explicit None returns, add type hints to important variables
|
2018-10-31 15:12:46 +00:00 |
|
jesopo
|
b543e31cd2
|
Fix/refactor issues brought up by type hint linting
|
2018-10-30 17:49:35 +00:00 |
|
jesopo
|
e07553c362
|
Add type/return hints throughout src/ and, in doing so, fix some cyclical
references.
|
2018-10-30 14:58:48 +00:00 |
|
jesopo
|
50e7aa40b9
|
Typo in utils.parse_docstring, 'multiple_items' -> 'var_items'
|
2018-10-28 11:53:44 +00:00 |
|
jesopo
|
857761a653
|
Support multiple items for docstring kwargs in utils.parse_docstring
|
2018-10-28 11:43:41 +00:00 |
|
jesopo
|
8ea6db9422
|
Standardise "Failed to load results" errors!
|
2018-10-20 20:53:24 +01:00 |
|
jesopo
|
ba3cd00c78
|
Add utils.EventError, utilise it for stderr in commands.py/coins.py
|
2018-10-16 14:47:01 +01:00 |
|
jesopo
|
d460375629
|
Use decimal.Decimal in utils.parse_number
|
2018-10-12 11:28:14 +01:00 |
|
jesopo
|
d427e29936
|
Actually pass format args to ValueErrors in utils.parse_number
|
2018-10-12 11:21:57 +01:00 |
|
jesopo
|
a810d273d1
|
int(number) after we've checked .isdigit() in utils.parse_number
|
2018-10-12 11:19:04 +01:00 |
|
jesopo
|
9771fc9f7a
|
Add utils.parse_number, to turn 1k/1m/1b in to 1_000/1_000_000/1_000_000_000
|
2018-10-12 11:16:39 +01:00 |
|
jesopo
|
681866339c
|
Support multiple types of comments in utils.get_hashflags
|
2018-10-07 11:24:13 +01:00 |
|
jesopo
|
096fd05cee
|
Typo in utils, 'line.replace[3:]' -> 'line[3:]'
|
2018-10-04 16:01:34 +01:00 |
|
jesopo
|
f2d9ff9d3b
|
Checking for the presence of the seperator in the return from .partition is a
more "correct" way of doing this
|
2018-10-04 15:27:52 +01:00 |
|
jesopo
|
feed251f82
|
Non-present hashflag values should be None, not empty string
|
2018-10-04 15:23:35 +01:00 |
|
jesopo
|
8d3255c46d
|
Simplify hashflag parsing
|
2018-10-04 15:22:09 +01:00 |
|
jesopo
|
75f25db4cd
|
Move 'top 10' logic to utils, add !wordiest to modules/words.py
|
2018-10-04 05:33:15 +01:00 |
|
jesopo
|
6c1ac52fde
|
Use docstring key, not value, as a key.
|
2018-10-03 16:00:53 +01:00 |
|
jesopo
|
69d58eede2
|
Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
|
2018-10-03 13:22:37 +01:00 |
|