Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/c/i/circuits-3.0.0.dev/examples/circ.py   circuits(Download)
from circuits.net.protocols.irc import QUIT, PART, RAW
from circuits.net.protocols.irc import IRC, PRIVMSG, USER, NICK, JOIN
from circuits.net.protocols.irc import ERR_NICKNAMEINUSE, RPL_WELCOME
 
USAGE = "%prog [options] host [port]"
        if numeric == RPL_WELCOME:
            self.fire(JOIN(self.ircchannel))
        elif numeric == ERR_NICKNAMEINUSE:
            self.nick = newnick = "%s_" % self.nick
            self.fire(NICK(newnick))

src/c/i/circuits-3.0.0.dev/examples/ircbot.py   circuits(Download)
from circuits.net.protocols.irc import IRC, PRIVMSG, USER, NICK, JOIN
 
from circuits.net.protocols.irc import ERR_NICKNAMEINUSE
from circuits.net.protocols.irc import RPL_ENDOFMOTD, ERR_NOMOTD
 
        """
 
        if numeric == ERR_NICKNAMEINUSE:
            self.fire(NICK("%s_" % args))
        if numeric in (RPL_ENDOFMOTD, ERR_NOMOTD):