_images/botdgreenline2.png

bot.run

exceptions

Break
NoBot
NoTxt
NotImplemented
Restart
Stop

classes

Bus(*args, **kwargs)
Client()
Command()
Dispatcher()
Error()
Event()
Getter(txt)
Handler()
Loop()
Option(txt)
Output()
Repeater(sleep, func, *args[, name])
Runtime()
Setter(txt)
Skip(txt)
Table(*args, **kwargs)
Thr(func, *args[, thrname, daemon])
Timer(sleep, func, *args[, name])
Token(*args, **kwargs)
Url(txt)
Word([txt])

functions

day()
elapsed(seconds[, short])
get_exception([txt, sep])
getmain(name)
getname(o)
launch(func, *args, **kwargs)
parse_txt(o[, ptxt])
parse_ymd(daystr)
spl(txt)

source

exception NoBot[source]
exception NoTxt[source]
exception Restart[source]
exception Stop[source]
exception Break[source]
exception NotImplemented[source]
class Thr(func, *args, thrname='', daemon=True)[source]
join(timeout=None)[source]

Wait until the thread terminates.

This blocks the calling thread until the thread whose join() method is called terminates – either normally or through an unhandled exception or until the optional timeout occurs.

When the timeout argument is present and not None, it should be a floating point number specifying a timeout for the operation in seconds (or fractions thereof). As join() always returns None, you must call is_alive() after join() to decide whether a timeout happened – if the thread is still alive, the join() call timed out.

When the timeout argument is not present or None, the operation will block until the thread terminates.

A thread can be join()ed many times.

join() raises a RuntimeError if an attempt is made to join the current thread as that would cause a deadlock. It is also an error to join() a thread before it has been started and attempts to do so raises the same exception.

run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

launch(func, *args, **kwargs)[source]
class Bus(*args, **kwargs)[source]
objs = []
static add(obj)[source]
static announce(txt)[source]
static byorig(orig)[source]
static byfd(fd)[source]
static bytype(typ)[source]
static first(otype=None)[source]
static resume()[source]
static say(orig, channel, txt)[source]
class Event[source]
bot()[source]
parse()[source]
ready()[source]
reply(txt)[source]
say(txt)[source]
show()[source]
wait(timeout=1.0)[source]
class Command[source]
class Error[source]
class Dispatcher[source]
dispatch(event)[source]
register(k, v)[source]
class Loop[source]
do(e)[source]
error(txt)[source]
loop()[source]
restart()[source]
put(e)[source]
start()[source]
stop()[source]
class Handler[source]
event(txt)[source]
handle(clt, e)[source]
loop()[source]
poll()[source]
start()[source]
class Client[source]
handle(clt, e)[source]
raw(txt)[source]
say(channel, txt)[source]
class Output[source]
cache = {}
static append(channel, txtlist)[source]
dosay(channel, txt)[source]
oput(channel, txt)[source]
output()[source]
static size(name)[source]
start()[source]
stop()[source]
class Runtime[source]
cfg = {'__delete__': '', '__get__': '', '__set__': ''}
classes = {}
cmds = {}
opts = {}
prs = {'__delete__': '', '__get__': '', '__set__': ''}
add(cmd)[source]
static cmd(clt, txt)[source]
do(e)[source]
error(txt)[source]
static handle(clt, obj)[source]
init(mns, threaded=False)[source]
log(txt)[source]
static opt(ops)[source]
parse_cli()[source]
static privileges(name=None)[source]
static root()[source]
static skel()[source]
static wait()[source]
class Table(*args, **kwargs)[source]
classes = {}
modnames = {}
names = {}
static add(func)[source]
static addcls(cls)[source]
static addmod(mod)[source]
static introspect(mod)[source]
class Timer(sleep, func, *args, name=None)[source]
run()[source]
start()[source]
stop()[source]
class Repeater(sleep, func, *args, name=None)[source]
run()[source]
class Token(*args, **kwargs)[source]
class Word(txt=None)[source]
class Option(txt)[source]
class Getter(txt)[source]
class Setter(txt)[source]
class Skip(txt)[source]
class Url(txt)[source]
day()[source]
elapsed(seconds, short=True)[source]
get_exception(txt='', sep=' ')[source]
getmain(name)[source]
getname(o)[source]
parse_txt(o, ptxt=None)[source]
parse_ymd(daystr)[source]
spl(txt)[source]