botlib.kernel

module loading.

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

Bases: botlib.handler.Handler, botlib.launcher.Launcher, botlib.db.Db

announce(txt)[source]

announce txt on all fleet bot.

boot(cfgin)[source]

start the kernel.

callcb(event)[source]
cmnd(txt)[source]

execute a command based on txt.

direct(name, package=None)[source]

import a module directly, not storing it in the cache.

dispatch(event)[source]

dispatch an event.

get_funcs(cmnd)[source]

search for a function registered by command.

init(modname)[source]

initialize a module.

list(name)[source]

list all functions found in a module.

load_mod(modname, force=True)[source]

load a module and if force is sset to True, put in in the cache,

loading(modname, force=True)[source]

load a module.

modules(name='')[source]

return a list of modules in the named packages or cfg.packages if no module name is provided.

once(txt)[source]

run once command.

put(*args, **kwargs)[source]
register(key, value, force=True)[source]

register handlers.

reload(name, force=False, event=None)[source]

reload module.

shutdown(close=True)[source]

stop bot, services and plugins.

walk(name, init=False, force=False)[source]

return all modules in a package.