Skip to content
/ Yui Public

Simple Telegram AI Chat bot made using OpenAI and Luna API

License

Notifications You must be signed in to change notification settings

Itz-fork/Yui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yui

Yui, is a simple telegram chat bot made using OpenAI, AFFILIATE+ and Luna Chat bot


Deployment 👀

Deploying is easy 🤫! You can deploy this bot in Heroku or in a VPS ♥️! Star 🌟 Fork 🍴 and Deploy

With Heroku

Self-Hosting

git clone https://github.com/Itz-fork/Yui.git
cd Yui
pip3 install -r requirements.txt

Edit "config.py" with your own values

python3 -m Yui

Configs 🗒️

  • APP_ID - Your APP ID. Get it from my.telegram.org
  • API_HASH - Your API_HASH. Get it from my.telegram.org
  • BOT_TOKEN - Bot Token of Your Telegram Bot. Get it from @BotFather
  • OWNER_ID - Your Telegram Account ID. Get it from @MissRose_bot (Start the bot and send /info command)
  • CHAT_BOT_NAME - Custom name for your chatbot. (Default to Yui)
  • OPENAI_KEY - Your own OpenAI API Key
  • ARQ_KEY - Your ARQ API Key. Get it from @ARQRobot
  • DEFAULT_CHATBOT - The Default chatbot you want to use after OpenAI. (affiliateplus or luna)
  • MAX_TOKENS - The maximum number of tokens to generate in the completion

For Heroku Users,

  • ON_HEROKU - Set this var to True
  • HEROKU_APP_NAME - Your Heroku app name
  • HEROKU_API - Your Heroku API
    • Go to account dashboard
    • Scroll down and find the "API Key" section and click on Reveal button to get your API Key

Note ⚠️

If you want to increase the response length limit change Max Response Length Limit Value to whatever you want (Value must be a integer). Also increasing this can spend your OpenAI credits quickly

Support 🍪


License & Copyright 👮

Copyright (c) 2021 Itz-fork

This Yui repository is licensed under GPLv3 License (https://github.com/Itz-fork/Yui/blob/master/LICENSE)
Copying or Modifying Any Part of the code without permission is strictly prohibited

About

Simple Telegram AI Chat bot made using OpenAI and Luna API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published