botlib.event

event handling classes.

Exceptions

ENOFUNC function is not provided.
class Event(*args, **kwargs)[source]

Bases: botlib.object.Default

add(txt)[source]

say something on a channel, using the bot available in the fleet.

announce(txt)[source]

announce on all fleet bot.

direct(txt)[source]

output txt directly.

dispatch()[source]

dispatch based on the provided event.

display(object=None, keys=[], txt='', direct='')[source]

display the content of an objectect.

handle()[source]

handle an event.

id()[source]
join(*args, **kwargs)[source]

join threads started while handling this event.

ok(txt='')[source]

reply with ‘ok’.

parse(txt='')[source]
reply(txt)[source]

give a reply to the origin of this event.

say_id(id, channel, txt)[source]

say something to id on fleet bot.

show()[source]

show the event on the server is originated on.

wait(sec=None)[source]

wait for event to finish.

default = ''
class Parsed(*args, **kwargs)[source]

Bases: botlib.object.Default

Parsed contains all the arguments that are _parsed from an event.

clear()[source]
parse(txt)[source]

parse provided text or available self.txt and determine cmnd, args, rest and other values. Adds a _parsed object to the event.

default = ''