Package buildbot :: Package status :: Module words :: Class IrcStatusBot
[frames | no frames]

Class IrcStatusBot

BaseProtocol --+            
               |            
        Protocol --+        
                   |        
 _PauseableMixin --+        
                   |        
        LineReceiver --+    
                       |    
               IRCClient --+
                           |
                          IrcStatusBot


Method Summary
  __init__(self, nickname, password, channels, status, categories)
  action(self, user, channel, data)
Called when I see a user perform an ACTION on a channel.
  build_commands(self)
  buildFinished(self, b, reply)
  command_COMMANDS(self, user, reply, args)
  command_DANCE(self, user, reply, args)
  command_DESTROY(self, user, reply, args)
  command_EXCITED(self, user, reply, args)
  command_FORCE(self, user, reply, args)
  command_HELLO(self, user, reply, args)
  command_HELP(self, user, reply, args)
  command_LAST(self, user, reply, args)
  command_LIST(self, user, reply, args)
  command_SOURCE(self, user, reply, args)
  command_STATUS(self, user, reply, args)
  command_STOP(self, user, reply, args)
  command_VERSION(self, user, reply, args)
  command_WATCH(self, user, reply, args)
  convertTime(self, seconds)
  doSilly(self, user, reply, message)
  emit_last(self, reply, which)
  emit_status(self, reply, which)
list of buildbot.process.builder.Builder getAllBuilders(self)
  getBuilder(self, which)
  getCommandMethod(self, command)
  getControl(self, which)
  joined(self, channel)
Called when I finish joining a channel.
  kickedFrom(self, channel, kicker, message)
Called when I am kicked from a channel.
  left(self, channel)
Called when I have left a channel.
  privmsg(self, user, channel, message)
Called when I have a message from a user to me or a channel.
  reply(self, dest, message)
  signedOn(self)
Called after sucessfully signing on to the server.
    Inherited from IRCClient
  __getstate__(self)
  away(self, message)
  badMessage(self, line, excType, excValue, tb)
When I get a message that's so broken I can't use it.
  bounce(self, info)
Called with information about where the client should reconnect.
  connectionMade(self)
Called when a connection is made.
  created(self, when)
Called with creation date information about the server, usually at logon.
  ctcpMakeQuery(self, user, messages)
Send one or more extended messages as a CTCP query.
  ctcpMakeReply(self, user, messages)
Send one or more extended messages as a CTCP reply.
  ctcpQuery(self, user, channel, messages)
Dispatch method for any CTCP queries received.
  ctcpQuery_ACTION(self, user, channel, data)
  ctcpQuery_CLIENTINFO(self, user, channel, data)
A master index of what CTCP tags this client knows.
  ctcpQuery_DCC(self, user, channel, data)
Initiate a Direct Client Connection
  ctcpQuery_ERRMSG(self, user, channel, data)
  ctcpQuery_FINGER(self, user, channel, data)
  ctcpQuery_PING(self, user, channel, data)
  ctcpQuery_SOURCE(self, user, channel, data)
  ctcpQuery_TIME(self, user, channel, data)
  ctcpQuery_USERINFO(self, user, channel, data)
  ctcpQuery_VERSION(self, user, channel, data)
  ctcpReply(self, user, channel, messages)
Dispatch method for any CTCP replies received.
  ctcpReply_PING(self, user, channel, data)
  ctcpUnknownQuery(self, user, channel, tag, data)
  ctcpUnknownReply(self, user, channel, tag, data)
Called when a fitting ctcpReply_ method is not found.
  dataReceived(self, data)
Protocol.dataReceived.
  dcc_ACCEPT(self, user, channel, data)
  dcc_CHAT(self, user, channel, data)
  dcc_RESUME(self, user, channel, data)
  dcc_SEND(self, user, channel, data)
  dccAcceptResume(self, user, fileName, port, resumePos)
Send a DCC ACCEPT response to clients who have requested a resume.
  dccDoAcceptResume(self, user, file, port, resumePos)
Called when a client has verified and accepted a DCC resume request made by us.
  dccDoChat(self, user, channel, address, port, data)
  dccDoResume(self, user, file, port, resumePos)
