An open API service indexing awesome lists of open source software.

https://github.com/ulnit/wechatbot

wechat bot base chatgpt
https://github.com/ulnit/wechatbot

Last synced: 6 months ago
JSON representation

wechat bot base chatgpt

Awesome Lists containing this project

README

          

# 特别提醒

之前水文章( https://51.ruyo.net/18261.html )的时候同步这个仓库。微信早就被封了。

本仓库的内容谨慎尝试!!!!!!!!!!

# wechatbot
> 最近chatGPT异常火爆,本项目可以将个人微信化身GPT机器人,
> 项目基于[openwechat](https://github.com/eatmoreapple/openwechat) 开发。

[![Release](https://img.shields.io/github/v/release/869413421/wechatbot.svg?style=flat-square)](https://github.com/869413421/wechatbot/releases/tag/v1.0.1)
![Github stars](https://img.shields.io/github/stars/869413421/wechatbot.svg)
![Forks](https://img.shields.io/github/forks/869413421/wechatbot.svg?style=flat-square)

### 目前实现了以下功能
* 提问增加上下文,更接近官网效果
* 机器人群聊@回复
* 机器人私聊回复
* 好友添加自动通过

# 使用前提
> * ~~目前只支持在windows上运行因为需要弹窗扫码登录微信,后续会支持linux~~ 已支持
> * 有openai账号,并且创建好api_key,注册事项可以参考[此文章](https://juejin.cn/post/7173447848292253704) 。
> * 微信必须实名认证。

# 注意事项
> * 项目仅供娱乐,滥用可能有微信封禁的风险,请勿用于商业用途。
> * 请注意收发敏感信息,本项目不做信息过滤。

# 快速开始
> 非技术人员请直接下载release中的[压缩包](https://github.com/869413421/wechatbot/releases/tag/v1.1.1) ,解压运行。
````
# 获取项目
git clone https://github.com/869413421/wechatbot.git

# 进入项目目录
cd wechatbot

# 复制配置文件
copy config.dev.json config.json

# 启动项目
go run main.go
````

# 配置文件说明
````
{
"api_key": "your api key",
"auto_pass": true,
"session_timeout": 60
}

api_key:openai api_key
auto_pass:是否自动通过好友添加
session_timeout:会话超时时间,默认60秒,单位秒,在会话时间内所有发送给机器人的信息会作为上下文。
````

# 使用示例
### 向机器人发送`我要问下一个问题`,清空会话信息。
### 私聊

### 群聊@回复