Yui, is a simple telegram chat bot made using OpenAI, AFFILIATE+ and Luna Chat bot
Deploying is easy 🤫! You can deploy this bot in Heroku or in a VPS
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
APP_ID
- Your APP ID. Get it from my.telegram.orgAPI_HASH
- Your API_HASH. Get it from my.telegram.orgBOT_TOKEN
- Bot Token of Your Telegram Bot. Get it from @BotFatherOWNER_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 toYui
)OPENAI_KEY
- Your own OpenAI API Key- Go to OpenAI Sign Up Page and create your OpenAI Account
- Then go to API Keys Section
- From there you can copy your OpenAI API Key
ARQ_KEY
- Your ARQ API Key. Get it from @ARQRobotDEFAULT_CHATBOT
- The Default chatbot you want to use after OpenAI. (affiliateplus
orluna
)MAX_TOKENS
- The maximum number of tokens to generate in the completion
For Heroku Users,
ON_HEROKU
- Set this var toTrue
HEROKU_APP_NAME
- Your Heroku app nameHEROKU_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
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
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