Giter VIP home page Giter VIP logo

telegram-chatbot-gpt4free's Introduction

Telegram-Chatbot-Gpt4Free

This is a Python-based Telegram bot using the telethon library. The bot responds to messages using the evagpt4 reverse engeneered api from OpenGPT repo. This bot also supports plugins, roles, dan jailbreak and long term memory via vector database

Installation

Clone the repo

git clone https://github.com/HexyeDEV/Telegram-Chatbot-Gpt4Free.git After that go to the cloned repo directory.

Edit the example.env file with:

API_ID is your api id from https://my.telegram.org

API_HASH is your api hash from https://my.telegram.org

BOT_TOKEN is your bot token from Bot Father

If you want to use WalframAlpha plugin, you will need to create an app at https://products.wolframalpha.com/api/ and set WOLFRAMALPHA_APP_ID in the example.env to the APP_ID of your Wolfram apllication.

After that, rename example.env into .env.

Install all the packages running pip install -r requirements.txt(may change based on your python version, settings and os.)

Now run main.py with python3 main.py(may change based on your python version, settings and os.)

Enjoy!

Commands:

/help - see a command list

/plugins toggle - enable/disable plugins

/plugins list - list all plugins

/jailbreak - list all jailbreaks

/jailbreak [JAILBREAK NAME] - enable a jailbreak

/newrole - create a new role

/roles - list all the roles

/role - enable a role

/role disable - disable roles

/memory - enable/disable memory

/addmemory - add something to the memory without receiving AI response.

Provider Used

This project is currently using reverse engineered bing from GPT4FREE

Running the Application in a Docker Container

  1. Build the Docker image using the command docker build -t telegram-chatbot .
  2. Run the Docker container using the command docker run -p 80:80 telegram-chatbot
  3. Alternatively, use Docker Compose to build and run the Docker container using the command docker-compose up

telegram-chatbot-gpt4free's People

Contributors

hexyedev avatar sweep-ai[bot] 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.