Framework to program bots
OBJ is a framework you can use to program bots, it’s has it’s own shell (the obj program) that has the following commands:
ed - edit objects. find - find objects. load - load module. log - log some text. meet - add a new user. rm - set _deleted flag. show - show internals. unload - unload module.
the show command can be used to check status:
cfg - show main config cmds - show available commands license - show license mods - show loaded modules tasks - show running tasks uptime - show uptime version - show version
the following modules are available in the OBJ package:
obj.base - base classes. obj.bot - bot base class. obj.clock - timer, repeater. obj.cmds - basic commands. obj.dcc - direct client to client bot. obj.fleet - list of bots. obj.handler - queued event handler. obj.irc - irc bot. obj.loader - load modules into a table and scan for comands. obj.select - select based loop. obj.task - a obj thread, launch tasks, get a list of running tasks or kill a task. obj.users - manages users. obj.utils - utility module.
programming your own commands is easy, your can load modules with the -m option. a command is a function with one argument, the event that was generated on the bot
def mycommand(event): <<< your code here >>>
You can use event.reply() to send response back to the user.
OBJ has a “no-clause MIT license” that should be the most liberal license you can get at the year 2019.
Release history Release notifications
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 obj-102.tar.gz (19.4 kB)||File type Source||Python version None||Upload date||Hashes View hashes|