|
|
|
@ -7,6 +7,7 @@ def initialize(*, config):
|
|
|
|
|
|
|
|
|
|
# on_connect(*, irc) |
|
|
|
|
# Called after IRC bot has connected and sent the USER/NICk commands but not yet attempted anything else |
|
|
|
|
# Called for every reconnect |
|
|
|
|
# Blocks the bot until it's done, including PING/PONG handling |
|
|
|
|
# irc is the IRC API object |
|
|
|
|
def on_connect(*, irc): |
|
|
|
@ -26,7 +27,7 @@ def on_quit(*, irc):
|
|
|
|
|
# nick is who sent the message |
|
|
|
|
# channel is where you should send the response (note: in queries nick == channel) |
|
|
|
|
# irc is the IRC API object |
|
|
|
|
# All strings are bytestrings or bytearrays |
|
|
|
|
# All strings are bytestrings |
|
|
|
|
def handle_message(*, prefix, message, nick, channel, irc): |
|
|
|
|
... |
|
|
|
|
|
|
|
|
@ -36,6 +37,6 @@ def handle_message(*, prefix, message, nick, channel, irc):
|
|
|
|
|
# command is the command or number code |
|
|
|
|
# arguments is rest of the arguments of the command, represented as a list. ':'-arguments are handled automatically |
|
|
|
|
# irc is the IRC API object |
|
|
|
|
# All strings are bytestrings or bytearrays |
|
|
|
|
# All strings are bytestrings |
|
|
|
|
def handle_nonmessage(*, prefix, command, arguments, irc): |
|
|
|
|
... |
|
|
|
|