Called when a client is trying to resume an offered file via DCC send.
  dccDoSend(self, user, address, port, fileName, size, data)
Called when I receive a DCC SEND offer from a client.
  dccResume(self, user, fileName, port, resumePos)
Send a DCC RESUME request to another user.
  dccSend(self, user, file)
  handleCommand(self, command, prefix, params)
Determine the function to call for the given command and call it with the given arguments.
  irc_ERR_NICKNAMEINUSE(self, prefix, params)
  irc_ERR_PASSWDMISMATCH(self, prefix, params)
  irc_JOIN(self, prefix, params)
  irc_KICK(self, prefix, params)
Kicked? Who? Not me, I hope.
  irc_MODE(self, prefix, params)
  irc_NICK(self, prefix, params)
  irc_NOTICE(self, prefix, params)
  irc_PART(self, prefix, params)
  irc_PING(self, prefix, params)
  irc_PRIVMSG(self, prefix, params)
  irc_QUIT(self, prefix, params)
  irc_RPL_BOUNCE(self, prefix, params)
  irc_RPL_CREATED(self, prefix, params)
  irc_RPL_ENDOFMOTD(self, prefix, params)
  irc_RPL_LUSERCHANNELS(self, prefix, params)
  irc_RPL_LUSERCLIENT(self, prefix, params)
  irc_RPL_LUSERME(self, prefix, params)
  irc_RPL_LUSEROP(self, prefix, params)
  irc_RPL_MOTD(self, prefix, params)
  irc_RPL_MOTDSTART(self, prefix, params)
  irc_RPL_MYINFO(self, prefix, params)
  irc_RPL_NOTOPIC(self, prefix, params)
  irc_RPL_TOPIC(self, prefix, params)
I just joined the channel, and the server is telling me the current topic.
  irc_RPL_WELCOME(self, prefix, params)
  irc_RPL_YOURHOST(self, prefix, params)
  irc_TOPIC(self, prefix, params)
Someone in the channel set the topic.
  irc_unknown(self, prefix, command, params)
  isupport(self, options)
Called with various information about what the server supports.
  join(self, channel, key)
  kick(self, channel, user, reason)
  leave(self, channel, reason)
  lineReceived(self, line)
Override this for when each line is received.
  luserChannels(self, channels)
Called with the number of channels existant on the server.
  luserClient(self, info)
Called with information about the number of connections, usually at logon.
  luserMe(self, info)
Called with information about the server connected to.
  luserOp(self, ops)
Called with the number of ops logged on to the server.
  me(self, channel, action)
Strike a pose.
  mode(self, chan, set, modes, limit, user, mask)
Change the modes on a user or channel.
  modeChanged(self, user, channel, set, modes, args)
Called when a channel's modes are changed
  msg(self, user, message, length)
Send a message to a user or channel.
  myInfo(self, servername, version, umodes, cmodes)
Called with information about the server, usually at logon.
  nickChanged(self, nick)
Called when my nick has been changed.
  notice(self, user, message)
  noticed(self, user, channel, message)
Called when I have a notice from a user to me or a channel.
  part(self, channel, reason)
  ping(self, user, text)
Measure round-trip delay to another IRC client.
  pong(self, user, secs)
Called with the results of a CTCP PING query.
  quirkyMessage(self, s)
This is called when I receive a message which is peculiar, but not wholly indecipherable.
  quit(self, message)
  receivedMOTD(self, motd)
I received a message-of-the-day banner from the server.
  register(self, nickname, hostname, servername)
  say(self, channel, message, length)
  sendLine(self, line)
Sends a line to the other end of the connection.
  setNick(self, nickname)
  topic(self, channel, topic)
Attempt to set the topic of the given channel, or ask what it is.
  topicUpdated(self, user, channel, newTopic)
In channel, user changed the topic to newTopic.
  userJoined(self, user, channel)
Called when I see another user joining a channel.
  userKicked(self, kickee, channel, kicker, message)
Called when I observe someone else being kicked from a channel.
  userLeft(self, user, channel)
