_images/botd2line.png

bot.irc

irc bot

exceptions

ENOUSER

classes

Cfg([val])
DCC()
Event()
IRC()
User([val])
Users(*args, **kwargs)

functions

cfg(event)
dlt(event)
init()
locked(l)
met(event)
mre(event)
register(k)

source

exception ENOUSER[source]

Bases: Exception

class Cfg(val=None)[source]

Bases: bot.dft.Default

cc = '!'
channel = '#botd'
nick = 'botd'
port = 6667
realname = '24/7 channel daemon'
server = 'localhost'
username = 'botd'
users = False
class DCC[source]

Bases: bot.clt.Client

announce(txt)[source]
connect(dccevent)[source]
dosay(channel, txt)[source]
event(txt)[source]
poll()[source]
raw(txt)[source]
class Event[source]

Bases: bot.evt.Event

class IRC[source]

Bases: bot.clt.Client, bot.opt.Output

announce(txt)[source]
command(cmd, *args)[source]
connect(server, port=6667)[source]
doconnect(server, nick, port=6667)[source]
dosay(channel, txt)[source]
event(txt)[source]
fileno()[source]
handle(e)[source]
joinall()[source]
keep()[source]
logon(server, nick)[source]
parsing(txt)[source]
poll()[source]
raw(txt)[source]
restart()[source]
say(channel, txt)[source]
some()[source]
start()[source]
stop()[source]
wait()[source]
class User(val=None)[source]

Bases: bot.obj.Object

class Users(*args, **kwargs)[source]

Bases: bot.obj.Object

allowed(origin, perm)[source]
delete(origin, perm)[source]
get_user(origin)[source]
get_users(origin='')[source]
perm(origin, permission)[source]
userhosts = {}
cfg(event)[source]
dlt(event)[source]
init()[source]
locked(l)[source]
met(event)[source]
mre(event)[source]
register(k)[source]