write your own commands.


License
Unlicense
Install
pip install ob==35

Documentation

R E A D M E

OB is a shell bot that you can write you own command for. It uses a type in filename, JSON stringified, files on filesystem backend. OB has been placed in the public domain and contains no copyright or LICENSE.

installation is through pypi:

> sudo pip3 install ob --upgrade --force-reinstall

you can also run directly from the tarball, see https://pypi.org/project/ob/#files

if you need OB to have access to your local directory use this:

> export PYTHONPATH="."

this will add your current directory to the pythonpath so the packages in it can be found by OB.

U S A G E

OB has it's own CLI, you can run it by giving the ob command on the prompt, it will return with no response:

$ ob
$

you can use ob <cmd> to run a command directly:

$ ob cmds
cfg,cmd,dne,edt,fnd,krn,log,tdo,tsk,ver,wd

OB can load user defined modules from a "obmod" directory, you can put your modules overthere.

if you run ob as root it will use /var/lib/ob/obmod as the modules directory.

M O D U L E S

OB has the following modules:

clk             - clock/repeater
csl             - console
hdl             - handler
krn             - core handler
prs             - parse
tsk             - tasks
utl             - utilities

P R O G R A M M I N G

installing from the github repository is also possible:

> git clone http://github.com/bthate/ob

commands look like this:

def command(event):
    event.reply("ok")

H A V E F U N

enjoy the coding ! ;]

C O N T A C T

Bart Thate

bthate@dds.nl | botfather #dunkbots irc.freenode.net | https://pypi.org/project/ob