Giter Site home page Giter Site logo

thekers / chatgpt-probot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oceanlvr/chatgpt-probot

0.0 0.0 0.0 972 KB

🤖️ A ChatGPT based GitHub robot. dialogue/CR/etc..

Home Page: https://github.com/apps/chatgptbot

License: ISC License

Shell 6.46% JavaScript 80.06% TypeScript 13.48%

chatgpt-probot's Introduction

ChatGPT ProBot

Release Version Twitter

GitHub Deploy to Vercel

A ChatGPT-based GitHub APP. Type /chatgpt to chat with robot 🤖️.

hello

Powered by Probot & chatgpt-api

Usage

Try on issue#1

Try Review/Refactor on PR#7

event description example
/ping ping robot status
/chatgpt chat with bot on issue/PR comment /chatgpt who are you?
/review auto review code in the PR /review fix the callback hell problem
/refactor refactor the code /refactor fix the callback hell problem

Deploy your own APP

  1. Install & Configure the GitHub App
  2. Create .env file following example.env, please check config section in your GitHub apps page
    1. APP_ID/PRIVATE_KEY/GITHUB_CLIENT_SECRET/GITHUB_CLIENT_ID is required, please check chatgptbot settings and fill them.
    2. PRIVATE_KEY is required, it should be encoded by base64.(console.log(Buffer.from(<PRIVATE_KEY>).toString('base64'))).
    3. SESSION_TOKEN is required, it is generated by ChatGPT website. You can get it following this step.
  3. Vercel Deploy (recommend), click Deploy to Vercel to clone deploy. Copy .env file environment to vercel app environment-variables in setting page (for me it's https://vercel.com/oceanlvr/chatgptbot/settings/environment-variables)
  4. Edit the webhooks URL to ${vercelAPPURL}/api/github/webhooks. For me it's https://chatgptbot.vercel.app/api/github/webhooks
  5. Type /chatgpt in an issue, chat with the bot

step4: update webhook URL to your vercel app domain. webhooks

Note This package will switch to using the official API once it's released.

Dev

# Install dependencies
npm install

# Run the bot
npm dev

License

ISC © 2022 oceanlvr

chatgpt-probot's People

Contributors

oceanlvr avatar thekers 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.