{"id":25376791,"url":"https://github.com/terrierscript/hubocator","last_synced_at":"2025-04-09T10:33:41.814Z","repository":{"id":6880754,"uuid":"8130018","full_name":"terrierscript/hubocator","owner":"terrierscript","description":"call hubot only javascript","archived":false,"fork":false,"pushed_at":"2013-03-07T11:39:14.000Z","size":184,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T04:39:12.746Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terrierscript.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-10T23:57:59.000Z","updated_at":"2019-09-05T14:13:21.000Z","dependencies_parsed_at":"2022-08-26T07:11:26.743Z","dependency_job_id":null,"html_url":"https://github.com/terrierscript/hubocator","commit_stats":null,"previous_names":["suisho/hubocator"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrierscript%2Fhubocator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrierscript%2Fhubocator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrierscript%2Fhubocator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrierscript%2Fhubocator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terrierscript","download_url":"https://codeload.github.com/terrierscript/hubocator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248020591,"owners_count":21034459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-15T04:39:19.186Z","updated_at":"2025-04-09T10:33:41.790Z","avatar_url":"https://github.com/terrierscript.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hubocator\nExecute hubot wrapper. \nOnly javascript (without shell export) and support restarting hubot.\n\n## Installation\n\n```\nnpm install coffee-script\nnpm install hubot\nnpm install hubocator\n```\nThis module process executing wrapper and haven't hubot and coffee-script.\nPlease install these module.\n\n### scripts\nCopy [scripts/hubocator_reset.coffee](https://github.com/suisho/hubocator/blob/master/scripts/hubocator_restart.coffee) to your hubot scripts directory\nThis script add function restart hubot through hubocator\n\n## Demo\nDemo is [here](https://github.com/suisho/hubocator-demo)\n```sh\ngit clone git://github.com/suisho/hubocator-demo.git\ncd hubocator-demo\nnpm install\nnode example.js\n```\n\n- Restarting example\n```sh\nhubocator_hubot\u003e hubot restart\n```\n\n- Confirm example\n```sh\nhubocator_hubot\u003e hubot show hubocator\n```\n\n## usage\n```javascript\nvar hubocator = require(\"hubocator\");\nhubocator(); // called hubot\n```\n\n#### environment\nThis value set on process.env\n```javascript\nvar hubocator = require(\"hubocator\");\nvar env = {\n  \"HUBOT_ENVIRONMENT\" : \"FOO\"\n}\nhubocator(env);\n```\n\n#### args\nThis value is hubot arguments.\n```javascript\nvar hubocator = require(\"hubocator\");\nvar env = {\n  \"HUBOT_ENVIRONMENT\" : \"FOO\"\n}\nvar args = [\n  \"-a\", \"irc\"\n]\nhubocator(env,args);\n//or\nhubocator(args);\n```\n\n`args` can as object if you need\n```javascript\nvar hubocator = require(\"hubocator\");\nvar env = {\n  \"HUBOT_ENVIRONMENT\" : \"FOO\"\n}\nvar args = {\n  \"-a\": \"irc\"\n}\nhubocator(env,args);\n\n```\n\n#### options\n- coffeePath\n  - coffee script execute path\n- hubotPath\n  - hubot execute path\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrierscript%2Fhubocator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterrierscript%2Fhubocator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrierscript%2Fhubocator/lists"}