jaraco on main
Ran pre-commit autoupdate Merge https://github.com/jaraco… ⚫ Fade to black. (compare)
jaraco on main
Suppress DeprecationWarning unt… (compare)
jaraco on main
Use preferred 'fixture'. Fixes … (compare)
jaraco on main
Update badge year Remove setup.py, no longer need… Add exclusions for pytest 7 dep… and 5 more (compare)
jaraco on v20.0.0
jaraco on main
Remove wheel from build require… Require Python 3.7 or later. Remove filtered warnings, addre… and 5 more (compare)
jaraco on v20.0.0
jaraco on main
Implement tidelift banner using… Remove blacken docs as it canno… .editorconfig: Set max_line_len… and 8 more (compare)
kick
method on the ServerConnection (https://github.com/jaraco/irc/blob/master/irc/client.py#L803).
on_kick
method and it accepts a connection
and event
argument, with more details in the event
that the server supplied. I’m not sure the protocol works that way, but if the server issues a KICK
command, you would handle that with on_kick
in the client.
irc.client.Reactor
is the default event loop, and it works synchronously (the process_forever method). It has a scheduler
instance to which you may add scheduled functions. So you can schedule work to be done. But it really depends on what work it is you want to do. In most cases, the work you need to do is in response to an event from the IRC server and can be handled synchronously. See pmxbot for a mature implementation of a bot built on irc.
irc.client
or in the README to enhance the documentation around using the scheduler.
logging.basicConfig(level=logging.DEBUG)
.