Part of otfbot.services.ircClient View Source View In Hierarchy
| Instance Variables | plugins | contains references to all plugins, which are loaded (type: list ) |
| channels | all channels we are currently in (type: list ) | |
| network | the name of the network we are connected to (type: string ) | |
| logger | a instance of the standard python logger | |
| nickname | the nick of the bot |
| Method | __init__ | Undocumented |
| Method | handleCommand | same as twisteds, only with reasonable logging in case of exceptions |
| Method | startTimeoutDetection | initialize the timeout-detection scheduler-call |
| Method | getUsers | Get a list of users in channel (or all channels if channel=None) |
| Method | getUserByNick | Undocumented |
| Method | register_ctl_command | Undocumented |
| Method | register_my_commands | Undocumented |
| Method | getFactory | get the factory |
| Method | auth | call this, to see which rights user has |
| Method | encode_line | encode a line, trying to use encoding, falling back to fallback |
| Method | get_gettext | Undocumented |
| Method | sendmsg | call only this to send messages to channels or users |
| Method | sendme | call only this to send actions (/me) to channels |
| Method | join | wrapper around IRCClient.join, which only allows proper channels |
| Method | leave | wrapper around IRCClient.leave, which only allows proper channels |
| Method | kick | wrapper around IRCClient.kick, which only allows proper channels |
| Method | topic | wrapper around IRCClient.topic, which only allows proper channels |
| Method | connectionMade | this is called by twisted |
| Method | connectionLost | this is called by twisted, |
| Method | signedOn | called by twisted, |
| Method | joined | called by twisted, |
| Method | left | called by twisted, |
| Method | isupport | Called with various information about what the server supports. |
| Method | toUnicode | convert a string to an unicode-object, trying to use the |
| Method | resolveUser | resolve a user hostmask (nick!user@host) to a userobject |
| Method | privmsg | called by twisted, |
| Method | irc_unknown | called by twisted |
| Method | noticed | called by twisted, |
| Method | action | called by twisted, |
| Method | modeChanged | called by twisted |
| Method | kickedFrom | called by twisted, |
| Method | userKicked | called by twisted, |
| Method | userJoined | called by twisted, |
| Method | userLeft | called by twisted, |
| Method | userQuit | called by twisted, |
| Method | yourHost | called by twisted |
| Method | ctcpUnknownQuery | called by twisted, |
| Method | ctcpUnknownReply | called by twisted, |
| Method | userRenamed | called by twisted, |
| Method | topicUpdated | called by twisted |
| Method | irc_RPL_WHOREPLY | "<channel> <user> <host> <server> <nick> <H|G>[*][@|+] :<hopcount> <real name>" |
| Method | irc_RPL_ENDOFWHO | end of WHO replies by the server |
| Method | irc_INVITE | called by twisted, |
| Method | irc_RPL_BOUNCE | Overridden to get isupport work correctly |
| Method | irc_JOIN | Overridden to get the full hostmask |
| Method | irc_PART | Overridden to get the full hostmask |
| Method | irc_QUIT | Overridden to get the full hostmask |
| Method | lineReceived | called by twisted |
| Method | sendLine | Sends a line to the other end of the connection. |
| Method | ping | Measure round-trip delay to another IRC client. |
| Method | disconnect | disconnects cleanly from the current network |
| Method | _synced_apirunner | Undocumented |
| Method | _check_sendLastLine | Undocumented |
Inherited from IRCClient:
| Method | created | Called with creation date information about the server, usually at logon. |
| Method | myInfo | Called with information about the server, usually at logon. |
| Method | luserClient | Called with information about the number of connections, usually at logon. |
| Method | bounce | Called with information about where the client should reconnect. |
| Method | luserChannels | Called with the number of channels existant on the server. |
| Method | luserOp | Called with the number of ops logged on to the server. |
| Method | luserMe | Called with information about the server connected to. |
| Method | pong | Called with the results of a CTCP PING query. |
| Method | nickChanged | Called when my nick has been changed. |
| Method | receivedMOTD | I received a message-of-the-day banner from the server. |
| Method | mode | Change the modes on a user or channel. |
| Method | say | Send a message to a channel |
| Method | msg | Send a message to a user or channel. |
| Method | notice | Send a notice to a user. |
| Method | away | Mark this client as away. |
| Method | back | Clear the away status. |
| Method | whois | Retrieve user information about the given nick name. |
| Method | register | Login to the server. |
| Method | setNick | Set this client's nickname. |
| Method | quit | Disconnect from the server |
| Method | describe | Strike a pose. |
| Method | me | Strike a pose. |
| Method | dccSend | Undocumented |
| Method | dccResume | Send a DCC RESUME request to another user. |
| Method | dccAcceptResume | Send a DCC ACCEPT response to clients who have requested a resume. |
| Method | irc_ERR_NICKNAMEINUSE | Called when we try to register or change to a nickname that is already |
| Method | alterCollidedNick | Generate an altered version of a nickname that caused a collision in an |
| Method | irc_ERR_ERRONEUSNICKNAME | Called when we try to register or change to an illegal nickname. |
| Method | irc_ERR_PASSWDMISMATCH | Called when the login was incorrect. |
| Method | irc_RPL_WELCOME | Called when we have received the welcome from the server. |
| Method | irc_MODE | Parse a server mode change message. |
| Method | irc_PING | Called when some has pinged us. |
| Method | irc_PRIVMSG | Called when we get a message. |
| Method | irc_NOTICE | Called when a user gets a notice. |
| Method | irc_NICK | Called when a user changes their nickname. |
| Method | irc_KICK | Called when a user is kicked from a channel. |
| Method | irc_TOPIC | Someone in the channel set the topic. |
| Method | irc_RPL_TOPIC | Called when the topic for a channel is initially reported or when it |
| Method | irc_RPL_NOTOPIC | Undocumented |
| Method | irc_RPL_MOTDSTART | Undocumented |
| Method | irc_RPL_MOTD | Undocumented |
| Method | irc_RPL_ENDOFMOTD | RPL_ENDOFMOTD indicates the end of the message of the day |
| Method | irc_RPL_CREATED | Undocumented |
| Method | irc_RPL_YOURHOST | Undocumented |
| Method | irc_RPL_MYINFO | Undocumented |
| Method | irc_RPL_ISUPPORT | Undocumented |
| Method | irc_RPL_LUSERCLIENT | Undocumented |
| Method | irc_RPL_LUSEROP | Undocumented |
| Method | irc_RPL_LUSERCHANNELS | Undocumented |
| Method | irc_RPL_LUSERME | Undocumented |
| Method | ctcpQuery | Dispatch method for any CTCP queries received. |
| Method | ctcpQuery_ACTION | Undocumented |
| Method | ctcpQuery_PING | Undocumented |
| Method | ctcpQuery_FINGER | Undocumented |
| Method | ctcpQuery_VERSION | Undocumented |
| Method | ctcpQuery_SOURCE | Undocumented |
| Method | ctcpQuery_USERINFO | Undocumented |
| Method | ctcpQuery_CLIENTINFO | A master index of what CTCP tags this client knows. |
| Method | ctcpQuery_ERRMSG | Undocumented |
| Method | ctcpQuery_TIME | Undocumented |
| Method | ctcpQuery_DCC | Initiate a Direct Client Connection |
| Method | dcc_SEND | Undocumented |
| Method | dcc_ACCEPT | Undocumented |
| Method | dcc_RESUME | Undocumented |
| Method | dcc_CHAT | Undocumented |
| Method | dccDoSend | Called when I receive a DCC SEND offer from a client. |
| Method | dccDoResume | Called when a client is trying to resume an offered file |
| Method | dccDoAcceptResume | Called when a client has verified and accepted a DCC resume |
| Method | dccDoChat | Undocumented |
| Method | ctcpMakeReply | Send one or more extended messages as a CTCP reply. |
| Method | ctcpMakeQuery | Send one or more extended messages as a CTCP query. |
| Method | ctcpReply | Dispatch method for any CTCP replies received. |
| Method | ctcpReply_PING | Undocumented |
| Method | badMessage | When I get a message that's so broken I can't use it. |
| Method | quirkyMessage | This is called when I receive a message which is peculiar, |
| Method | dataReceived | Protocol.dataReceived. |
| Method | getUserModeParams | Get user modes that require parameters for correct parsing. |
| Method | getChannelModeParams | Get channel modes that require parameters for correct parsing. |
| Method | __getstate__ | Undocumented |
| Method | _reallySendLine | Undocumented |
| Method | _sendLine | Undocumented |
Inherited from LineReceiver (via IRCClient):
| Method | clearLineBuffer | Clear buffered data. |
| Method | setLineMode | Sets the line-mode of this receiver. |
| Method | setRawMode | Sets the raw mode of this receiver. |
| Method | rawDataReceived | Override this for when raw data is received. |
| Method | lineLengthExceeded | Called when the maximum line length has been reached. |
Inherited from BaseProtocol (via IRCClient, LineReceiver, Protocol):
| Method | makeConnection | Make a connection to a transport and a server. |
Inherited from _PauseableMixin (via IRCClient, LineReceiver):
| Method | pauseProducing | Undocumented |
| Method | resumeProducing | Undocumented |
| Method | stopProducing | Undocumented |
Determine the function to call for the given command and call it with the given arguments.
| Returns | a list of users (type: dict ) | |
user has| Parameters | user | the full hostmask of the user (type: string ) |
| Returns | the level of access rights (0 = nothing, 10 = everything) (type: int ) | |
| Instance Variables | line | the line to encode |
| encoding | the assumed encoding (i.e. UTF-8) | |
| fallback | a safe fallback (i.e. iso-8859-15) |
| Parameters | channel | send the message to this channel or user (type: string ) |
| msg | the message to send (type: string ) | |
| encoding | the encoding of msg
(type: string
) | |
| fallback | try this one as encoding for msg, if encoding
doesn't work
(type: string
) |
| Parameters | channel | send the message to this channel or user (type: string ) |
| action | the message to send (type: string ) | |
| encoding | the encoding of msg
(type: string
) | |
| fallback | the encoding of msg
|
| Parameters | reason | (type: twisted.python.failure.Failure ) |
| Parameters | channel | the channel we joined (type: string ) |
| Parameters | channel | the channel we left (type: string ) |
| Parameters | options | Descriptions of features or limits of the server, possibly in the form
"NAME=VALUE".
(type: list of str
) |
| Parameters | user | the user, which send the message (type: string ) |
| channel | the channel to which the message was sent or my nickname if it was a private message (type: string ) | |
| msg | the message (type: string ) |
| Parameters | user | the user which send the notice (type: string ) |
| channel | the channel to which the notice was sent (could be our nick, if the message was only sent to us) (type: string ) | |
| msg | the message (type: string ) |
| Parameters | user | the user which send the action (type: string ) |
| channel | the channel to which the action was sent (could be our nick, if the message was only sent to us) (type: string ) | |
| msg | the message (type: string ) |
user joined the
channeluser left the
channeluser sent a ctcp queryuser sent a ctcp reply