Called when I see another user leaving a channel.
  userQuit(self, user, quitMessage)
Called when I see another user disconnect from the network.
  userRenamed(self, oldname, newname)
A user changed their name from oldname to newname.
  yourHost(self, info)
Called with daemon information about the server, usually at logon.
    Inherited from LineReceiver
  clearLineBuffer(self)
Clear buffered data.
  lineLengthExceeded(self, line)
Called when the maximum line length has been reached.
  rawDataReceived(self, data)
Override this for when raw data is received.
  setLineMode(self, extra)
Sets the line-mode of this receiver.
  setRawMode(self)
Sets the raw mode of this receiver.
    Inherited from Protocol
  connectionLost(self, reason)
Called when the connection is shut down.

Instance Variable Summary
    Inherited from IRCClient
Callable or String fingerReply: Sent in reply to a FINGER CTCP query.
Number of Seconds. lineRate: Minimum delay between lines sent to the server.
str nickname: Nickname the client will use.
NoneType password: Password used to log on to the server.
NoneType realname: Supplied to the server during login as the "Real name" or "ircname".
str sourceURL: CTCP SOURCE reply, a URL where the source code of this client may be found.
NoneType userinfo: Sent in reply to a USERINFO CTCP query.
NoneType username: Supplied to the server during login as the "User name".
NoneType versionEnv: CTCP VERSION reply, environment the client is running in.
NoneType versionName: CTCP VERSION reply, client name.
NoneType versionNum: CTCP VERSION reply, client version,

Class Variable Summary
dict silly = {'What happen ?': 'Somebody set up us the bomb.'...
    Inherited from IRCClient
str __pychecker__ = 'unusednames=params,prefix,channel'
str dcc_destdir = '.'
NoneType dcc_sessions = None                                                                  
str delimiter: The line-ending delimiter to use.
str motd = ''
int performLogin = 1                                                                     
    Inherited from LineReceiver
int line_mode = 1                                                                     
int MAX_LENGTH: The maximum length of a line to allow (If a sent line is longer than this, the connection is dropped).
    Inherited from Protocol
Implements __implemented__ = <implementedBy twisted.internet.protoc...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...

Method Details

__init__(self, nickname, password, channels, status, categories)
(Constructor)

Parameters:
nickname - the nickname by which this bot should be known
           (type=string)
password - the password to use for identifying with Nickserv
           (type=string)
channels - the bot will maintain a presence in these channels
           (type=list of strings)
status - the build master's Status object, through which the bot retrieves all status information
           (type=buildbot.status.builder.Status)

action(self, user, channel, data)

Called when I see a user perform an ACTION on a channel.
Overrides:
twisted.words.protocols.irc.IRCClient.action (inherited documentation)

getAllBuilders(self)

Returns:
list of buildbot.process.builder.Builder

joined(self, channel)

Called when I finish joining a channel.

channel has the starting character (# or &) intact.
Overrides:
twisted.words.protocols.irc.IRCClient.joined (inherited documentation)

kickedFrom(self, channel, kicker, message)

Called when I am kicked from a channel.
Overrides:
twisted.words.protocols.irc.IRCClient.kickedFrom (inherited documentation)

left(self, channel)

Called when I have left a channel.

channel has the starting character (# or &) intact.
Overrides:
twisted.words.protocols.irc.IRCClient.left (inherited documentation)

privmsg(self, user, channel, message)

Called when I have a message from a user to me or a channel.
Overrides:
twisted.words.protocols.irc.IRCClient.privmsg (inherited documentation)

signedOn(self)

Called after sucessfully signing on to the server.
Overrides:
twisted.words.protocols.irc.IRCClient.signedOn (inherited documentation)

Class Variable Details

silly

Type:
dict
Value:
{"It's You !!": ['How are you gentlemen !!',
                 'All your base are belong to us.',
                 'You are on the way to destruction.'],
 'What happen ?': 'Somebody set up us the bomb.',
 'What you say !!': ['You have no chance to survive make your time.',
                     'HA HA HA HA ....']}                              

Generated by Epydoc 2.1 on Sun Dec 10 22:04:45 2006 http://epydoc.sf.net