{"id":18361605,"url":"https://github.com/cardoso/errbot-rocketchat","last_synced_at":"2025-04-06T14:31:50.230Z","repository":{"id":29471885,"uuid":"105223455","full_name":"cardoso/errbot-rocketchat","owner":"cardoso","description":"Errbot for Rocket.Chat - fork of unmaintained https://github.com/AoiKuiyuyou/AoikRocketChatErrbot","archived":false,"fork":false,"pushed_at":"2022-02-21T23:13:36.000Z","size":1342,"stargazers_count":11,"open_issues_count":3,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T14:46:08.078Z","etag":null,"topics":["backend","errbot","rocketchat"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cardoso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-29T03:00:47.000Z","updated_at":"2023-05-10T02:31:37.000Z","dependencies_parsed_at":"2022-08-07T14:30:13.066Z","dependency_job_id":null,"html_url":"https://github.com/cardoso/errbot-rocketchat","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cardoso%2Ferrbot-rocketchat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cardoso%2Ferrbot-rocketchat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cardoso%2Ferrbot-rocketchat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cardoso%2Ferrbot-rocketchat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cardoso","download_url":"https://codeload.github.com/cardoso/errbot-rocketchat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247495976,"owners_count":20948139,"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":["backend","errbot","rocketchat"],"created_at":"2024-11-05T22:34:35.353Z","updated_at":"2025-04-06T14:31:45.222Z","avatar_url":"https://github.com/cardoso.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Errbot Rocket.Chat\n[Errbot](http://errbot.io/) backend for [Rocket.Chat](https://rocket.chat/).\n\nThe backend logs in as a Rocket.Chat user, receiving and sending messages.\n\nTested working with:\n- Rocket.Chat 0.65.1\n- Errbot 5.2\n- Python 3.5\n\n## Table of Contents\n- [Set up Rocket.Chat server](#set-up-rocketchat-server)\n  - [Create docker-compose.yml file](#create-docker-composeyml-file)\n  - [Start Rocket.Chat server](#start-rocketchat-server)\n  - [Create Rocket.Chat user](#create-rocketchat-user)\n- [Set up RocketChatErrbot](#set-up-rocketchaterrbot)\n  - [Clone this repository to local](#clone-this-repository-to-local)\n  - [Install RocketChatErrbot](#install-rocketchaterrbot)\n  - [Tweak Errbot config module](#tweak-errbot-config-module)\n  - [Start Errbot](#start-errbot)\n  - [systemd file](#systemd-file)\n  - [using docker](#Docker)\n## Set up Rocket.Chat server\n- [Create docker-compose.yml file](#create-docker-composeyml-file)\n- [Start Rocket.Chat server](#start-rocketchat-server)\n- [Create Rocket.Chat user](#create-rocketchat-user)\n\n### Create docker-compose.yml file\nRun:\n```\ncat \u003c\u003c'ZZZ' \u003e docker-compose.yml\nversion: '2'\nservices:\n  rocket.chat:\n    depends_on:\n      - db\n    image: rocket.chat:0.48.1\n    ports:\n      - 3000:3000\n    volumes_from:\n      - db\n    environment:\n      ROOT_URL: http://127.0.0.1:3000\n  db:\n    image: mongo:3.4.0\nZZZ\n```\n\n### Start Rocket.Chat server\nRun:\n```\ndocker-compose up\n```\n\n### Create Rocket.Chat user\nOpen `http://127.0.0.1:3000/` in browser.\n\nCreate a new user. The default config in rocketchat uses username\n`errbot` and password `errbot`.\n\n## Set up RocketChatErrbot\n- [Clone this repository to local](#clone-this-repository-to-local)\n- [Install RocketChatErrbot](#install-rocketchaterrbot)\n- [Tweak Errbot config module](#tweak-errbot-config-module)\n- [Start Errbot](#start-errbot)\n- [systemd file](#systemd-file)\n\n### Clone this repository to local\nRun:\n```\ngit clone https://github.com/cardoso/errbot-rocketchat\n```\n\n### Install RocketChatErrbot\nRun:\n```\ncd errbot-rocketchat\n\nvirtualenv venv\n\nvenv/bin/python setup.py install\n```\n\nThis will install RocketChatErrbot's dependency packages, including Errbot.\n\n### Tweak Errbot config module\nThe Errbot config module is located at\n[errbot-rocketchat/src/rocketchat/config.py](/src/rocketchat/config.py).\n\nTweak config values under ROCKETCHAT_CONFIG:\n- BOT_ADMINS (no @ prefix)\n- SERVER_URI\n- LOGIN_USERNAME\n- LOGIN_PASSWORD\n\n### Start Errbot\nRun:\n```\ncd errbot-rocketchat/src/rocketchat\n\npython -m errbot.cli\n```\n\n### systemd file\nIt is very easy to set up a daemon process for Errbots. For security reasons it should always be runned by a non-sudo user: `sudo useradd -m --user-group errbot-runner`\n\nCreate the following systemd file `sudo vim /etc/systemd/system/errbot.service`:\n```\n[Unit]\nDescription=Errbot chatbot for Rocket.Chat\nAfter=network.target\n\n[Service]\nEnvironment=\"LC_ALL=en_US.UTF-8\"\nExecStart=/home/errbot-runner/errbot-rocketchat/venv/bin/python -m errbot.cli\nRestart=always\nRestartSec=10\nWorkingDirectory=/home/errbot-runner/errbot-rocketchat/src/rocketchat\nUser=errbot-runner\nKillSignal=SIGINT\n\n[Install]\nWantedBy=multi-user.target\n```\n\nStart the daemon and enable it to start at system reboot:\n```\nsudo systemctl start errbot.service\nsudo systemctl enable errbot.service\n```\n\n### Docker \n\n To use the Dockerfile you simply need to create  a config file in the root of the project with the config you wish to load. \n then inside the source directory ``` docker build -t rocketchaterrbot . \u0026\u0026 \n docker run rocketchaterrbot ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcardoso%2Ferrbot-rocketchat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcardoso%2Ferrbot-rocketchat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcardoso%2Ferrbot-rocketchat/lists"}