def main(): # Reload iipy.add_command("reload", reloadcmd) iihelp.add_help("reload", "Reload the plugins.") # join iipy.add_command("join", joincmd) iihelp.add_help("join", "Have the bot join channels.") # part iipy.add_command("part", partcmd) iihelp.add_help("part", "Leave a channel specified by the first argument.") # list channels iipy.add_command("list", listchannels) iihelp.add_help("list", "List the current active channels") # Ping iipy.add_command("ping", lambda x: x.say("{0}: Pong.".format(x.nick))) iihelp.add_help("ping", "Simple delay test.")
def main(): set_helpdb() iipy.add_command("info", iicommon.res("This is a plugin written for the " "iipy program.")) iipy.add_command("version", iicommon.res("0.01")) iipy.add_command("help", helpcmd)