Webhook Discord
ScalaPlot può inviare notifiche automatiche a un canale Discord tramite webhook, per tenere traccia dell’attività sui plot direttamente dal tuo server Discord.
Configurazione
Sezione intitolata “Configurazione”webhooks: claim_webhook_url: https://discord.com/api/webhooks/...... report_webhook_url: https://discord.com/api/webhooks/...... star_webhook_url: https://discord.com/api/webhooks/......| Webhook | Evento che lo attiva |
|---|---|
claim_webhook_url |
Un giocatore rivendica un nuovo plot |
report_webhook_url |
Un giocatore segnala un plot |
star_webhook_url |
Un giocatore vota (rate) un plot |
Come creare un webhook Discord
Sezione intitolata “Come creare un webhook Discord”- Nel tuo server Discord, apri Impostazioni canale → Integrazioni → Webhook.
- Crea un nuovo webhook e copia l’URL generato.
- Incolla l’URL nel campo corrispondente in
config.yml. - Ricarica la configurazione con
/plot reload.
Se un campo webhook viene lasciato vuoto, la relativa notifica semplicemente non verrà inviata: non è necessario configurare tutti e tre i webhook.