jesopo
|
2e80b223de
|
allow all preprocess.command and check.command failures to have a message
|
2019-09-26 12:14:55 +01:00 |
|
jesopo
|
4bb20c49dd
|
make !silence effect min_args and unknown-command
closes #160
|
2019-09-26 11:56:14 +01:00 |
|
jesopo
|
04489ce90a
|
return command (in case resolved alias) from _find_command_hook()
|
2019-09-12 21:53:52 +01:00 |
|
jesopo
|
203216d94d
|
Switch more settings to FunctionSettings
|
2019-09-04 14:27:10 +01:00 |
|
jesopo
|
85efd75518
|
'usage' does not exist
|
2019-09-01 08:34:55 +01:00 |
|
jesopo
|
25b507e80c
|
Refactor hook kwargs to be stored as a list of tuples to support key duplicates
closes #108
|
2019-07-28 12:35:04 +01:00 |
|
jesopo
|
5cae13edba
|
replace \n\n with \n in command outputs
|
2019-07-15 14:27:04 +01:00 |
|
jesopo
|
e7e32c0978
|
Show warning for private-only commands in channels and visa versa
closes #89
|
2019-07-11 13:31:35 +01:00 |
|
jesopo
|
84df0cb054
|
only set last_stdout/last_stderr when there's actually output
|
2019-07-07 11:29:22 +01:00 |
|
fosslinux
|
d7f72b642a
|
fix typo; closes issue #80
|
2019-07-06 17:06:17 +10:00 |
|
jesopo
|
72840fc63f
|
add bot-wide command-method option
|
2019-07-04 14:06:40 +01:00 |
|
jesopo
|
d30f01670e
|
Allow commands to append to out/err prefix
|
2019-07-03 14:04:24 +01:00 |
|
jesopo
|
6a823fac52
|
don't overwrite command_check_self()
|
2019-07-01 19:20:36 +01:00 |
|
jesopo
|
fda9869690
|
Add check.command.is-channel handler in commands module
|
2019-07-01 13:51:13 +01:00 |
|
jesopo
|
a732bcfc25
|
Only accept highlight-commands when they have "," or ":"
|
2019-06-28 23:33:14 +01:00 |
|
jesopo
|
ae9d099a41
|
Refactor set/channelset/serverset/botset in to 'utils.Setting' objects
|
2019-06-28 23:16:05 +01:00 |
|
jesopo
|
d2a1763dc8
|
'call_unsafe_for_result' -> 'call_for_result_unsafe'
|
2019-06-26 11:04:41 +01:00 |
|
jesopo
|
29b15da179
|
Switch all 'hook.kwargs.get(' calls to 'hook.get_kwarg('
|
2019-06-26 10:59:52 +01:00 |
|
jesopo
|
6667f49ee3
|
dont use "|" multi-event syntax. it's weird
|
2019-06-26 10:59:03 +01:00 |
|
jesopo
|
7f0af15e2d
|
send is_channel kwarg on unknown.command event
|
2019-06-24 22:54:34 +01:00 |
|
jesopo
|
3f84c9871a
|
Fire an event when a user tries an unknown command
|
2019-06-24 22:53:28 +01:00 |
|
jesopo
|
d3dda297e6
|
Don't exclude !commands from IRCBuffer objects
|
2019-06-20 11:55:58 +01:00 |
|
jesopo
|
282bde82c5
|
Move !ignore logic to it's own file
|
2019-06-20 11:51:04 +01:00 |
|
jesopo
|
938e1db963
|
add margin arg to ParsedLine.truncate so commands/outs.py doesn't do it
manually and cause potential issues with multi-byte chars
|
2019-06-19 10:34:42 +01:00 |
|
jesopo
|
6d034c3b42
|
Move !help to it's own module and entirely rework its interface
|
2019-06-18 17:34:16 +01:00 |
|
jesopo
|
b3b8c6534b
|
Remove debug prints
|
2019-06-18 16:51:00 +01:00 |
|
jesopo
|
621830c360
|
Simplify SentLine by shifting truncation to ParsedLine (and commands.outs)
|
2019-06-18 14:14:37 +01:00 |
|
jesopo
|
98e1202c78
|
Allow command.regex hooks to opt-in to being triggered from a /me
closes #68
|
2019-06-16 18:40:25 +01:00 |
|
jesopo
|
c9de95f44a
|
forgot to pass stdout and stderr to command callbacks!
|
2019-06-16 09:51:45 +01:00 |
|
jesopo
|
8ab4880c5c
|
Change from yield checks to a func in events that pass up EventErrors
|
2019-06-15 18:42:14 +01:00 |
|
jesopo
|
3fad17d1b9
|
catch StopIteration.value, pass back EventError that comes from a generator
|
2019-06-14 12:48:26 +01:00 |
|
jesopo
|
f614d1fc14
|
add self check.command, change !config to use new yields
|
2019-06-14 12:09:42 +01:00 |
|
jesopo
|
f05fc209b0
|
Add a way to __or__ utils.Check s, as a "if one of these passes" thing
|
2019-06-14 12:01:55 +01:00 |
|
jesopo
|
d7fa2cfa24
|
Catch yield s in command callbacks for e.g. permission checks
|
2019-06-14 11:42:12 +01:00 |
|
jesopo
|
53907b57d7
|
command-out truncation logic should be referencing sent_line
|
2019-06-10 11:21:59 +01:00 |
|
jesopo
|
6c5dc958d0
|
Add .assure() to ParsedLine, to make it immune from .valid()
|
2019-06-10 10:45:02 +01:00 |
|
jesopo
|
321bd7acf4
|
check stdout/stderr has_text() before .send() gets rid of it
|
2019-06-07 16:21:19 +01:00 |
|
jesopo
|
b1d07859c3
|
actually return ret
|
2019-06-07 16:21:11 +01:00 |
|
jesopo
|
8e6835be3c
|
Only show typing indicators for commands that expect output
|
2019-06-07 15:57:15 +01:00 |
|
jesopo
|
5f47d86708
|
Send +draft/typing tag when processing commands
|
2019-06-07 15:30:53 +01:00 |
|
jesopo
|
d281f5ef17
|
Remove +draft/typing TAGMSG - that was for testing
|
2019-06-06 21:16:39 +01:00 |
|
jesopo
|
f96378ac07
|
move immediate-write-trigger to IRCServer.py, trigger _event_loop for
running=False
|
2019-06-06 17:58:35 +01:00 |
|
jesopo
|
6f27879d1b
|
Send +draft/typing before processing command. WIP
|
2019-06-06 17:31:11 +01:00 |
|
jesopo
|
268c5adb3c
|
Add depends-on hashflags to relevant modules
|
2019-05-25 21:40:06 +01:00 |
|
jesopo
|
61af81c9de
|
Add comment about why we strip non-alnum chars from private commands
|
2019-05-23 16:10:31 +01:00 |
|
jesopo
|
4b5f839231
|
Forgot not so it was stripping alnum chars, not non-almun chars
|
2019-05-23 16:05:41 +01:00 |
|
jesopo
|
0a23e71e4e
|
.lstrip alphanumeric chars from private commands
|
2019-05-23 16:03:49 +01:00 |
|
jesopo
|
9df7b80d00
|
pass the command_prefix that triggered an event through event kwargs
|
2019-05-23 11:44:52 +01:00 |
|
jesopo
|
cf29c37112
|
Add usage examples for all settings
|
2019-05-23 10:28:14 +01:00 |
|
jesopo
|
5ab4c6cbff
|
target_str is BitBot's own nickname for private messages
|
2019-05-22 14:26:22 +01:00 |
|