Skip to content

Collect, analyze, and send messages on WeChat using Wechaty and GPT.

License

Notifications You must be signed in to change notification settings

zinccat/WeChatHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeChatHelper

A user-friendly tool to collect, analyze, and send messages on WeChat using Wechaty and GPT.

中文版见此处

Features

  1. Host a WeChat bot that can save all your text messages into a CSV file.
  2. Summarize group chat's history using GPT.

Usage

Prerequisites

  1. Install Docker (https://docs.docker.com/engine/install/) and Wechaty (https://github.com/wechaty/python-wechaty).
  2. Generate a UUID (https://www.uuid.online/) and request a token from http://pad-local.com/#/tokens.
  3. Modify the related values in start.sh and bot.py with the obtained token.

Steps

  1. Start the Wechaty service:

If you are using Linux/MacOS,

sh start.sh

If you are using Windows, check https://wechaty.js.org/2021/05/18/win10-use-docker-build-web-protocol-server-develop-bot/.

  1. Launch the bot after changing the line including:
if to_contact.payload.name != "please change to your own wechat alias":
python bot.py
  1. After collecting the messages, use summary.py to generate a merged version of a group chat history and summarize it. Make sure to set the file you want to process.
python summary.py

Enjoy using WeChatHelper to manage and analyze your WeChat messages!

About

Collect, analyze, and send messages on WeChat using Wechaty and GPT.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published