Package gozerbot :: Module irc :: Class Irc
[hide private]
[frames] | no frames]

Class Irc

source code

     object --+    
              |    
botbase.BotBase --+
                  |
                 Irc
Known Subclasses:

the irc class, provides interface to irc related stuff

Instance Methods [hide private]
 
__init__(self, name='main', owner=[])
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_raw(self, txt)
send raw text to the server
source code
 
_connect(self, nick, server, port, password, ipv6, ssl=0)
connect to server/port using nick
source code
 
_readloop(self)
loop on the socketfile
source code
 
_getqueue(self) source code
 
putonqueue(self, nr, *args) source code
 
_outloop(self) source code
 
_logon(self)
log on to the network
source code
 
_onconnect(self)
run the onconnect-botname file after connect
source code
 
_resume(self, data, reto=None)
resume to server/port using nick
source code
 
_resumedata(self) source code
 
outputsizes(self) source code
 
broadcast(self, txt) source code
 
save(self) source code
 
connect(self, nick, server, port=6667, password='', ipv6=0, ssl=0, reconnect=True)
connect to server/port using nick ..
source code
 
shutdown(self)
shutdown sockets
source code
 
close(self) source code
 
exit(self)
exit the bot
source code
 
reconnect(*args, **kwargs)
the locked function
source code
 
handle_pong(self, ievent)
set pongcheck on received pong
source code
 
sendraw(self, txt)
send raw text to the server
source code
 
fakein(self, txt)
do a fake ircevent
source code
 
say(self, printto, what, who=None, how='msg', fromm=None, speed=0)
say what to printto
source code
 
out(self, printto, what, who=None, how='msg', fromm=None, speed=5)
output the first 375 chars ..
source code
 
output(self, printto, what, how='msg', who=None, fromm=None)
first output ..
source code
 
outputnolog(self, printto, what, how, who=None, fromm=None)
do output to irc server ..
source code
 
donick(*args, **kwargs)
change nick ..
source code
 
join(self, channel, password=None)
join channel with optional password
source code
 
part(self, channel)
leave channel
source code
 
who(self, who)
send who query
source code
 
names(self, channel)
send names query
source code
 
whois(self, who)
send whois query
source code
 
privmsg(self, printto, what)
send privmsg to irc server
source code
 
send(self, txt)
send text to irc server
source code
 
voice(self, channel, who)
give voice
source code
 
doop(self, channel, who)
give ops
source code
 
delop(self, channel, who)
de-op user
source code
 
quit(self, reason='http://gozerbot.org')
send quit message
source code
 
notice(self, printto, what)
send notice
source code
 
ctcp(self, printto, what)
send ctcp privmsg
source code
 
ctcpreply(self, printto, what)
send ctcp notice
source code
 
action(self, printto, what)
do action
source code
 
handle_ievent(self, ievent)
handle ircevent ..
source code
 
handle_432(self, ievent)
erroneous nick
source code
 
handle_433(self, ievent)
handle nick already taken
source code
 
handle_ping(self, ievent)
send pong response
source code
 
handle_001(self, ievent)
we are connected
source code
 
handle_privmsg(self, ievent)
check if msg is ctcp or not ..
source code
 
handle_notice(self, ievent)
handle notice event ..
source code
 
handle_ctcp(self, ievent)
handle client to client request ..
source code
 
handle_error(self, ievent)
show error
source code
 
ping(self)
ping the irc server
source code
 
handle_401(self, ievent) source code
 
doconnect(self, nick, server, port, password, ipv6)
connect to server/port using nick
 
logon(self)
 
onconnect(self)
 
readloop(self)
loop on the socketfile

Inherited from botbase.BotBase: connectwithjoin, joinchannels, ownercheck, stop

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name='main', owner=[])
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

broadcast(self, txt)

source code 
Overrides: botbase.BotBase.broadcast

save(self)

source code 
Overrides: botbase.BotBase.save

connect(self, nick, server, port=6667, password='', ipv6=0, ssl=0, reconnect=True)

source code 

connect to server/port using nick .. connect can timeout so catch exception .. reconnect if enabled

Overrides: botbase.BotBase.connect

shutdown(self)

source code 

shutdown sockets

Overrides: botbase.BotBase.shutdown

exit(self)

source code 

exit the bot

Overrides: botbase.BotBase.exit

out(self, printto, what, who=None, how='msg', fromm=None, speed=5)

source code 

output the first 375 chars .. put the rest into cache

output(self, printto, what, how='msg', who=None, fromm=None)

source code 

first output .. then call saymonitor

outputnolog(self, printto, what, how, who=None, fromm=None)

source code 

do output to irc server .. rate limit to 3 sec

donick(*args, **kwargs)

source code 

change nick .. do not change orignick

send(self, txt)

source code 

send text to irc server

Overrides: botbase.BotBase.send

handle_ievent(self, ievent)

source code 

handle ircevent .. dispatch to 'handle_command' method

handle_privmsg(self, ievent)

source code 

check if msg is ctcp or not .. return 1 on handling

handle_notice(self, ievent)

source code 

handle notice event .. check for version request

handle_ctcp(self, ievent)

source code 

handle client to client request .. version and ping