Pollo CODE
My Extension
Terminal
Output
Problems
🐔 Pollo Assistance CODE v2.0
Press ▶ Run to test your extension
📖 Manual
💬 Test

🐔 Pollo CODE Manual

📂 File Types

.pol — AI control, data, commands (main logic)

.html .css .js — Visual/graphic output

.py .json .md — Data & scripts

Important: AI logic must go in .pol files. Use other languages for UI/graphics only.

📝 Comments

# This is a comment
# Use # for comments (NOT //)

🏷 Metadata (Required in main.pol)

@nombre: "Extension Name"
@version: "1.0.0"
@autor: "you@email.com"
@descripcion: "What it does"
@precio: 0

📦 Variables

variable name = "Pollo"
variable age = 25
variable active = verdadero
variable list = [1, 2, 3]

⚙ Functions

funcion greet(name) {
    retornar "Hello " + name
}

variable greeting = greet("User")

🔀 Conditionals

si (age >= 18) {
    mostrar("Adult")
} sino si (age >= 13) {
    mostrar("Teen")
} sino {
    mostrar("Child")
}

🔁 Loops

para (variable i = 0; i < 10; i++) {
    mostrar(i)
}

mientras (counter < 100) {
    counter = counter + 1
}

para_cada (item en list) {
    mostrar(item)
}

💬 Chat API

PolloAPI.chat.enviar("text") — Send message to chat

PolloAPI.chat.obtenerUltimo() — Get last message

PolloAPI.chat.obtenerHistorial(n) — Get chat history

🤖 AI API

PolloAPI.ia.ask("question?") — Ask the AI

PolloAPI.ia.analizarSentimiento(text) — Sentiment analysis

🌐 Web API

PolloAPI.web.buscar("query") — Web search

📊 Info API

PolloAPI.info.MessageUsed() — Messages used

PolloAPI.info.Plan() — User plan

PolloAPI.info.Usuario() — User info

🛠 Utilities

PolloAPI.utilidades.fecha() — Current date

PolloAPI.utilidades.random(min, max) — Random number

PolloAPI.utilidades.esperar(ms) — Wait milliseconds

🎯 Events

# Runs when extension loads
funcion iniciar() {
    PolloAPI.chat.enviar("Started!")
}

# Runs on each user message
cuando mensaje_recibido(msg) {
    si (msg contiene "hello") {
        PolloAPI.chat.enviar("Hi! 👋")
    }
}

🎨 Artifacts

# Show custom artifact
PolloAPI.chat.enviar("artefacto_style_[1]")

# Show artifact from URL
PolloAPI.chat.enviar("artefacto_[\"https://example.com\"]")

⚠ Syntax Rules

✅ Use # for comments — ❌ NOT //

✅ Use "text " + variable — ❌ NOT template literals

✅ AI logic in .pol — ❌ NOT in .html/.js

🐔 Test chat ready. Run your extension first!
POL Ln 1, Col 1 0 B

💰 Tu cuota de ingresos

Cuando otros usuarios compran o suscriben a tu extensión, tú te llevas un porcentaje del precio. Aquí están los dos niveles:

FREE developer
Sin coste. Publica extensiones sin pagar nada.
35%
PREMIUM developer
Más del doble que FREE. Solo si tienes Pollo Premium.
80%
El porcentaje restante (65% / 20%) cubre la infraestructura de Pollo (hosting, CDN, procesamiento de pagos, soporte y la cuota de los proveedores de IA). Tu pago se calcula al final de cada mes y se transfiere si superas 10€.

📂 Cargar proyecto de Files

Proyectos guardados con ☁ Save to Files. Click en uno para abrir todos sus archivos en el editor.

Cargando…

⚙ Settings

🎨 Theme
Editor appearance
🌐 Language
Interface language