Salta ai contenuti

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.

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
  1. Nel tuo server Discord, apri Impostazioni canale → Integrazioni → Webhook.
  2. Crea un nuovo webhook e copia l’URL generato.
  3. Incolla l’URL nel campo corrispondente in config.yml.
  4. 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.