Git Product home page Git Product logo

telegram-chatgpt's Introduction

telegram-chatGPT

use gpt chat directly from telegram

Features:

  • multiple users
  • role selection
  • temperature selection
  • gpt instance reset
  • logging system

commands:

start

/start

Start conversation

temp

/temp

Command opens menu to select temperature hyperparameter for gpt. Use low value for formal proofs, solving tasks and other technical questions. Use high value for more creative answers and non technical questions, like introductions and conclusions for articles and other places when you need more words. For more info you can ask gpt itself.

role

/role

Command asks to provede a new role in next message for gpt assistant. You can use roles like 'you are an article writing assistant' to help with article writing, or 'you are an interesting companion' for chatting, or even 'you are an pirate' to get pirate styled messages

reset

/reset

Reset gpt instance and start conversation from begining

help

/help

Prints help message with brief description for all commands

install and run

dependencies

  • python3
  • pip3

python modules

  • openai
  • python-telegram-bot

before first launch run install.sh script to install needed modules for python:

sh install.sh

tokens

you need to place your openai token to file .openai.token and telegram token to file .simplebot.token in the root of repo

lauch

you can lauch bot simply by

python3 SimpleGPTbot.py

and it will write all logs to stdout

daemon

if you want to run bot as daemon - run daemon.sh script:

sh daemon.sh

it will disconnect process from current shell (and you can close it) and write all logs to log.txt file.

To stop daemon just find process with px aux and kill it:

kill $(ps aux | grep 'python3 SimpleGPTbot.py' | awk '{print $2}')

telegram-chatgpt's People

Contributors

tlucanti avatar

Watchers

Kostas Georgiou avatar  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.