Code Monkey home page Code Monkey logo

tg_ai_bot's Introduction

Telegram AI Chat Bot

说明

该 Telegram Bot 可以与生成式 AI 对话, 每个人都有独立的上下文.

当前模型: gemini-1.5-flash-latest

使用

在使用前, 请确保安装了 nodejs 以及 pnpm.

并在 https://makersuite.google.com/app/apikey 获取 Gemini apikey

安装

  1. 克隆该仓库

    git clone https://github.com/Rewrite0/TG_AI_Bot
  2. 安装依赖

    pnpm i
  3. 更改配置

    将目录下的 .env.example 复制一份并改名为 .env, 然后根据注释填写相关信息.

  4. 启动

    pnpm pm2:start
  5. 管理

    pnpm pm2:ls // 查看进程
    pnpm pm2:del // 删除进程
    pnpm pm2:logs // 查看 log

tg_ai_bot's People

Contributors

rewrite0 avatar

Stargazers

 avatar

Watchers

 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.