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

βš™ Settings

🎨 Theme
Editor appearance
🌐 Language
Interface language