Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
298 commits
Select commit Hold shift + click to select a range
57e2589
Update index.js
Araxielfenix Nov 19, 2024
51b5db0
Update index.js
Araxielfenix Nov 19, 2024
5f3b2a4
Update index.js
Araxielfenix Nov 19, 2024
1d57150
Update index.js
Araxielfenix Nov 19, 2024
2697bc4
Update index.js
Araxielfenix Nov 19, 2024
1fdbaa3
Update index.js
Araxielfenix Nov 19, 2024
ab1556f
Update file_context.txt
Araxielfenix Nov 19, 2024
2f9a37c
Update index.js
Araxielfenix Nov 19, 2024
3b592f2
Update index.js
Araxielfenix Nov 19, 2024
0f9799c
Update index.js
Araxielfenix Nov 19, 2024
ddb4ce1
Update file_context.txt
Araxielfenix Nov 19, 2024
456f1da
Update file_context.txt
Araxielfenix Nov 19, 2024
28ce034
Update file_context.txt
Araxielfenix Nov 19, 2024
69e8b70
Update file_context.txt
Araxielfenix Nov 19, 2024
021ac54
Update file_context.txt
Araxielfenix Nov 19, 2024
3f259a3
Update file_context.txt
Araxielfenix Nov 22, 2024
5ee1d23
Update file_context.txt
Araxielfenix Nov 24, 2024
a0dadc6
Update file_context.txt
Araxielfenix Nov 24, 2024
2e9322f
Update file_context.txt
Araxielfenix Dec 1, 2024
7236a60
Update file_context.txt
Araxielfenix Dec 1, 2024
f970a9c
Update file_context.txt
Araxielfenix Dec 1, 2024
27cfcfe
Update file_context.txt
Araxielfenix Dec 1, 2024
3f4e4e9
Update file_context.txt
Araxielfenix Dec 2, 2024
b5e8dd7
Update file_context.txt
Araxielfenix Dec 2, 2024
3e358e1
Update file_context.txt
Araxielfenix Dec 2, 2024
9521acd
Update file_context.txt
Araxielfenix Dec 2, 2024
bc14811
Update file_context.txt
Araxielfenix Dec 5, 2024
8f193ad
Update file_context.txt
Araxielfenix Dec 5, 2024
cc4277a
Update file_context.txt
Araxielfenix Dec 9, 2024
f71148e
Update file_context.txt
Araxielfenix Dec 9, 2024
2340598
Update file_context.txt
Araxielfenix Dec 11, 2024
740ba15
Update file_context.txt
Araxielfenix Dec 11, 2024
2473854
Update index.js
Araxielfenix Dec 11, 2024
d7c8464
Update index.js
Araxielfenix Dec 11, 2024
298ca06
Update index.js
Araxielfenix Dec 11, 2024
4e7e09b
Update index.js
Araxielfenix Dec 11, 2024
cfd1979
Update index.js
Araxielfenix Dec 11, 2024
241456a
Update index.js
Araxielfenix Dec 11, 2024
f2840b8
Update index.js
Araxielfenix Dec 11, 2024
42ecbaf
Update index.js
Araxielfenix Dec 11, 2024
ff37683
Update index.js
Araxielfenix Dec 11, 2024
569850d
Update index.js
Araxielfenix Dec 11, 2024
d74163a
Update index.js
Araxielfenix Dec 11, 2024
6de8116
Update index.js
Araxielfenix Dec 11, 2024
5d256c1
Update index.js
Araxielfenix Dec 11, 2024
1a63cfc
Update openai_operations.js
Araxielfenix Dec 11, 2024
43ad272
Update index.js
Araxielfenix Dec 11, 2024
7421130
Update openai_operations.js
Araxielfenix Dec 11, 2024
6787e3c
Update openai_operations.js
Araxielfenix Dec 11, 2024
c5e3b1c
Update openai_operations.js
Araxielfenix Dec 11, 2024
e3219dd
Update index.js
Araxielfenix Dec 11, 2024
4bfb499
Update index.js
Araxielfenix Dec 11, 2024
3ff3538
Update openai_operations.js
Araxielfenix Dec 11, 2024
4ba457c
Update index.js
Araxielfenix Dec 11, 2024
5434922
Update index.js
Araxielfenix Dec 11, 2024
0f57ca7
Update index.js
Araxielfenix Dec 11, 2024
1283ad3
Update index.js
Araxielfenix Dec 11, 2024
5b09551
Update index.js
Araxielfenix Dec 11, 2024
0ca181a
Update index.js
Araxielfenix Dec 11, 2024
167f48d
Create sharedData.js
Araxielfenix Dec 11, 2024
5ad381e
Update index.js
Araxielfenix Dec 11, 2024
b19c3b2
Update openai_operations.js
Araxielfenix Dec 11, 2024
65d611d
Update index.js
Araxielfenix Dec 11, 2024
f2f9553
Update openai_operations.js
Araxielfenix Dec 11, 2024
09dc502
Update index.js
Araxielfenix Dec 11, 2024
ab8354b
Update openai_operations.js
Araxielfenix Dec 11, 2024
459defc
Update sharedData.js
Araxielfenix Dec 11, 2024
1bff0a8
Update index.js
Araxielfenix Dec 11, 2024
0f4b067
Update index.js
Araxielfenix Dec 11, 2024
9514bde
Update index.js
Araxielfenix Dec 11, 2024
8430953
Update index.js
Araxielfenix Dec 11, 2024
70b3399
Update index.js
Araxielfenix Dec 11, 2024
b5400fb
Update sharedData.js
Araxielfenix Dec 11, 2024
7ad5ea5
Update sharedData.js
Araxielfenix Dec 11, 2024
4040f8f
Update file_context.txt
Araxielfenix Dec 13, 2024
a975019
Update file_context.txt
Araxielfenix Dec 17, 2024
06036c2
Update file_context.txt
Araxielfenix Dec 17, 2024
23911ce
Update file_context.txt
Araxielfenix Dec 17, 2024
cf1ab45
Update file_context.txt
Araxielfenix Dec 18, 2024
fd1330c
Update file_context.txt
Araxielfenix Dec 19, 2024
7942dbf
Update file_context.txt
Araxielfenix Dec 28, 2024
60e1190
Update file_context.txt
Araxielfenix Dec 28, 2024
28174ca
Update file_context.txt
Araxielfenix Dec 28, 2024
6455bbc
Update index.js
Araxielfenix Dec 28, 2024
60d9b6f
Update index.js
Araxielfenix Jan 24, 2025
1d0e804
Update openai_operations.js
Araxielfenix Jan 27, 2025
b577f5d
Update openai_operations.js
Araxielfenix Jan 27, 2025
b95df34
Update file_context.txt
Araxielfenix Jan 27, 2025
36bca8f
Update openai_operations.js
Araxielfenix Jan 31, 2025
8b0c6e3
Update openai_operations.js
Araxielfenix Jan 31, 2025
1cfc5d1
Update openai_operations.js
Araxielfenix Jan 31, 2025
064bbe0
Update openai_operations.js
Araxielfenix Jan 31, 2025
71152e7
Update openai_operations.js
Araxielfenix Feb 1, 2025
5954247
Update file_context.txt
Araxielfenix Feb 1, 2025
60b010c
Update file_context.txt
Araxielfenix Feb 1, 2025
53dad75
Update file_context.txt
Araxielfenix Feb 10, 2025
201ff9a
Update file_context.txt
Araxielfenix Feb 21, 2025
4e63ce1
Update file_context.txt
Araxielfenix Mar 18, 2025
a8a86c2
Update index.js
Araxielfenix Apr 13, 2025
7325a38
Update openai_operations.js
Araxielfenix Apr 13, 2025
49ec5d4
Update index.js
Araxielfenix Apr 13, 2025
2c9f098
Update file_context.txt
Araxielfenix Apr 13, 2025
4b08a1b
Update file_context.txt
Araxielfenix Apr 13, 2025
ec7b083
Update file_context.txt
Araxielfenix Apr 13, 2025
ddb858e
Update file_context.txt
Araxielfenix Apr 13, 2025
fb0137d
Update file_context.txt
Araxielfenix Apr 13, 2025
bb38c49
Update file_context.txt
Araxielfenix Apr 13, 2025
726d886
Update file_context.txt
Araxielfenix Apr 13, 2025
27db163
Update index.js
Araxielfenix Apr 13, 2025
46d8acc
Update file_context.txt
Araxielfenix Apr 20, 2025
b442ab0
Update file_context.txt
Araxielfenix Apr 28, 2025
f8c8c13
Update file_context.txt
Araxielfenix May 3, 2025
d265c12
Update file_context.txt
Araxielfenix May 6, 2025
2f7d3ac
Update file_context.txt
Araxielfenix May 7, 2025
ca55049
Update file_context.txt
Araxielfenix May 7, 2025
d5533d8
Update file_context.txt
Araxielfenix May 7, 2025
e1af3af
Update file_context.txt
Araxielfenix May 7, 2025
ccb0837
Update README.md
Araxielfenix May 7, 2025
fd2ad35
Update README.md
Araxielfenix May 7, 2025
2a00d9f
Update README.md
Araxielfenix May 7, 2025
63cc04c
Update README.md
Araxielfenix May 7, 2025
82a2922
Update file_context.txt
Araxielfenix May 8, 2025
f6f5246
Update index.js
Araxielfenix May 8, 2025
e752512
Update openai_operations.js
Araxielfenix May 8, 2025
15bf803
Update index.js
Araxielfenix May 8, 2025
30db2e4
Update index.js
Araxielfenix May 8, 2025
90cedfc
Update sharedData.js
Araxielfenix May 8, 2025
de8e42b
Update openai_operations.js
Araxielfenix May 8, 2025
3fc17d1
Update index.js
Araxielfenix May 8, 2025
3fba7b3
Update openai_operations.js
Araxielfenix May 8, 2025
424a383
Update openai_operations.js
Araxielfenix May 8, 2025
f6f45e0
Update openai_operations.js
Araxielfenix May 9, 2025
27f3469
Update file_context.txt
Araxielfenix May 14, 2025
d79b5f3
Update file_context.txt
Araxielfenix May 15, 2025
ee89444
Update file_context.txt
Araxielfenix May 19, 2025
6c9d2b0
Update openai_operations.js
Araxielfenix May 24, 2025
4ceab64
Update openai_operations.js
Araxielfenix May 24, 2025
88dcc9e
Update index.js
Araxielfenix May 24, 2025
6742d7e
Update index.js
Araxielfenix May 24, 2025
8ef5aa5
Update index.js
Araxielfenix May 24, 2025
ede1ac4
Update openai_operations.js
Araxielfenix May 24, 2025
9731d0e
Update openai_operations.js
Araxielfenix May 24, 2025
92c5531
Update index.js
Araxielfenix May 24, 2025
6283282
Update openai_operations.js
Araxielfenix May 24, 2025
f400718
Update index.js
Araxielfenix May 24, 2025
298ef5b
Update file_context.txt
Araxielfenix May 24, 2025
058b345
Update package.json
Araxielfenix May 24, 2025
665fcd7
Create discord-bot.js
Araxielfenix May 24, 2025
f575e40
Update package.json
Araxielfenix May 24, 2025
7893820
Update package.json
Araxielfenix May 24, 2025
b462437
Update package.json
Araxielfenix May 24, 2025
0c69bdd
Update discord-bot.js
Araxielfenix May 24, 2025
cb466af
Update package.json
Araxielfenix May 24, 2025
03bfe16
Update discord-bot.js
Araxielfenix May 24, 2025
53ca22c
Update package.json
Araxielfenix May 24, 2025
dbc965a
Update package.json
Araxielfenix May 24, 2025
b9a881d
Update package.json
Araxielfenix May 24, 2025
9fbb6da
Update index.js
Araxielfenix May 24, 2025
3e48ce9
Update index.js
Araxielfenix May 24, 2025
6408dbc
Update index.js
Araxielfenix May 24, 2025
601cc8a
Update discord-bot.js
Araxielfenix May 24, 2025
5bd712b
Update package.json
Araxielfenix May 24, 2025
2ccc636
Update index.js
Araxielfenix May 24, 2025
e434fc0
Update discord-bot.js
Araxielfenix May 24, 2025
c04c01c
Update discord-bot.js
Araxielfenix May 24, 2025
d7221c4
Update discord-bot.js
Araxielfenix May 24, 2025
47b76f6
Update package.json
Araxielfenix May 24, 2025
5ba323f
Update package.json
Araxielfenix May 24, 2025
88a66d3
Update index.js
Araxielfenix May 24, 2025
83cecb1
Update discord-bot.js
Araxielfenix May 24, 2025
d15479d
Update package.json
Araxielfenix May 24, 2025
34fe424
Update package.json
Araxielfenix May 24, 2025
cf87d16
Update index.js
Araxielfenix May 24, 2025
e7bf9a0
Update discord-bot.js
Araxielfenix May 24, 2025
752393c
Update index.js
Araxielfenix May 24, 2025
e86a70c
Update discord-bot.js
Araxielfenix May 24, 2025
ce4a0f6
Update discord-bot.js
Araxielfenix May 24, 2025
c0f18d7
Update index.js
Araxielfenix May 24, 2025
d670ddb
Update index.js
Araxielfenix May 24, 2025
2acbb74
Update index.js
Araxielfenix May 24, 2025
fc4b11d
Update index.js
Araxielfenix May 24, 2025
eceedb6
Update discord-bot.js
Araxielfenix May 24, 2025
16b217d
Update discord-bot.js
Araxielfenix May 24, 2025
6c39efd
Update discord-bot.js
Araxielfenix May 24, 2025
07c374c
Update discord-bot.js
Araxielfenix May 24, 2025
708c30f
Update index.js
Araxielfenix May 24, 2025
95ab1f4
Update index.js
Araxielfenix May 26, 2025
962a792
Update discord-bot.js
Araxielfenix May 26, 2025
daa28db
Update index.js
Araxielfenix May 26, 2025
69709db
Update package.json
Araxielfenix May 26, 2025
c1f2450
Update package.json
Araxielfenix May 26, 2025
233980c
Update discord-bot.js
Araxielfenix May 26, 2025
a2ac683
Update discord-bot.js
Araxielfenix May 26, 2025
d32e054
Update discord-bot.js
Araxielfenix May 26, 2025
9afbfcf
Update discord-bot.js
Araxielfenix May 26, 2025
0f8e340
Update discord-bot.js
Araxielfenix May 26, 2025
813eb15
Update discord-bot.js
Araxielfenix May 26, 2025
5fbfcb7
Update discord-bot.js
Araxielfenix May 26, 2025
b016770
Update discord-bot.js
Araxielfenix May 27, 2025
1afcce9
Update discord-bot.js
Araxielfenix May 27, 2025
09165a7
Update discord-bot.js
Araxielfenix May 27, 2025
8c03ffe
Update discord-bot.js
Araxielfenix May 27, 2025
abc691d
Update discord-bot.js
Araxielfenix May 28, 2025
283ef8d
Update discord-bot.js
Araxielfenix May 28, 2025
736c2ec
Update discord-bot.js
Araxielfenix May 28, 2025
c7edf2b
Update discord-bot.js
Araxielfenix May 28, 2025
d137c27
Update discord-bot.js
Araxielfenix May 28, 2025
e4ac3fd
Update discord-bot.js
Araxielfenix May 29, 2025
c3e82ae
Update discord-bot.js
Araxielfenix May 29, 2025
2e408e2
Update discord-bot.js
Araxielfenix May 29, 2025
9ead74a
Update discord-bot.js
Araxielfenix May 29, 2025
7f92921
Update openai_operations.js
Araxielfenix Jun 5, 2025
9b93a39
Update discord-bot.js
Araxielfenix Jun 5, 2025
13d9626
Update sharedData.js
Araxielfenix Jun 5, 2025
e434f58
Update index.js
Araxielfenix Jun 5, 2025
b54f0e2
Update openai_operations.js
Araxielfenix Jun 5, 2025
8bb16c7
Update index.js
Araxielfenix Jun 5, 2025
24deba4
Update sharedData.js
Araxielfenix Jun 5, 2025
fa8a325
Update index.js
Araxielfenix Jun 5, 2025
91d1de6
Update openai_operations.js
Araxielfenix Jun 5, 2025
3058981
Update discord-bot.js
Araxielfenix Jun 5, 2025
57a839c
Update discord-bot.js
Araxielfenix Jun 5, 2025
95af798
Update discord-bot.js
Araxielfenix Jun 5, 2025
b44be92
Update discord-bot.js
Araxielfenix Jun 12, 2025
254510f
Update index.js
Araxielfenix Jun 12, 2025
c6b498e
Update index.js
Araxielfenix Jun 12, 2025
01bf9fb
Update index.js
Araxielfenix Jun 12, 2025
50bd7bd
Update index.js
Araxielfenix Jun 12, 2025
1d94bfb
Update index.js
Araxielfenix Jun 12, 2025
373c2cd
Update index.js
Araxielfenix Jun 12, 2025
6dc376d
Update index.js
Araxielfenix Jun 12, 2025
9a7bb22
Update index.js
Araxielfenix Jun 12, 2025
bcdfd8e
Update index.js
Araxielfenix Jun 12, 2025
b7244ab
Update keep_alive.js
Araxielfenix Jun 12, 2025
d90111b
Update discord-bot.js
Araxielfenix Jun 12, 2025
19222e7
Update discord-bot.js
Araxielfenix Jun 12, 2025
c8d0e3d
Update discord-bot.js
Araxielfenix Jun 12, 2025
e9821fc
Update discord-bot.js
Araxielfenix Jun 12, 2025
9ca8937
Update discord-bot.js
Araxielfenix Jun 12, 2025
c811b5b
Update discord-bot.js
Araxielfenix Jun 12, 2025
af1c670
Update discord-bot.js
Araxielfenix Jun 12, 2025
7838293
Update discord-bot.js
Araxielfenix Jun 12, 2025
cf70d51
Update discord-bot.js
Araxielfenix Jun 12, 2025
0bf165e
Update index.js
Araxielfenix Jun 13, 2025
c7b89cf
Update index.js
Araxielfenix Jun 19, 2025
5e03761
Update index.js
Araxielfenix Jun 19, 2025
f215d38
Update index.js
Araxielfenix Jun 19, 2025
c54e768
Update index.js
Araxielfenix Jun 19, 2025
a784fda
Update index.js
Araxielfenix Jun 19, 2025
777f6e3
Update index.js
Araxielfenix Jun 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
148 changes: 53 additions & 95 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,148 +1,106 @@
# ChatGPT Twitch Bot Documentation
# AI Twitch Bot Documentation

