raven-kus / tg_bot_plus_ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CHATGPT

Telegram Bot with OpenAI GPT-3.5-turbo connection, context, Stability AI painting and Google scraping

You have to get those APIs and set environment variables (or put to .env file):

Optional (for payments and translation):

Optional (for promotion):

LOCAL RUN

  • Install NodeJS v.18
export PUPPETEER_SKIP_DOWNLOAD=1 #for aarch64 
npm install
node index.js

PROD

TODO

  • Temperature separated
  • Detect >500 abuse
  • Context forget/reset timeout
  • DDOS protection
  • DDOS of RU group - 5 requests per hour to user
  • Language from user.language_code
  • Parse tokens consumed to money.json
  • Docker

About


Languages

Language:JavaScript 95.2%Language:Batchfile 4.0%Language:Dockerfile 0.8%