Coder Social home page Coder Social logo

chatgpt-telebot's Introduction

# 🔮ChatGPT Telegrame Bot (nodejs)

💍️Telegram_bot powered by chatGPT, demo:@sisChatBot image

事前准备🛡️

  • 申请Telegram bot api token : https://t.me/BotFather
  • 获取ChatGPT session token
    • 注册登录OpenAI ChatGPT账号,然后打开控台-->应用程序-->Cookie-->复制名称为xxxxxx.session.token对应的value值,如下图
    • image
  • Node.js环境

部署⚔️

  1. 复制项目到本地,安装依赖

    git clone https://github.com/hobk/chatgpt-telebot.git
    cd chatgpt-telebot
    npm install
  2. 复制 .env.example 并命名为 .env

 cp .env.example .env
  1. 把之前准备的 ChatGPT session token 和Telegram bot token 对应写入 .env 文件

    # inside .env
    TOKEN='your_telegrame_bot_token'
    SESSION_TOKEN='your_chatGPT_session_token'
  2. 启动

     node index.js
     # 或者使用 pm2 (安装:npm i pm2)
     pm2 start index.js

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.