class Bot(pluginSupport, irc.IRCClient): (source)
The Protocol of our IRC-Bot
Method | __init__ |
Undocumented |
Method | action |
called by twisted, if we received a action |
Method | auth |
call this, to see which rights user has |
Method | connection |
this is called by twisted, if the connection to the IRC-Server was lost |
Method | connection |
this is called by twisted , when the connection to the irc-server was made |
Method | ctcp |
called by twisted, if a user sent a ctcp query |
Method | ctcp |
called by twisted, if a user sent a ctcp reply |
Method | disconnect |
disconnects cleanly from the current network |
Method | get |
Undocumented |
Method | get |
get the factory |
Method | get |
Undocumented |
Method | get |
Get a list of users in channel (or all channels if channel=None) |
Method | handle |
same as twisteds, only with reasonable logging in case of exceptions |
Method | irc_ |
called by twisted, if the bot was invited |
Method | irc_ |
Overridden to get the full hostmask |
Method | irc_ |
Overridden to get the full hostmask |
Method | irc_ |
Overridden to get the full hostmask |
Method | irc_ |
Overridden to get isupport work correctly |
Method | irc_ |
Undocumented |
Method | irc_ |
end of WHO replies by the server |
Method | irc_ |
"<channel> <user> <host> <server> <nick> <H|G>[*][@|+] :<hopcount> <real name>" |
Method | irc |
called by twisted for every line that has no own callback |
Method | isupport |
Undocumented |
Method | join |
wrapper around IRCClient.join, which only allows proper channels |
Method | joined |
called by twisted, if we joined a channel |
Method | kick |
wrapper around IRCClient.kick, which only allows proper channels |
Method | kicked |
called by twisted, if the bot was kicked |
Method | leave |
wrapper around IRCClient.leave, which only allows proper channels |
Method | left |
called by twisted, if we left a channel |
Method | line |
called by twisted for every line which was received from the IRC-Server |
Method | mode |
called by twisted if a usermode was changed |
Method | nick |
Undocumented |
Method | noticed |
called by twisted, if we got a notice |
Method | ping |
Undocumented |
Method | privmsg |
called by twisted, if we received a message |
Method | register |
Undocumented |
Method | register |
Undocumented |
Method | resolve |
resolve a user hostmask (nick!user@host) to a userobject returns a known user, if its in the user_list. creates a new user_list entry, if possible. if only nick is known, it returns a incomplete user and does not store it in the user_list... |
Method | send |
Undocumented |
Method | sendme |
call only this to send actions (/me) to channels it converts the message from iso-8859-15 to a encoding given in the config |
Method | sendmsg |
call only this to send messages to channels or users it converts the message from iso-8859-15 to a encoding given in the config |
Method | signed |
called by twisted, when we signed on the IRC-Server |
Method | start |
initialize the timeout-detection scheduler-call |
Method | topic |
wrapper around IRCClient.topic, which only allows proper channels |
Method | topic |
called by twisted if the topic was updated |
Method | to |
convert a string to an unicode-object, trying to use the encoding given in config, with fallback to iso-8859-15 |
Method | user |
called by twisted, if a user joined the channel |
Method | user |
called by twisted, if a user was kicked |
Method | user |
called by twisted, if a user left the channel |
Method | user |
called by twisted, if a user quits |
Method | user |
called by twisted, if a user changed his nick |
Method | your |
called by twisted with information about the IRC-Server we are connected to |
Class Variable | erroneous |
Undocumented |
Class Variable | modchars |
Undocumented |
Class Variable | modcharvals |
Undocumented |
Class Variable | plugin |
Undocumented |
Class Variable | plugin |
Undocumented |
Class Variable | source |
Undocumented |
Instance Variable | callback |
Undocumented |
Instance Variable | channelmodes |
Undocumented |
Instance Variable | channels |
all channels we are currently in |
Instance Variable | config |
Undocumented |
Instance Variable | factory |
Undocumented |
Instance Variable | hostmask |
Undocumented |
Instance Variable | irc |
Undocumented |
Instance Variable | last |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | logger |
a instance of the standard python logger |
Instance Variable | mymodes |
Undocumented |
Instance Variable | network |
the name of the network we are connected to |
Instance Variable | nickname |
the nick of the bot |
Instance Variable | parent |
Undocumented |
Instance Variable | password |
Undocumented |
Instance Variable | plugins |
contains references to all plugins, which are loaded |
Instance Variable | realname |
Undocumented |
Instance Variable | rev |
Undocumented |
Instance Variable | rev |
Undocumented |
Instance Variable | root |
Undocumented |
Instance Variable | serversupports |
Undocumented |
Instance Variable | sync |
Undocumented |
Instance Variable | syncing |
Undocumented |
Instance Variable | translations |
Undocumented |
Instance Variable | user |
Undocumented |
Instance Variable | version |
Undocumented |
Instance Variable | version |
Undocumented |
Instance Variable | version |
Undocumented |
Method | _check_send |
Undocumented |
Method | _synced |
Undocumented |
called by twisted, if we received a action
Parameters | |
user:string | the user which send the action |
channel:string | the channel to which the action was sent (could be our nick, if the message was only sent to us) |
msg:string | the message |
call this, to see which rights user has
Parameters | |
user:string | the full hostmask of the user |
Returns | |
int | the level of access rights (0 = nothing, 10 = everything) |
this is called by twisted, if the connection to the IRC-Server was lost
Parameters | |
reason:twisted.python.failure.Failure | Undocumented |
same as twisteds, only with reasonable logging in case of exceptions
Determine the function to call for the given command and call it with the given arguments.
called by twisted, if we got a notice
Parameters | |
user:string | the user which send the notice |
channel:string | the channel to which the notice was sent (could be our nick, if the message was only sent to us) |
msg:string | the message |
called by twisted, if we received a message
Parameters | |
user:string | the user, which send the message |
channel:string | the channel to which the message was sent or my nickname if it was a private message |
msg:string | the message |
resolve a user hostmask (nick!user@host) to a userobject returns a known user, if its in the user_list. creates a new user_list entry, if possible. if only nick is known, it returns a incomplete user and does not store it in the user_list
call only this to send actions (/me) to channels it converts the message from iso-8859-15 to a encoding given in the config
Parameters | |
channel:string | send the message to this channel or user |
action:string | the message to send |
encoding:string | the encoding of msg |
fallback | the encoding of msg |
call only this to send messages to channels or users it converts the message from iso-8859-15 to a encoding given in the config
Parameters | |
channel:string | send the message to this channel or user |
msg:string | the message to send |
encoding:string | the encoding of msg |
fallback:string | try this one as encoding for msg, if encoding doesn't work |
convert a string to an unicode-object, trying to use the encoding given in config, with fallback to iso-8859-15