Git Product home page Git Product logo

chatgpt-wechat-bot's Introduction

ChatGPT wechat-bot

ChatGPT webchart bot is a WeChat assistant based on NodeJS and webchaty. This tool is more convenient for you to use ChatGPT, you just chat with it as a good friend or a housekeeper.

How to use?

  1. Firstly, you should have an OpenAI account, then follow the steps below to get your token.

Refer to this article: https://github.com/transitive-bullshit/chatgpt-api.

To get a session token:

  1. Go to https://chat.openai.com/chat and log in or sign up.
  2. Open dev tools.
  3. Open Application > Cookies.

image.png

  1. Copy the value for __Secure-next-auth.session-token and save it to your environment.
  1. Now, you should fill your Token value into the ChatGPTSessionToken in the directory src/index.js, then run this project on local.
// install dependences
npm i

// build
npm run build

// run lib
node lib/bundle.esm.js
  1. you can see your logs, and scan qrcode to log in wechat.

image.png

  1. Send a message to your WeChat and you will receive a reply from ChatGPT.

image.pngimage.png

QA

  1. If your WeChat cannot log in

Please check the root directory of your project, whether there is a file —— wechaty-puppet-wechat.memory-card.json, if so, please delete it and try it again.

  1. support env
"engines": { "node": ">=16", "npm": ">=7" }

chatgpt-wechat-bot's People

Contributors

autumnwhj 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.