GithubHelp home page GithubHelp logo

5l1v3r1 / yui-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itz-fork/yui

0.0 1.0 0.0 65 KB

Simple Telegram AI Chat bot made using OpenAI and Luna API

License: GNU General Public License v3.0

Python 99.88% Procfile 0.12%

yui-1's Introduction

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

yui-1's People

Contributors

itz-fork 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.