OB - write your own commands.
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
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size ob-34.tar.gz (8.9 kB)||File type Source||Python version None||Upload date||Hashes View|