{ "info": { "author": "Bart Thate", "author_email": "bthate@dds.nl", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: Public Domain", "Operating System :: Unix", "Programming Language :: Python", "Topic :: Utilities" ], "description": "R E A D M E\n###########\n\n| LBOT is a pure python3 framework to program bots, provides an IRC bot to use and is extendible by programming your own commands.\n| LBOT uses a timestamped, type in filename, JSON stringified, files on filesystem backend and has timed based logging capabilities.\n| LBOT has been placed in the Public Domain and contains no copyright or LICENSE.\n\n\nC O D E\n=======\n\n.. autosummary::\n :toctree: code\n :template: module.rst\n\n lbot.all - include all modules.\n lbot.bot\t\t\t - bot base class\n lbot.clock - timers\n lbot.cmds\t\t\t - commands\n lbot.command - command parsing\n lbot.db\t\t\t - db backend\n lbot.errors \t\t - exceptions\n lbot.event\t\t\t - event class\n lbot.fleet - list of bots\n lbot.handler - event handler\n lbot.irc - irc bot\n lbot.kernel\t\t\t - core handler\n lbot.loader - module loader\n lbot.log\t\t\t - logging module\n lbot.obj\t\t\t - object base class.\n lbot.tasks - threads\n lbot.term \t\t\t - terminal handling\n lbot.udp\t\t\t - udp to channel relay\n lbot.user - manage users\n lbot.utils - utilities\n\nI N S T A L L\n=============\n\n\nif you need LBOT to have access to your local directory use this: \n\n> export PYTHONPATH=\".\"\n\nthis will add your current directory to the pythonpath so the packages in it \ncan be found by LBOT.\n\ninstallation is through pypi:\n\n> sudo pip3 install zelf\n\nyou can also run the bot from the tarball at pypi and run it directly or \ninstall with setup.py:\n\n> python3 setup.py install --user\n\n\nrunning from the mercurial repository is also possible:\n\n> hg clone http://bitbucket.org/bthate/zelf\n\nlastely, you can also run directly from the tarball.\n\n\nU S A G E\n=========\n\n\nLBOT includes one program, the lbot shell:\n\n> lbot [-m mod1,mod2] command\n \nto connect to irc use the -m zelf.irc option.\n\n> lbot -m zelf.irc -s irc.freenode.net -c \\#lbot -n lbot \n\n\nuse the ed command to edit the last object with a certain type of LBOT objects:\n\n> lbot ed zelf.entry.Log shell=False\n\n\nP R O G R A M M I N G\n=====================\n\n\nprogramming your own commands is easy, your can load modules with the -m option.\nif you create a mods directory and put your hello.py module in it, you would use:\n\n> lbot -m mods\n\nany command you have coded in hello.py would be available, see the `show cmds` command.\n\n> lbot show cmds\n\na command is a function with one argument, the event that was generated on the bot.\n\nexample:\n\n::\n\n def mycmd(event): \n \n\nyou can use event.reply() to send response back to the user:\n\n::\n\n def hello(event): \n event.reply(\"hello %s\" % event.nick)\n\nafter starting lbot with -m mods, you see the hello command added to the bot:\n\n> lbot -s cmds\n\ned,find,hello,ps,rm,show,stop,undel\n\n\nH A V E F U N\n===============\n\nenjoy the coding ! ;]\n\n\nBart\n\nbthate@dds.nl | botfather #dunkbots irc.freenode.net | https://pypi.org/project/lbot | http://bitbucket.org/bthate/lbot", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/bthate/lbot", "keywords": "", "license": "Public Domain", "maintainer": "", "maintainer_email": "", "name": "lbot", "package_url": "https://pypi.org/project/lbot/", "platform": "", "project_url": "https://pypi.org/project/lbot/", "project_urls": { "Homepage": "https://bitbucket.org/bthate/lbot" }, "release_url": "https://pypi.org/project/lbot/1/", "requires_dist": null, "requires_python": "", "summary": "pure python3 library to program bots.", "version": "1" }, "last_serial": 5641507, "releases": { "1": [ { "comment_text": "", "digests": { "md5": "a235f960f8cd75ab0d6657ca18402903", "sha256": "a95280bbe49a7e533de2898a8de4f97484a4d335d39ff5e9f99223fb181dc78c" }, "downloads": -1, "filename": "lbot-1.tar.gz", "has_sig": false, "md5_digest": "a235f960f8cd75ab0d6657ca18402903", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21546, "upload_time": "2019-08-06T20:23:18", "url": "https://files.pythonhosted.org/packages/de/4c/30350b8c44451d4e353a836b0824b1f873d90c388ba2ff1dcb1f34e16a73/lbot-1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a235f960f8cd75ab0d6657ca18402903", "sha256": "a95280bbe49a7e533de2898a8de4f97484a4d335d39ff5e9f99223fb181dc78c" }, "downloads": -1, "filename": "lbot-1.tar.gz", "has_sig": false, "md5_digest": "a235f960f8cd75ab0d6657ca18402903", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21546, "upload_time": "2019-08-06T20:23:18", "url": "https://files.pythonhosted.org/packages/de/4c/30350b8c44451d4e353a836b0824b1f873d90c388ba2ff1dcb1f34e16a73/lbot-1.tar.gz" } ] }