# Parámetros generales del plugin

En esta sección se definen los parámetros o las opciones en el fichero de configuración que son obligatorias para la ejecución del plug-in, muchos plug-ins requieren un par de parámetros obligatorios y luego muchos opcionales, aquí describiremos lo mínimo imprescindible para la ejecución, todos los parámetros opcionales los dejaremos en la sección de parámetros opcionales.

##### Ej: Conector Discord CLI. Necesita solo un par de parámetros para funcionar, pero opcionalmente tiene muchos más así que en esta sección definiremos los mínimos:

<span style="font-size: 11pt; font-family: 'Open Sans',sans-serif; color: #767171; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Como hemos visto en la ayuda, el plugin requiere de 2 parámetros obligatorios, la URL del webhook que hemos obtenido en los primeros pasos y los datos que se envían en formato clave valor separado por comas.</span>

<span style="font-size: 11pt; font-family: 'Open Sans',sans-serif; color: #767171; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Por ejemplo: </span>

```
python3 pandora_discord_cli.py -u <webhook-url> -d "Data=5, Agent=Test, Module=Ping"
```

<span style="font-size: 11pt; font-family: 'Open Sans',sans-serif; color: #767171; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Si el envío es correcto veremos el mensaje “</span><span style="font-size: 11pt; font-family: 'Open Sans',sans-serif; color: #767171; background-color: transparent; font-weight: 400; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Message sent. status code: 200</span><span style="font-size: 11pt; font-family: 'Open Sans',sans-serif; color: #767171; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">” y veremos también un tip que nos indica que si queremos enviar la gráfica de este módulo debemos pasar los parámetros de la API de pandora, por ahora lo ignoraremos. Veremos esta configuración más adelante.</span>

<span style="font-size: 11pt; font-family: 'Open Sans',sans-serif; color: #767171; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="border: none; display: inline-block; overflow: hidden; width: 624px; height: 125px;">![](https://lh5.googleusercontent.com/rLUVhwlAw5YV0RgGbCnB1n0djEoJyQfNyCByhSWr83Bx9N0eGXEtIuoA6_hxLokJGFT6wXf0byewjA_jwmhTvURbfEilCDaEhbHDSJDtiWCnQmaFrKyXhgWg_wiHHBNX3_mpf2Wo)</span></span>

**Si vamos a nuestro chat de Discord veremos que hemos recibido el mensaje.**

<span style="font-size: 11pt; font-family: 'Open Sans',sans-serif; color: #767171; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="border: none; display: inline-block; overflow: hidden; width: 624px; height: 339px;">![](https://lh5.googleusercontent.com/YQuvyMWfiqJDsnLPSk7x6igNhx1Yg8l2ljUCSaKc02D6zhSwwERuwlPQtkP0d6_rlYsx8oXgJY0fXT3oiCIsTnsbCMUYfrWbkeUfpE_tyw_gAjbfaMEISxC_EKzAHXn0un8b-a5z)</span></span>

<span style="font-weight: normal;">  
  
</span>