@@ -0,0 +1,1060 @@
+# initialize()%0A# Called to initialize the IRC bot%0A# Runs before even logger is brought up, and blocks further bringup until it's done%0Adef initialize():%0A%09...%0A%0A# handle_message(*, prefix, message, nick, channel, irc)%0A# Called for PRIVMSGs.%0A# prefix is the prefix at the start of the message, without the leading ':'%0A# message is the contents of the message%0A# nick is who sent the message%0A# channel is where you should send the response (note: in queries nick == channel)%0A# irc is the IRC API object%0A# All strings are bytestrings or bytearrays%0Adef handle_message(*, prefix, message, nick, channel, irc):%0A%09...%0A%0A# handle_nonmessage(*, prefix, command, arguments, irc)%0A# Called for all other commands than PINGs and PRIVMSGs.%0A# prefix is the prefix at the start of the message, without the leading ':'%0A# command is the command or number code%0A# arguments is rest of the arguments of the command, represented as a list. ':'-arguments are handled automatically%0A# All strings are bytestrings or bytearrays%0Adef handle_nonmessage(*, prefix, command, arguments, irc):%0A%09...%0A

Add a stub botcmd.py