Commit graph

3138 commits

Author SHA1 Message Date
jesopo
5ed9185fb5 Remove now-unneeded call to .buffer.skip_next() after a preprocess.command
failure
2019-05-19 17:53:21 +01:00
jesopo
9d89d7198e target doesn't exist in message handlers 2019-05-19 17:36:31 +01:00
jesopo
db3525778e Only buffer.skip() for non-regex commands 2019-05-19 17:34:14 +01:00
jesopo
bf6e4a0e40 green/red color for up/down votes on youtube videos 2019-05-19 17:33:02 +01:00
jesopo
e752b60f6c use fnmatchcase( so the strings are not case-"normalised" 2019-05-19 16:28:46 +01:00
jesopo
c607a0e67c Implement utils.irc.hostmask_match for glob-like hostmask matching 2019-05-19 16:24:38 +01:00
jesopo
4806e9c81e Switch to using Capability.copy() for sasl 2019-05-19 11:13:37 +01:00
jesopo
c60094ea92 matched_caps is actually a str[] 2019-05-19 11:13:16 +01:00
jesopo
66ce2ee2b7 .copy() all the hardcoded Capabilities in line_handler/ircv3.py 2019-05-19 11:10:32 +01:00
jesopo
f386351b7b Use Capability.copy() in metadata.py 2019-05-19 11:08:32 +01:00
jesopo
046bb2b8ae Make use of Capability.copy() in resume.py 2019-05-19 11:01:44 +01:00
jesopo
58d6b16744 Remove _name and _draft_name (unused) and add Capability.copy() 2019-05-19 11:00:58 +01:00
jesopo
e4bc57b3cc Actually check auto-title setting 2019-05-19 10:44:48 +01:00
jesopo
66c3d26531 Don't give draft/resume-0.4 as the non-draft arg to utils.irc.Capability 2019-05-19 10:34:50 +01:00
jesopo
5255820b87 draft/resume-0.3 -> draft/resume-0.4 2019-05-19 10:34:33 +01:00
jesopo
8be178f406 Use re.search, not re.match, for command.regex hooks 2019-05-19 08:41:20 +01:00
jesopo
7ccfa12b00 event["channel"] -> event["target"] (from regex-commands change) 2019-05-18 21:33:50 +01:00
jesopo
7671dd2086 Switch back to events.name defaulting to None, use typing.cast to fix linting
error
2019-05-18 21:14:28 +01:00
jesopo
3b9efe769a Change factoids.py to use regex commands 2019-05-18 20:18:55 +01:00
jesopo
6f0b31cb9a Switch imgur.py to use command.regex system 2019-05-18 19:20:09 +01:00
jesopo
105351d6f3 Add a timestamp to recent_sends for EACH line sent 2019-05-18 19:08:34 +01:00
jesopo
4e0e63e7f8 Hand over regex-based-command responsibilities to commands module 2019-05-18 18:35:47 +01:00
jesopo
d64d12f8fd give EventCallbacks their event name 2019-05-18 18:35:23 +01:00
jesopo
eccd43d357 Add a way to not put spaces between docstring lines when stripping \n 2019-05-18 18:34:27 +01:00
jesopo
161c60c4f6 .lower() -> .upper() for CAP subcommands. makes a lot more sense. 2019-05-18 14:57:09 +01:00
jesopo
e7edd9997f regex fix, move '+' inside capturing group 2019-05-18 11:13:19 +01:00
jesopo
0a89682816 match.group(0) -> ref 2019-05-18 11:07:42 +01:00
jesopo
c474702afb Catch github urls in auto-github 2019-05-18 11:05:38 +01:00
jesopo
bea8556329 Bump version to v1.6.0 2019-05-17 13:39:55 +01:00
jesopo
eaee51f677 Don't try to set repo to org after we've already changed org 2019-05-17 10:28:34 +01:00
jesopo
5513cc3a80 change REGEX_ISSUE to actually accept a repo name without org name 2019-05-17 10:28:18 +01:00
jesopo
f3d9fbb216 Actually assume the provided "org" is the repo when repo isn't provided 2019-05-17 10:14:49 +01:00
jesopo
3411f12fc4 Use github-default-repo to fill in org when org is missing but repo isn't 2019-05-17 10:10:27 +01:00
jesopo
3bbc4b3b77 server -> event["server"] 2019-05-16 14:28:20 +01:00
jesopo
385a4e3d4e channel -> event["channel"] 2019-05-16 14:27:07 +01:00
jesopo
ce1558e48b Catch-and-bury utils.EventError in auto-github code 2019-05-16 14:25:37 +01:00
jesopo
54e8fc8029 \S not \s in github issue ref regex 2019-05-16 14:25:18 +01:00
jesopo
7ce6af53f7 _parse_pull and _parse_issue shouldn't have an event param anymore 2019-05-16 14:20:50 +01:00
jesopo
a2321c693c _gh_* functions were renamed 2019-05-16 14:18:42 +01:00
jesopo
20514cc871 Add auto-github setting to automatically match and resolve github issue/pr
refs
2019-05-16 14:17:04 +01:00
jesopo
e0311c4b73 Allow people with silence permission to use !silence too 2019-05-16 08:53:28 +01:00
jesopo
bf7d359092 Add a setting to opt-out of word count tracking 2019-05-15 22:44:47 +01:00
jesopo
052eba788f Show server versoin (from RPL_MYINFO) on /api/servers 2019-05-15 17:13:05 +01:00
jesopo
7547eee96d Catch server version string, from RPL_MYINFO 2019-05-15 17:12:21 +01:00
jesopo
94d2f103b0 Don't show ducks when the bot is silenced 2019-05-15 16:48:20 +01:00
jesopo
278d6f02d6 Don't collect preprocess.command errors after we get a HARD_FAIL 2019-05-15 16:41:49 +01:00
jesopo
eb456f0123 Set silence.py's preprocess.command hook to PRIORITY_HIGH, so that other
modules can't respond to the event with errors first
2019-05-15 16:39:11 +01:00
jesopo
f97eceb395 Import IRCBot in metadata.py 2019-05-15 11:19:40 +01:00
jesopo
af4edf389f '_cap(' -> '_ack(' 2019-05-15 11:11:12 +01:00
jesopo
7cccb482b7 Add first version of metadata.py - for ircv3 draft/metadata 2019-05-15 10:33:39 +01:00