ChatGPT-weBot  by SnapdragonLee

WeChat bot for ChatGPT and Stable Diffusion

created 2 years ago
662 stars

Top 51.6% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a WeChat bot that integrates with OpenAI's ChatGPT API for conversational AI and Stable Diffusion for AI image generation. It targets users who want to automate WeChat interactions with advanced AI capabilities, offering features like context-aware replies, custom bot personalities, and AI art creation directly within WeChat.

How It Works

The bot leverages a WeChat hook interface, specifically injecting a DLL into a modified WeChat client (version 3.9.5.81 or earlier, or a separate installation for dual-opening). This allows it to intercept and process incoming WeChat messages. It then communicates with OpenAI's API for text generation and Stable Diffusion for image creation, supporting multithreaded operations for concurrent conversations and image generation tasks.

Quick Start & Requirements

  • Install: pip install -r ./requirements.txt
  • Prerequisites: Python 3.7+, WeChat client version 3.9.5.81 (or a separate installation of a compatible version). Requires OpenAI API key.
  • Setup: Download from GitHub Releases, install specific WeChat version, run injector (.\injector.exe -n WeChat.exe -i .\wxinject.dll), configure JSON files (api_config.json, server_config.json, config.json, sys_character.json), and run python main.py.
  • Docs: Preview

Highlighted Details

  • Supports conversation history, context-aware Q&A, and regenerating/rolling back conversations.
  • Enables AI drawing with Stable Diffusion, supporting prompts and negative prompts.
  • Features bot character customization and keyword-based activation for private chats and groups.
  • Offers protection against WeChat bans by using the official client hook.

Maintenance & Community

Recent updates include fixes for memory leaks and XML parsing (v1.20.2), SDK updates, and support for new WeChat versions. The project is actively developed with frequent commits and feature additions. Users can create issues for support.

Licensing & Compatibility

The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The project requires a specific, potentially older, version of the WeChat client, which might pose compatibility or security concerns. Stable Diffusion functionality is noted as English-only. Usage of OpenAI API incurs costs.

Health Check
Last commit

1 year ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.