Commit graph

3318 commits

Author SHA1 Message Date
Evelyn
aea215a647 NR: DEM is technically a permitted powertype 2018-12-18 20:30:10 +00:00
Evelyn
45fe512457 NR: fix regression introduced by HTTP util changes 2018-12-17 09:24:18 +00:00
jesopo
28900c2ff9 Correctly handle a 404 in thesaurus.py 2018-12-16 11:03:36 +00:00
jesopo
00ac4d208a Channels are 'target' in command events 2018-12-15 22:57:38 +00:00
jesopo
179cb40163 Add missing .data on a utils.http.request Response object (define.py) 2018-12-15 22:56:04 +00:00
jesopo
9658d0285e Support turning safe search on/off in google.py 2018-12-15 22:53:27 +00:00
jesopo
1ffc7863a0 If a request to git.io times out, fall back to full url 2018-12-14 08:49:37 +00:00
jesopo
d2fe95e0cc Fix missing change to new Response objects from utils.http.request (youtube.py) 2018-12-12 13:28:54 +00:00
jesopo
9944f08acf Typo, '=' -> '==' (utils.irc) 2018-12-12 11:50:59 +00:00
jesopo
d5467aefe9 Support '99' as a 'transparent' irc color code 2018-12-12 11:49:42 +00:00
jesopo
85840a68dd Preserve logged exc_info across threads 2018-12-12 11:33:29 +00:00
jesopo
98ae6993e4 Typo, 'requestl' -> 'request' (wolframalpha.py) 2018-12-12 11:16:45 +00:00
jesopo
843d517553 'utils.http.get_url' -> 'utils.http.request' (github.py) 2018-12-11 22:40:20 +00:00
jesopo
2d3bb2b5e8 Typo in utils.http.request, 'response_heders' -> 'response_headers' 2018-12-11 22:31:14 +00:00
jesopo
5b59740043 Pass a dict to utils.CaseInsensitiveDict, not a MutableMapping 2018-12-11 22:30:57 +00:00
jesopo
d373edfaae Add missing utils import in utils.http 2018-12-11 22:30:05 +00:00
jesopo
c0002f4f09 Re-add accidentally removed ":" in trakt.py 2018-12-11 22:27:58 +00:00
jesopo
22c38ad083 Shorten github urls in github.py 2018-12-11 22:27:04 +00:00
jesopo
793d234a0b 'utils.http.get_url' -> 'utils.http.request', return a Response object from
utils.http.request
2018-12-11 22:26:38 +00:00
jesopo
a41cf7b471 Actually use action_desc in github.py.issues, so that we can see what things
are labeled as
2018-12-10 21:07:38 +00:00
jesopo
d0caebbc57 Support fork event (github.py) 2018-12-10 18:47:54 +00:00
jesopo
b696e4e818 Add basics of status event handling, mostly for use with continuous integration (github.py) 2018-12-10 17:17:40 +00:00
jesopo
f77c443ac1 Add type hint for Logging._queue 2018-12-10 13:38:49 +00:00
jesopo
312293b221 Make block param of queue.get() explicitly refer to block 2018-12-10 13:34:53 +00:00
jesopo
df8135f105 Put logging functionality on to it's own thread 2018-12-10 13:18:15 +00:00
jesopo
a3a88d4589 Use more distinctive arrow characters for youtube up/down votes 2018-12-09 21:02:58 +00:00
jesopo
6dc58d4ceb Correctly support labeling pull requests, support unlabeling pull requests and support both on issues 2018-12-09 20:57:29 +00:00
jesopo
de60d245b5 Show newly added labels when a pull request is labeled 2018-12-09 19:36:23 +00:00
jesopo
dea63d9cf2 By the time we take ref counts, we've already removed module from
`loaded_module`
2018-12-09 11:24:05 +00:00
jesopo
8c3f87b029 change self.modules to be a dict of str:LoadedModule, not str:BaseModule 2018-12-09 11:22:30 +00:00
jesopo
ac71cfa4fa Add missing change to loaded_module.module (from module) in unload_module 2018-12-09 11:20:55 +00:00
jesopo
91beadd1cd def LoadedModule -> class LoadedModule 2018-12-09 11:18:55 +00:00
jesopo
6935c926dc Don't store any information used to load/unload modules on the module it's self
thus preventing even the possibility that modules can change them
2018-12-09 11:15:04 +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
8cc1168589 Return empty string on successful github webhook handling, not True 2018-12-08 09:10:44 +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
281923a463 Check whether we actually have a httpd running when unloading rest_api.py 2018-12-08 08:56:47 +00:00
jesopo
476e4cc9c1 ["review"]["user"]["login"] -> ["sender"]["login"] to show who created a
pull_request_review event, not who started the review
2018-12-06 18:35:46 +00:00
jesopo
3e0bd3ee85 Add 'bot-channel' config in bot.conf.example and use it, if present, in
bot_channel.py
2018-12-06 12:13:59 +00:00
jesopo
7d59898485 'X-GitHub-Event' -> 'X-Github-Event' now that we .title() header keys
(github.py)
2018-12-06 12:09:58 +00:00
jesopo
9918a72f80 .items() on self.headers, to correctly use it for a dict comprehension
(rest_api.py)
2018-12-06 12:03:58 +00:00
jesopo
786e8b89a3 'content-type' -> 'Content-Type' (github.py) 2018-12-06 12:01:23 +00:00
jesopo
e6b0d4d167 .title() all header keys (rest_api.py) 2018-12-06 12:00:45 +00:00
jesopo
bae1fac147 Add returns type hint in EventManager.py.call 2018-12-06 10:15:12 +00:00
jesopo
809efc6793 Only pop MODE args when we're certain we should (pays more attention to
CHANMODES ISUPPORT)
2018-12-06 08:26:07 +00:00
jesopo
0ecdf4d69b Comment tls-* keys in bot.conf.example 2018-12-05 16:01:49 +00:00
jesopo
4544b0852c Add horizontal spacing to bot.conf.example, otherwise it's very confusing 2018-12-05 16:00:08 +00:00
jesopo
dd0c5093a0 Remove telegram functionality - it's very broken/outdated and needs a
complete rewrite
2018-12-05 15:53:49 +00:00
jesopo
a8cb500784 utils.irc.lower channel names when adding them to the autojoin list 2018-12-05 15:46:51 +00:00
jesopo
d60c441ce2 fix incorrect retyping of "event_path" as "event, path" (i wasn't paying enough
attention)
2018-12-05 15:23:40 +00:00