Coder Social home page Coder Social logo

fpxtest / wechatsdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wechatapis/wechatbotcmd

1.0 0.0 0.0 4 MB

微信机器人是一个创新的基于Python 3.11开发的项目,通过结合ChatGPT模型和微信原生API,为用户提供智能聊天、自动绘画、自动发朋友圈、自动发视频号等多样的API集成服务,旨在提升日常沟通效率和趣味性。

License: MIT License

Python 100.00%

wechatsdk's Introduction

微信机器人 🤖

微信机器人是一个基于Python 3.11开发的项目,它利用API调用微信原生能力,并与人工智能集成,以帮助用户完成一系列任务。这些任务包括但不限于:以高情商回复心仪的女生、制作头像、AI绘画、通过文字完成多个API处理(如获取天气、根据天气生成图片并自动发布到朋友圈等功能)。

特色功能 ✨

  • 聊天画图:结合ChatGPT模型的高级聊天和绘图能力,提供丰富的交互体验。
  • 上下文记忆:自动记忆与用户的对话上下文,如果10分钟内无回复,则忘记上下文。
  • 对话历史限制:最多记忆10条对话历史,确保交互的连贯性。
  • 自动通过好友、自动拉群
  • 视频号视频下载
  • 自动发朋友圈、自动点赞
  • 直播间自动发弹幕
  • 视频号自动回复等
  • 微信防撤回(撤回消息回调)

系统要求 💻

  • Windows操作系统Windows云服务器
  • Python 3.11

安装 🔧

微信启动

启动程序

  1. 打开cmd,并进入 wechatSDK 目录,运行 python -m venv venv 并开启虚拟环境 venv/Scripts/activate
  2. 运行 pip install -r requirements.txt 安装所有依赖。
  3. 复制 env_wechat_back.json 文件并将其重命名为 env_wechat.json,然后修改文件内容(记得去除掉【|】以前的中文,格式参考env_wechat_example.json)。
  4. 运行 python app.py 启动程序。

依赖 📦

项目依赖于 wechatAPI。请确保安装所有必要的依赖。

常问问题

  • JSON中的值如何填写
    • 通过postman调用api填写json中最外层的wxid
    • 启动程序后,等待消息回调,在群内、给好友发信息接收到回调信息后填充json中其他值信息
  • ChatGPT并没有支持GPTs的API,你是如何做的
    • 有些提供openai中转服务的厂商,他们通过破解openai的API,提供了GPTs的API服务,api价格比官方还便宜
    • 自用中转,推荐理由:稳定、价格低、售后服务好:ChatGPT中转商

如何贡献 🤝

欢迎通过Pull Requests来贡献代码。请确保您的代码符合项目的编码标准并通过所有测试。

效果展示 🖼️

img_1_base.png img_1_img.png img_2_base.png img_2_img.png img_chat_base.png img.png

许可证 📄

该项目根据MIT许可证授权。

wechatsdk's People

Contributors

kawika-git avatar

Stargazers

 test.im 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.