{"id":15138465,"url":"https://github.com/lemmmy/rocketchat-bot","last_synced_at":"2025-09-29T06:31:49.243Z","repository":{"id":129496062,"uuid":"99274726","full_name":"Lemmmy/rocketchat-bot","owner":"Lemmmy","description":"Bot framework for rocket.chat","archived":true,"fork":false,"pushed_at":"2017-08-04T01:29:06.000Z","size":14,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-14T11:59:42.928Z","etag":null,"topics":["bot","bot-framework","rocketchat"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lemmmy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-03T21:02:13.000Z","updated_at":"2023-01-28T07:57:23.000Z","dependencies_parsed_at":"2023-06-11T12:00:30.037Z","dependency_job_id":null,"html_url":"https://github.com/Lemmmy/rocketchat-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lemmmy%2Frocketchat-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lemmmy%2Frocketchat-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lemmmy%2Frocketchat-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lemmmy%2Frocketchat-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lemmmy","download_url":"https://codeload.github.com/Lemmmy/rocketchat-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234597574,"owners_count":18857980,"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":["bot","bot-framework","rocketchat"],"created_at":"2024-09-26T07:24:16.557Z","updated_at":"2025-09-29T06:31:43.934Z","avatar_url":"https://github.com/Lemmmy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rocketchat-bot\n\nA bot framework for [Rocket.Chat](https://rocket.chat), built on [bot-commander](https://www.npmjs.com/package/bot-commander).\n\n## Usage\n\nLoad the bot like so:\n\n```javascript\nconst Bot = require(\"rocketchat-bot\").Bot;\n\nconst bot = new Bot({\n  server: \"your.rocket.chat\",\n  username: \"botuser\",\n  password: \"botpass\"\n});\n\nbot.start();\n\nbot.on(\"ready\", () =\u003e {\n  bot.loadPlugins(__dirname + \"/plugins\");\n});\n```\n\nCreate a `plugins` directory, containing your named plugins (e.g. `test`, `droll`). \nThen create a `plugin.js` file in the directory:\n\n```javascript\nmodule.exports = bot =\u003e {\n  bot.command(\"test\")\n    .action(meta =\u003e {\n      bot.send(meta, \"Hello, world!\");\n    });\n};\n```\n\nFor more information on the `bot` object, see the [bot-commander](https://www.npmjs.com/package/bot-commander) documentation.\n\nThe WebSocket and REST APIs are exposed via bot.wsAPI and bot.webAPI respectively.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemmmy%2Frocketchat-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemmmy%2Frocketchat-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemmmy%2Frocketchat-bot/lists"}