{"id":25439946,"url":"https://github.com/dappros/ethora-bots","last_synced_at":"2026-04-02T01:34:00.669Z","repository":{"id":277849783,"uuid":"933708291","full_name":"dappros/ethora-bots","owner":"dappros","description":"🤖 Bots framework and sample chatbots for Ethora. Structured as a monorepo with a reusable bot framework.  Features: • Modular bot framework for easy bot development • OpenAI GPT integration • Real-time XMPP messaging • TypeScript support • Easy deployment. Tech: TypeScript, XMPP, OpenAI API","archived":false,"fork":false,"pushed_at":"2026-03-18T20:18:40.000Z","size":505,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-19T07:10:52.484Z","etag":null,"topics":["bot-framework","chatbot","chatbots","chatgpt","ethora","openai","typescript","xmpp","xmpp-bot"],"latest_commit_sha":null,"homepage":"https://www.ethora.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dappros.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,"zenodo":null}},"created_at":"2025-02-16T14:14:11.000Z","updated_at":"2026-03-18T20:18:45.000Z","dependencies_parsed_at":"2025-02-16T15:36:49.833Z","dependency_job_id":"d1024bda-4b9e-433f-8bd7-eb1452752811","html_url":"https://github.com/dappros/ethora-bots","commit_stats":null,"previous_names":["dappros/ethora-bots"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dappros/ethora-bots","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dappros%2Fethora-bots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dappros%2Fethora-bots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dappros%2Fethora-bots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dappros%2Fethora-bots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dappros","download_url":"https://codeload.github.com/dappros/ethora-bots/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dappros%2Fethora-bots/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:05:07.454Z","status":"ssl_error","status_checked_at":"2026-04-02T00:56:46.496Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-framework","chatbot","chatbots","chatgpt","ethora","openai","typescript","xmpp","xmpp-bot"],"created_at":"2025-02-17T11:18:26.762Z","updated_at":"2026-04-02T01:34:00.663Z","avatar_url":"https://github.com/dappros.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ethora Bots\n\nThis repository contains a collection of chatbots for the Ethora platform. It's structured as a monorepo containing a core bot framework and various bot implementations.\n\nYou can run one bot individually or multiple bots at once in different chat rooms using PM2. See ecosystem.md for latter option.\n\n**Part of the [Ethora SDK ecosystem](https://github.com/dappros/ethora#ecosystem)** — see all SDKs, tools, and sample apps. Follow cross-SDK updates in the [Release Notes](https://github.com/dappros/ethora/blob/main/RELEASE-NOTES.md).\n\n## Repository Structure\n\n```\nethora-bots/\n├── packages/\n│   └── bot-core/          # Core bot framework\n└── bots/\n    └── openai-bot/        # OpenAI-powered chatbot\n```\n\n## Prerequisites\n\n- Node.js (v16 or higher)\n- npm (v7 or higher)\n\n## Local Development Setup\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/dappros/ethora-bots.git\ncd ethora-bots\n```\n\n2. Build and link the core package:\n```bash\ncd packages/bot-core\nnpm install\nnpm run build\nsudo npm link\ncd ../..\n```\n\n3. Setup the OpenAI bot:\n```bash\ncd bots/openai-bot\nnpm install\nnpm link @ethora/bot-core\n```\n\n4. Create a configuration file `.env` in the bot directory:\n```env\nBOT_JID=your-bot@xmpp.example.com # ID of your bot user from ethora.com\nBOT_PASSWORD=your-bot-password # Password of your bot user from ethora.com\nROOM_JID=room@conference.xmpp.example.com  # chat room ID\nBOT_NAME=AI Assistant # bot's display name \nOPENAI_API_KEY=your-openai-api-key # your OpenAI API key\n```\n\n5. Start the bot:\n```bash\nnpm start\n```\n\n## Production Deployment Guide\n\n### Server Setup (Ubuntu)\n\n1. Connect to your server:\n```bash\nssh root@your-server-ip\n```\n\n2. Update system packages:\n```bash\napt update \u0026\u0026 apt upgrade -y\n```\n\n3. Install Node.js and npm:\n```bash\ncurl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -\napt-get install -y nodejs\n```\n\n4. Install PM2 for process management:\n```bash\nnpm install -g pm2\n```\n\n### Bot Deployment\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/dappros/ethora-bots.git\ncd ethora-bots\n```\n\n2. Build and setup the core package:\n```bash\ncd packages/bot-core\nnpm install\nnpm run build\nsudo npm link\ncd ../..\n```\n\n3. Setup the OpenAI bot:\n```bash\ncd bots/openai-bot\nnpm install\nnpm link @ethora/bot-core\n```\n\n4. Create a configuration file `.env` in the bot directory:\n```env\nBOT_JID=your-bot@xmpp.example.com # ID of your bot user from ethora.com\nBOT_PASSWORD=your-bot-password # Password of your bot user from ethora.com\nROOM_JID=room@conference.xmpp.example.com  # chat room ID\nBOT_NAME=AI Assistant # bot's display name \nOPENAI_API_KEY=your-openai-api-key # your OpenAI API key\n```\n\nAdd your configuration as shown in the Local Development Setup section.\n\n5. Start the bot with PM2:\n```bash\npm2 start npm --name \"ethora-openai-bot\" -- start\n```\n\n6. Enable startup on system boot:\n```bash\npm2 startup\npm2 save\n```\n\n### Running Persistently and Auto-Restart\n\nTo ensure your bot runs persistently and automatically starts after server reboots:\n\n1. Start the bot with PM2:\n```bash\ncd bots/openai-bot  # or your specific bot directory\npm2 start npm --name \"ethora-openai-bot\" -- start\n```\n\n2. Save the current process list:\n```bash\npm2 save\n```\n\n3. Generate startup script (the command output will show a command to run with sudo):\n```bash\npm2 startup\n```\n\n4. Run the command that was displayed (example for Ubuntu):\n```bash\nsudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u ubuntu --hp /home/ubuntu\n```\n\nNow your bot will:\n- Automatically restart if it crashes\n- Start automatically when the server reboots\n- Run persistently in the background\n\n### Monitoring and Maintenance\n\n#### Basic Commands\n- View bot logs:\n```bash\npm2 logs ethora-openai-bot\n```\n\n- Monitor bot status:\n```bash\npm2 status\n```\n\n- Restart the bot:\n```bash\npm2 restart ethora-openai-bot\n```\n\n#### Advanced Monitoring\n- View real-time logs:\n```bash\npm2 logs ethora-openai-bot --lines 100 --raw\n```\n\n- Monitor CPU/Memory usage:\n```bash\npm2 monit\n```\n\n- View detailed process information:\n```bash\npm2 show ethora-openai-bot\n```\n\n- Check error logs:\n```bash\npm2 logs ethora-openai-bot --err\n```\n\n- Check output logs:\n```bash\npm2 logs ethora-openai-bot --out\n```\n\n### XMPP Protocol Notes\n\nThe bot follows the latest Ethora XMPP protocol specifications:\n- Uses `type=\"bot\"` attribute in presence and message stanzas\n- Does not include name fields in stanzas\n- Uses proper MUC protocol namespace for room interactions\n\nTo remove the auto-startup configuration:\n```bash\npm2 unstartup systemd\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Links\n\n- [GitHub Repository](https://github.com/dappros/ethora-bots)\n- [Report Issues](https://github.com/dappros/ethora-bots/issues) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdappros%2Fethora-bots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdappros%2Fethora-bots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdappros%2Fethora-bots/lists"}