**Important Notice: Cyclic is no longer supported for deployment. Please use Render for deploying this bot.**
Tu apoyo significa el mundo para mí ❤️

Your support means the world to me! ❤️
☕ [Apóyame con una donación](https://streamelements.com/araxielfenix/tip) ☕

☕ [Buy me a coffee to support me](https://www.buymeacoffee.com/osetinhas) ☕
Únete a nuestra comunidad de Discord:

Join our Discord community:

[https://discord.gg/pcxybrpDx6](https://discord.gg/pcxybrpDx6)
[https://discord.gg/mE5mQfu](https://discord.gg/mE5mQfu)

---

## Overview

This is a simple Node.js chatbot with ChatGPT integration, designed to work with Twitch streams. It uses the Express framework and can operate in two modes: chat mode (with context of previous messages) or prompt mode (without context of previous messages).
Este es un chatbot sencillo hecho en Node.js con integración de ChatGPT/OpenRouter, diseñado para trabajar con streams de Twitch. Utiliza el framework Express y puede operar en dos modos: modo chat (con contexto de mensajes previos) o modo prompt (sin contexto).

## Features

- Responds to Twitch chat commands with ChatGPT-generated responses.
- Can operate in chat mode with context or prompt mode without context.
- Supports Text-to-Speech (TTS) for responses.
- Customizable via environment variables.
- Deployed on Render for 24/7 availability.
- Responde a comandos de chat de Twitch con respuestas generadas por ChatGPT/OpenRouter.
- Puede operar en modo chat con contexto o en modo prompt sin contexto.
- Soporte para respuestas con texto a voz (TTS).
- Personalizable mediante variables de entorno.
- Implementado en Render para disponibilidad 24/7.

---

## Setup Instructions

### 1. Fork the Repository
### 1. Haz un Fork del Repositorio

Login to GitHub and fork this repository to get your own copy.
Inicia sesión en GitHub y haz un fork de este repositorio para obtener tu propia copia.

### 2. Fill Out Your Context File
### 2. Llena tu Archivo de Contexto

Open `file_context.txt` and write down all your background information for GPT. This content will be included in every request.
Abre `file_context.txt` y escribe toda la información de contexto que quieras incluir en cada solicitud de GPT.

### 3. Create an OpenAI Account
### 3. Crea una Cuenta en OpenAI

Create an account on [OpenAI](https://platform.openai.com) and set up billing limits if necessary.
Crea una cuenta en [OpenAI](https://platform.openai.com) y configura límites de facturación si es necesario.

### 4. Get Your OpenAI API Key
### 4. Obtén tu Clave API de OpenAI

Generate an API key on the [API keys page](https://platform.openai.com/account/api-keys) and store it securely.
Genera una clave API en la [página de claves API](https://platform.openai.com/account/api-keys) y guárdala de forma segura.

### 5. Deploy on Render
### 5. Implementa en Render

Render allows you to run your bot 24/7 for free. Follow these steps:
Render te permite ejecutar tu bot 24/7 de manera gratuita. Sigue estos pasos:

#### 5.1. Deploy to Render
#### 5.1. Implementar en Render

Click the button below to deploy:
Haz clic en el botón de abajo para implementar:

[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy)

#### 5.2. Login with GitHub
#### 5.2. Inicia Sesión con GitHub

Log in with your GitHub account and select your forked repository for deployment.
Inicia sesión con tu cuenta de GitHub y selecciona tu repositorio fork para la implementación.

### 6. Set Environment Variables
### 6. Configura las Variables de Entorno

Go to the variables/environment tab in your Render deployment and set the following variables:
Ve a la pestaña de variables/entorno en tu implementación de Render y configura las siguientes variables:

#### 6.1. Required Variables
#### 6.1. Variables Requeridas

- `OPENAI_API_KEY`: Your OpenAI API key.
- `OPENAI_API_KEY`: Tu clave API de OpenAI.

#### 6.2. Optional Variables
#### 6.2. Variables Opcionales

##### 6.2.1. Nightbot/Streamelements Integration Variable
- `GPT_MODE`: (default: `CHAT`) Mode of operation, can be `CHAT` or `PROMPT`.
##### 6.2.1. Variable de Integración con Nightbot/Streamelements
- `GPT_MODE`: (por defecto: `CHAT`) Modo de operación, puede ser `CHAT` o `PROMPT`.

##### 6.2.2. All Modes Variables
- `HISTORY_LENGTH`: (default: `5`) Number of previous messages to include in context.
- `MODEL_NAME`: (default: `gpt-3.5-turbo`) The OpenAI model to use. You can check the available models [here](https://platform.openai.com/docs/models/).
- `COMMAND_NAME`: (default: `!gpt`) The command that triggers the bot. You can set more than one command by separating them with a comma (e.g. `!gpt,!chatbot`).
- `CHANNELS`: List of Twitch channels the bot will join (comma-separated). (e.g. `channel1,channel2`; do not include www.twitch.tv)
- `SEND_USERNAME`: (default: `true`) Whether to include the username in the message sent to OpenAI.
- `ENABLE_TTS`: (default: `false`) Whether to enable Text-to-Speech.
- `ENABLE_CHANNEL_POINTS`: (default: `false`) Whether to enable channel points integration.
- `COOLDOWN_DURATION`: (default: `10`) Cooldown duration in seconds between responses.
##### 6.2.2. Variables para Todos los Modos
- `HISTORY_LENGTH`: (por defecto: `5`) Número de mensajes previos a incluir en el contexto.
- `MODEL_NAME`: (por defecto: `gpt-3.5-turbo`) El modelo de OpenAI a usar. Puedes revisar los modelos disponibles [aquí](https://platform.openai.com/docs/models).
- `COMMAND_NAME`: (por defecto: `!gpt`) El comando que activa el bot. Puedes configurar más de un comando separándolos con comas (e.g., `!gpt,!chatbot`).
- `CHANNELS`: Lista de canales de Twitch en los que el bot participará (separados por comas). (e.g., `canal1,canal2`; no incluyas www.twitch.tv)
- `SEND_USERNAME`: (por defecto: `true`) Si se incluye el nombre de usuario en el mensaje enviado a OpenAI.
- `ENABLE_TTS`: (por defecto: `false`) Si se habilita Texto a Voz.
- `ENABLE_CHANNEL_POINTS`: (por defecto: `false`) Si se habilita la integración de puntos del canal.
- `COOLDOWN_DURATION`: (por defecto: `10`) Duración en segundos del tiempo de enfriamiento entre respuestas.

#### 6.3. Twitch Integration Variables
#### 6.3. Variables de Integración con Twitch

- `TWITCH_AUTH`: OAuth token for your Twitch bot.
- Go to https://twitchapps.com/tmi/ and click on Connect with Twitch
- Copy the token from the page and paste it in the TWITCH_AUTH variable
- ⚠️ THIS TOKEN MIGHT EXPIRE AFTER A FEW DAYS, SO YOU MIGHT HAVE TO REPEAT THIS STEP EVERY FEW DAYS ⚠️
- `TWITCH_AUTH`: Token OAuth para tu bot de Twitch.
- Ve a https://twitchapps.com/tmi/ y haz clic en "Connect with Twitch".
- Copia el token de la página y pégalo en la variable `TWITCH_AUTH`.
- ⚠️ ESTE TOKEN PUEDE EXPIRAR EN UNOS DÍAS, ASÍ QUE PODRÁS NECESITAR REPETIR ESTE PASO ⚠️.

### 7. Text-To-Speech (TTS) Setup
### 7. Configuración de Texto a Voz (TTS)

Your Render URL (e.g., `https://your-twitch-bot.onrender.com/`) can be added as a widget to your stream for TTS integration.
Tu URL de Render (e.g., `https://tu-bot-de-twitch.onrender.com/`) puede ser agregada como un widget a tu stream para integración de TTS.

---

## Usage

### Commands

You can interact with the bot using Twitch chat commands. By default, the command is `!gpt`. You can change this in the environment variables.

### Example

To use the `!gpt` command:

```twitch
!gpt What is the weather today?
```
### Comandos

The bot will respond with an OpenAI-generated message.

### Streamelements and Nightbot Integration

#### Streamelements

Create a custom command with the response:

```twitch
$(urlfetch https://your-render-url.onrender.com/gpt/"${user}:${queryescape ${1:}}")
```
Puedes interactuar con el bot usando comandos en el chat de Twitch. Por defecto, el comando es `!gpt`. Puedes cambiarlo en las variables de entorno.

#### Nightbot
### Ejemplo

Create a custom command with the response:
Para usar el comando `!gpt`:

```twitch
!addcom !gptcmd $(urlfetch https://twitch-chatgpt-bot.onrender.com/gpt/$(user):$(querystring))
```

Replace `your-render-url.onrender.com` with your actual Render URL.
Replace `gptcmd` with your desired command name.
Remove `$(user):` if you don't want to include the username in the message sent to OpenAI.
---

## Support

For any issues or questions, please join our [Discord community](https://discord.gg/pcxybrpDx6).

Thank you for using the ChatGPT Twitch Bot! Your support is greatly appreciated. ☕ [Buy me a coffee](https://www.buymeacoffee.com/osetinhas) ☕

---

### Important Notice

**Cyclic is no longer supported for deployment. Please use Render for deploying this bot.**

---
!gpt ¿Cómo estará el clima hoy?
Loading