irc3.plugins.autocommand Autocommand plugin

This plugin allows to send IRC commands to the server after connecting. This could be usable for authorization, cloaking, requesting invite to invite only channel and other use cases. It also allows to set delays between IRC commands via the /sleep command.

Usage:

This example will authorize on Freenode:

>>> config = ini2config("""
... [bot]
... includes =
...     irc3.plugins.autocommand
...
... autocommands =
...     PRIVMSG NickServ :IDENTIFY nick password
... """)
>>> bot = IrcBot(**config)

Here’s another, more complicated example:

>>> config = ini2config("""
... [bot]
... includes =
...     irc3.plugins.autocommand
...
... autocommands =
...     AUTH user password
...     MODE {nick} +x
...     /sleep 2
...     PRIVMSG Q :INVITE #inviteonly
... """)
>>> bot = IrcBot(**config)

It will authorize on QuakeNet, cloak and request an invite to #inviteonly after a 2 second delay.