{"id":13714383,"url":"https://github.com/LCTT/LCBot","last_synced_at":"2025-05-07T01:33:39.407Z","repository":{"id":72092374,"uuid":"86904222","full_name":"LCTT/LCBot","owner":"LCTT","description":"Linux 中国 微信群机器人（已经停止维护）","archived":false,"fork":false,"pushed_at":"2018-01-13T14:35:19.000Z","size":113,"stargazers_count":423,"open_issues_count":30,"forks_count":120,"subscribers_count":50,"default_branch":"master","last_synced_at":"2024-05-23T04:46:25.180Z","etag":null,"topics":["bot","linux","python3","wechat"],"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/LCTT.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":"CONTRIBUTING.md","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-04-01T09:57:54.000Z","updated_at":"2024-08-03T00:06:17.125Z","dependencies_parsed_at":null,"dependency_job_id":"2e041768-183b-45d2-80ad-a6a59d2a8c61","html_url":"https://github.com/LCTT/LCBot","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/LCTT%2FLCBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LCTT%2FLCBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LCTT%2FLCBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LCTT%2FLCBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LCTT","download_url":"https://codeload.github.com/LCTT/LCBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224551241,"owners_count":17330109,"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","linux","python3","wechat"],"created_at":"2024-08-02T23:01:58.456Z","updated_at":"2024-11-14T01:31:06.142Z","avatar_url":"https://github.com/LCTT.png","language":"Python","readme":"# LCBot Linux中国微信机器人\n\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/bestony/LCBot/blob/master/LICENSE) ![](https://img.shields.io/badge/Language-Python-blue.svg) ![](https://img.shields.io/badge/Python-3.X-red.svg)\n\n![](https://postimg.aliavv.com/mbp/b69eb.png)\n\nLCBot 是一个为 Linux 中国服务的微信机器人，主要为 Linux 中国下的微信群做管理、维护等工作。\n\n**注：使用本项目有被微信网页版封号的风险，故而现已基本停止开发。如继续使用本项目，产生的后果请自行承担。**\n\n##  演示\n\n视频教程地址：[点我查看视频教程集合](http://dwz.cn/lcbot) | [Linux/macOS 使用教程](https://v.qq.com/x/page/k03996ry5o1.html) |[完整版 Win 10 使用教程](https://v.qq.com/x/page/y03990en5qu.html) | [单群版机器人使用教程](https://v.qq.com/x/page/p05007bqjv1.html)\n\n注：该系列视频使用的是旧版 LCBot，新版请以本文的文字内容为准。\n\n免登录意见反馈：[我要新功能！](https://wj.qq.com/s/1334670/bb03/)\n\n## 特性\n\n\u003e\u003e 注：使用本项目有被微信网页版封号的风险，故而现已基本停止开发。如继续使用本项目，产生的后果请自行承担。\n\n1. 关键词添加好友自动拉群\n2. 私聊发送关键词自动加群\n3. 新用户进群自动发送欢迎\n4. 设定管理员，管理员可以通过发送命令T人（需要机器人是群主）\n5. 监控群每小时发送心跳包\n6. 管理员踢人监控群内留底\n7. 被拉黑的用户，无法被再次拉群。需要管理员手动释放。\n8. 管理员在监控群发送指令获取状态或进行特定操作（现支持“状态”、“重启”、“刷新”）\n\n## 需要\n- Python 3\n- wxpy\n\n## 安装\n下载源码\n```\ngit clone https://github.com/LCTT/LCBot.git\n```\n安装拓展\n```\ncd LCBot\npip3 install -U -r  requirements.txt\n```\n## Docker 版本\n感谢 [@OSMeteor](https://github.com/OSMeteor/pythonlcbot) 提供的 Docker 版本\n\n使用方法：\n\n```\ndocker pull osmeteor/pythonlcbot\n# 或者使用国内镜像: docker pull registry.docker-cn.com/osmeteor/pythonlcbot\ndocker run -i -t osmeteor/pythonlcbot /bin/bash\ncd /opt/LCBot\npython bot.py\n```\n\n## 使用\n首先，进行机器人相关设定（注：现已废弃旧版中使用 puid 的配置方案，不再需要导出 puid 数据）\n\n编辑 config.py 中第 11 行和 22 行，分别填入管理员群的名称（`admin_group_name`）和被管理群的前缀（`group_prefix`）\n\n编辑 config.py 中第 68 行，填入监控群的名称（`alert_group`）\n\n编辑 config.py 中第 70 行，填入图灵机器人的 APIKEY（`turing_key`）\n\n以及 config.py 中的欢迎语、邀请消息、邀请关键词等相关配置\n\n随后执行以下命令运行机器人（首次登录需要扫二维码）\n```\npython3 bot.py\n```\n\n\u003e 如果执行后，如果二维码展示不正常，可以执行 `sudo localectl set-locale LANG=C.UTF-8`\n\n## FAQ\n查看 [FAQ](https://github.com/LCTT/LCBot/wiki/FAQ)\n## Todo\n\n查看 [Todo](TODO.md)\n\n## 贡献指南\n\n查看 [CONTRIBUTING](CONTRIBUTING.md)\n\n## LICENSE\n\n代码基于 [MIT](LICENSE) 协议开源\n\n文档以 [CC-BY-ND](https://creativecommons.org/licenses/by-nd/4.0/) 协议分享\n\n## 致谢\n\n- [wxpy](https://github.com/youfou/wxpy) : 微信机器人 / 优雅而强大的微信个人号 API\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLCTT%2FLCBot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLCTT%2FLCBot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLCTT%2FLCBot/lists"}