Skip to main content

Framework to program bots

Project description

pypi: | source: | email: | botfather at #dunkbots/freenode

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.                       - 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.                    - 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.

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for obj, version 101
Filename, size File type Python version Upload date Hashes
Filename, size obj-101.tar.gz (20.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page