Skip to content

hobk/chatgpt-telebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# 🔮ChatGPT Telegram Bot (by nodejs)

💍演示成品机器人:@sisChatBot

事前准备🛡️

部署⚔️

  1. 克隆项目,安装依赖

    git clone https://github.com/hobk/chatgpt-telebot.git
    cd chatgpt-telebot
    npm install
  2. 把之前准备的 Telegram bot token 和 openAi apiKey 对应写入 .env 文件

    # 1.复制文件
    cp .env.example .env
    
    # 2.编辑 .env
      #token='your TelegramBot token'
      #apiKey='your openAi apiKey'
      #group_name = '群消息中需要回复的消息必须以该名称开头,如设置为'gpt',那么群消息中必须以/gpt开头才会触发回复'
  3. 启动

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

About

基于chatGPT使用nodejs搭建的telegram机器人

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published