Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mendoc/clara-bot
Un bot Telegram basé sur chatGPT
https://github.com/mendoc/clara-bot
Last synced: 6 days ago
JSON representation
Un bot Telegram basé sur chatGPT
- Host: GitHub
- URL: https://github.com/mendoc/clara-bot
- Owner: mendoc
- License: mit
- Created: 2023-01-05T05:40:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-11T13:43:39.000Z (11 months ago)
- Last Synced: 2024-02-11T14:40:26.835Z (11 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clara-bot
Un bot Telegram basé sur chatGPT## Prérequis
- Python 3.7 ou supérieur
- Un compte [OpenAI](https://beta.openai.com/account/api-keys)
- Un token de [bot Telegram](https://www.commentcoder.com/bot-telegram/)## Installation
```bash
virtualenv .clara
virtualenv -p /usr/bin/python3.7 .clara
source .clara/bin/activate
pip install -r requirements.txt
cp .env.example .env
```Modifiez le fichier ```.env``` en renseignant les clés API OpenAI et du bot Telegram
```bash
OPENAI_API_KEY=
BOT_TOKEN=
```## Lancement
```bash
python bot.py
```
```CTRL+C``` pour stopper le bot.## Désactiver environnement Python
```bash
deactivate
```