Commit graph

2193 commits

Author SHA1 Message Date
jesopo
197ae2e053 Raise a specific exception in utils.http.request for "wrong content type" 2019-02-28 23:28:45 +00:00
jesopo
9193a51c55 capitalise "PR" (Pull Request) 2019-02-28 23:16:37 +00:00
jesopo
985fc51dea Move issue/PR number to after action description (github) 2019-02-28 23:15:13 +00:00
jesopo
1dab3dd07e Change HTTP request logging from INFO to DEBUG 2019-02-28 17:51:26 +00:00
jesopo
35ba165e0c Don't use shortened commit hashes to make URLs 2019-02-28 17:21:19 +00:00
jesopo
b4fca127d1 COLOR_POSITIVE should be green and COLOR_NEGATIVE should be red 2019-02-28 17:18:47 +00:00
jesopo
ae95f81c8b Colorise PR/issue numbers (github) 2019-02-28 17:10:42 +00:00
jesopo
02c7c4503c Make repo name grey (github) 2019-02-28 17:10:31 +00:00
jesopo
58b1e41b5d Make some colours consts per type of content (github) 2019-02-28 17:09:52 +00:00
jesopo
cedd080f75 only use one "-" to separate text from url in lastfm.py 2019-02-28 16:34:22 +00:00
jesopo
bb6b292b6c userplaycount is a str, not an int 2019-02-28 16:23:53 +00:00
jesopo
e77d681d7d Don't show lastfm play count if it is 0 2019-02-28 16:22:35 +00:00
jesopo
948c86adbc Need to str() Hostmask objects in ParsedLine.format() 2019-02-28 16:22:17 +00:00
jesopo
9335ca5d16 Treat both a and a= as None for message-tags 2019-02-27 22:20:01 +00:00
jesopo
d16046fb49 Simplify ParsedLine._tag_str and ParsedLine.format() 2019-02-27 22:14:53 +00:00
jesopo
846b881e52 Throw ValueError when utils.http.request tries to soup non-html/xml data 2019-02-27 15:16:08 +00:00
jesopo
f431fdfd16 Put github-hide-prefix check in all github commands 2019-02-27 14:56:20 +00:00
jesopo
0ed6d05b03 check on github-hide-prefix was put in the wrong function 2019-02-27 14:55:28 +00:00
jesopo
e6cb5e3e6b Remove additional ')' (copypaste fail) 2019-02-27 14:53:03 +00:00
jesopo
52092cfe28 Make github-hide-prefix apply to !gt as well 2019-02-27 14:52:10 +00:00
jesopo
120eb03173 Show sender of an issue_comment, not the original commenter (for edits) 2019-02-26 21:55:34 +00:00
jesopo
cfaf6864fc Don't try to parse non-html/xml stuff with BeautifulSoup 2019-02-26 11:18:50 +00:00
jesopo
5aaf6eb7df Bump version to v1.2.1 2019-02-25 21:47:36 +00:00
jesopo
56f6511ad3 Critical security fix: truncate IRCLine.ParsedLine.format() at newline 2019-02-25 21:46:23 +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
5eceb5655c Minor code stylisation in imgur.py 2019-02-25 09:59:38 +00:00
jesopo
10c8b129d5
Merge pull request #43 from dngfx/patch-1
Update imgur.py and add auto linking
2019-02-25 09:46:46 +00:00
dngfx
6471360656
Update imgur.py 2019-02-25 09:01:52 +00:00
Dan
6771c3fec1 Switch to elif 2019-02-24 21:14:08 +00:00
Dan
ccd924d9e7 Remove superfluous json import and change datetime to match code standards. 2019-02-24 21:13:02 +00:00
Dan
4daba2b1ac Remove bold title, set NSFW_TEXT variable, fix bold spacing, fix PEP8 line breaks between definitions. Remove _imgur def and hook straight into code. 2019-02-24 21:10:25 +00:00
dngfx
0444f9c0b9
Update imgur.py
Remove debug logging cruft
2019-02-24 20:37:17 +00:00
dngfx
266cbbfe1e
Update imgur.py
Add auto-imgur for auto linking of imgur and make the linking a bit fancier.
2019-02-24 20:34:10 +00:00
jesopo
41cc90cb72 Add -m/-M help strings, move --version/-v to stop of argparser 2019-02-24 10:45:54 +00:00
jesopo
faa305f2e8 Add -m/-M args to ./start.py that call command_line on individual modules 2019-02-24 10:43:46 +00:00
jesopo
f3f6102dbc Don't duplicate "other-error" (sasl.scram) 2019-02-24 09:04:42 +00:00
jesopo
77ab4707b2 Send IRCBot.VERSION on a CTCP VERSION (ctcp.py) 2019-02-24 08:39:20 +00:00
jesopo
276d753711 Change --verbose short to -V, add --version/-v, add IRCBot.VERSION 2019-02-24 08:37:42 +00:00
jesopo
8d55319f56 Rename IRCLine.Line to IRCLine.SentLine, for clarity 2019-02-24 08:25:12 +00:00
jesopo
fdce6ef7a6 We now need to .send( an IRCLine.ParseLine in perform.py 2019-02-24 08:04:35 +00:00
jesopo
1473f41b03 Fire preprocess.send per-command - use this to only strip colors from ParsedLine
objects for PRIVMSG and NOTICE
2019-02-23 21:40:11 +00:00
jesopo
5baa688fbc Make IRCArgs mutable 2019-02-23 21:39:46 +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
f4a403836b !raw needs to parse the line it's given in to an IRCParsedLine now 2019-02-23 16:11:41 +00:00
jesopo
c6699c509e .upper() command in IRCParsedLine.format() 2019-02-23 16:11:26 +00:00
jesopo
54218b747f Only allow the last arg of a formatted line to be :trailing 2019-02-23 16:07:20 +00:00
jesopo
6bdec003a1 Split PRIVMSG last param explicitly by " " to make message_split 2019-02-23 10:54:17 +00:00
jesopo
ed4643b15d Use new IRCChannel/IRCUser send_tagmsg in message_tracking.py 2019-02-22 22:37:27 +00:00
jesopo
8b54046ca4 Add target typehint on IRCServer.send_tagmsg, add send_tagmsg to IRCChannel/IRCUser 2019-02-22 22:34:54 +00:00
jesopo
9d72cbca73 Keep track of a user's away message, not just whether they're away or not 2019-02-22 22:26:50 +00:00