BOTLIB¶
BOTLIB is a python3 framework to use if you want to program IRC or XMPP bots.
provides:
CLI, IRC and XMPP bots.
Object class - save/load to/from a JSON file.
ReST server - serve saved object’s over HTTP.
RSS fetcher - echo rss feeds to IRC channels.
UDP server - udp to bot to IRC channel.
watcher server - run tail -f and have output send to IRC channel.
email scanning - scan mbox format to searchable BOTLIB objects.
modular structure, you can add funcionality yourself.
SOURCE¶
botlib |
Framework to program bot, JSON file backend, MIT license. |
botlib.bot |
bot classes. |
botlib.cmnds |
botlib basic commands. |
botlib.engine |
a engine is select.epoll event loop, easily interrup_table |
botlib.fleet |
|
botlib.irc |
IRC bot class. |
botlib.log |
log module to set standard format of logging. |
botlib.raw |
raw output using print. |
botlib.rss |
rss module. |
botlib.selector |
functions used in code to select what objects to use. |
botlib.task |
adapted thread to add extra functionality to threads. |
botlib.trace |
functions concering stack trace. |
botlib.users |
class to access user records. |
botlib.xmpp |
XMPP bot class. |
botlib.cli |
bot classes. |
botlib.compose |
|
botlib.error |
BOTLIB Exceptions. |
botlib.handler |
schedule events. |
botlib.kernel |
module loading. |
botlib.object |
JSON file backed objectect with dotted access. |
botlib.register |
Object with list for multiple values. |
botlib.runner |
threaded loop to run tasks on. |
botlib.space |
Framework to program bot, JSON file backend, MIT license. |
botlib.template |
default cfg objects containing default values for various services and plugins. |
botlib.udp |
relay txt through a udp port listener. |
botlib.utils |
lib local helper functions. |
botlib.clock |
timer, repeater and other clock based classes. |
botlib.db |
JSON file db. |
botlib.event |
event handling classes. |
botlib.launcher |
a launch launches threads (or Tasks in this case). |
botlib.rest |
rest interface. |
botlib.scan |
scan the home dir for madbot data dirs, dirs that contain a ‘runtime’ subdirectory. |
botlib.static |
|
botlib.test |
plugin containing test commands and classes. |
botlib.url |
functions that fetch data from url |
botlib.watcher |
watch files. |