Coder Social home page Coder Social logo

lcbot's Introduction

LCBot Linux**微信机器人

license

LCBot 是一个为 Linux **服务的微信机器人,主要为 Linux **下的微信群做管理、维护等工作。

注:使用本项目有被微信网页版封号的风险,故而现已基本停止开发。如继续使用本项目,产生的后果请自行承担。

演示

视频教程地址:点我查看视频教程集合Linux/macOS 使用教程 |完整版 Win 10 使用教程 | 单群版机器人使用教程

注:该系列视频使用的是旧版 LCBot,新版请以本文的文字内容为准。

免登录意见反馈:我要新功能!

特性

注:使用本项目有被微信网页版封号的风险,故而现已基本停止开发。如继续使用本项目,产生的后果请自行承担。

  1. 关键词添加好友自动拉群
  2. 私聊发送关键词自动加群
  3. 新用户进群自动发送欢迎
  4. 设定管理员,管理员可以通过发送命令T人(需要机器人是群主)
  5. 监控群每小时发送心跳包
  6. 管理员踢人监控群内留底
  7. 被拉黑的用户,无法被再次拉群。需要管理员手动释放。
  8. 管理员在监控群发送指令获取状态或进行特定操作(现支持“状态”、“重启”、“刷新”)

需要

  • Python 3
  • wxpy

安装

下载源码

git clone https://github.com/LCTT/LCBot.git

安装拓展

cd LCBot
pip3 install -U -r  requirements.txt

Docker 版本

感谢 @OSMeteor 提供的 Docker 版本

使用方法:

docker pull osmeteor/pythonlcbot
# 或者使用国内镜像: docker pull registry.docker-cn.com/osmeteor/pythonlcbot
docker run -i -t osmeteor/pythonlcbot /bin/bash
cd /opt/LCBot
python bot.py

使用

首先,进行机器人相关设定(注:现已废弃旧版中使用 puid 的配置方案,不再需要导出 puid 数据)

编辑 config.py 中第 11 行和 22 行,分别填入管理员群的名称(admin_group_name)和被管理群的前缀(group_prefix

编辑 config.py 中第 68 行,填入监控群的名称(alert_group

编辑 config.py 中第 70 行,填入图灵机器人的 APIKEY(turing_key

以及 config.py 中的欢迎语、邀请消息、邀请关键词等相关配置

随后执行以下命令运行机器人(首次登录需要扫二维码)

python3 bot.py

如果执行后,如果二维码展示不正常,可以执行 sudo localectl set-locale LANG=C.UTF-8

FAQ

查看 FAQ

Todo

查看 Todo

贡献指南

查看 CONTRIBUTING

LICENSE

代码基于 MIT 协议开源

文档以 CC-BY-ND 协议分享

致谢

  • wxpy : 微信机器人 / 优雅而强大的微信个人号 API

lcbot's People

Contributors

bestony avatar robot527 avatar wxy avatar yinr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.