Commit graph

1729 commits

Author SHA1 Message Date
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
jesopo
4015275afc Add missing ")" from last commit 2018-12-05 15:19:58 +00:00
jesopo
df624e7e29 Don't do unnecessary work when someone tries to call a not-hooked-in-to event 2018-12-05 15:18:40 +00:00
jesopo
764e1e3245 Prevent setting values to array settings and prevent adding to non-array
settings
2018-12-05 12:13:29 +00:00
jesopo
08a74d8b4d Don't try to call .isdigit() on an int object in coin.py.lottery_buy 2018-12-05 11:28:44 +00:00
jesopo
351a88bda6 Only gracefully handle SIGINT once 2018-12-03 19:46:15 +00:00
jesopo
50149523dd re-add check in utils.irc.parse_line that prevents us having an empty string as
an arg when there's no non-arbitrary args
2018-12-03 18:25:57 +00:00
jesopo
9dd9111f85 Further clarification of type hints in ModuleManager.py, including now making it
explicit that module objects MUST inherit from BaseModule
2018-12-02 16:00:55 +00:00
jesopo
9466f57efc Use getattr to get Module classes out of modules in ModuleManager.py; this
makes more sense and removes some errors from type linting
2018-12-02 10:14:18 +00:00
jesopo
50ced296d1 Clarify func_queue type (IRCBot.py) 2018-12-02 10:08:58 +00:00
jesopo
10f84f970d Clarify/fix type hints throughout EventManager.py 2018-12-02 10:04:05 +00:00
jesopo
08bd31f150 A couple of tweaks to clarify some type hints 2018-12-02 09:56:57 +00:00
jesopo
c4ea6fa562 data is now line 2018-12-02 09:48:06 +00:00
jesopo
48eeb11554 Remove use of print() in modules/line_handler.py 2018-12-02 09:46:57 +00:00
jesopo
cbc3ae3432 Remove usage of sys.stderr in IRCBot.py, change disconnect logs from info to
`warn`
2018-12-02 09:43:57 +00:00
jesopo
9a311c88b6 Remove print calls from IRCBot.py, move received data logging to IRCServer 2018-12-02 09:41:21 +00:00
jesopo
92f255e9be typo in modules.py, '_reload' -> 'self._reload' 2018-12-02 09:19:03 +00:00
jesopo
389366ce5d Take a name param in modules.py._catch 2018-12-02 09:18:24 +00:00
jesopo
da81b20c01 Correctly return errors for load/unload, not just reload (modules.py) 2018-12-02 09:16:17 +00:00
jesopo
eb0c13971a Omit Config keys that have falsey values (empty) 2018-12-02 08:28:59 +00:00
jesopo
d1bbd8cfe3 Add missing urllib.parse import (github.py) 2018-11-30 21:54:51 +00:00
jesopo
fcc3bdda6b Support form-encoded github webhook data 2018-11-30 21:53:47 +00:00
jesopo
35108efc5f rest_api.py's '_safe_handle' function isn't used and doesn't need to be used now
that API calls are thrown straight on to the main thread
2018-11-30 21:39:28 +00:00
jesopo
aab84096fd utf8-decode github webhook json data 2018-11-30 21:09:59 +00:00
jesopo
6724ef94e5 Make coins.py compatible with versions of python under 3.6 2018-11-30 20:38:03 +00:00
jesopo
d08afd2298 Flask is a dependency! 2018-11-30 20:32:31 +00:00
jesopo
cdfe6d2959 'uderline' -> 'underline' typo in utils.irc 2018-11-30 16:32:18 +00:00
jesopo
4dfb2ffeaa Support ANSI underline 2018-11-30 16:30:56 +00:00
jesopo
af0fddf9ba 'find_*_setting' functions don't exist anymore! 2018-11-28 10:12:17 +00:00
jesopo
4ae7d3fbab Show who invited who when printing and invite (print_activity.py) 2018-11-27 17:36:22 +00:00
jesopo
6077d06c99 Copypaste fail, 'target_channel' -> 'event["target_channel"]'
(print_activity.py)
2018-11-27 17:34:10 +00:00
jesopo
e47edbddfb Print when we receive and INVITE 2018-11-27 17:33:24 +00:00
jesopo
e1cdd4a353 Add type hint for return type of IRCBot.trigger 2018-11-27 17:29:38 +00:00
jesopo
dfbc727dc7 Don't prefix "self." events with "received." 2018-11-27 15:43:32 +00:00
jesopo
71775803d0 Reload bot config (on USR1) on the main thread 2018-11-27 15:10:49 +00:00
jesopo
dba4c9561c 'line' -> 'output' (github.py) 2018-11-27 15:07:22 +00:00
jesopo
9d9deb28b5 Raise exceptions back up through .trigger() 2018-11-27 15:06:10 +00:00
jesopo
d13a5069e3 Grab response from functions asked to be executed on the main thread and feed
them back to the callers, allowing rest_api.py to take the main thread while
it's waiting for the response to give back to the requesting client
2018-11-27 14:25:12 +00:00
jesopo
00d4b9c73f Show list of users in a channel, not just count 2018-11-27 13:34:51 +00:00
jesopo
7df55305ca Make channel stats in /api/servers a dictionary 2018-11-27 13:24:38 +00:00