Skip to main content
LiricCasino can send rich Discord embeds automatically whenever a notable event occurs in-game — a jackpot on the Slots 777, an unusually large win on any game, or a Lottery draw with a winner. All webhook behaviour is configured in webhooks.yml, and every webhook type is disabled by default so you opt in only to the notifications you want.

Webhook types

Jackpot

Fires when a player lands the 777 jackpot on the Slot Machine (100× multiplier). Ideal for hyping big moments on your Discord server.

Big Win

Fires when any player wins an amount that exceeds the configurable min-amount threshold (default: $50,000) on any game.

Lottery Winner

Fires when a scheduled or force-started lottery draw produces a winner, showing the winning number and prize amount.

webhooks.yml structure

Embed placeholders

Setting up a Discord webhook

1

Open your Discord server settings

In Discord, right-click your server name and choose Server Settings, then navigate to Integrations → Webhooks.
2

Create a new webhook

Click New Webhook. Give it a recognisable name (e.g. LiricCasino) and select the channel where notifications should appear. You can also upload a custom avatar.
3

Copy the webhook URL

Click Copy Webhook URL. The URL will look like:
4

Paste the URL into webhooks.yml

Open plugins/CasinoLiric/webhooks.yml and replace the placeholder URL for each webhook type you want to enable:
5

Enable the master switch and individual webhooks

Set the top-level enabled flag to true, and confirm that you have set a valid URL for each webhook type you intend to use. Webhook types with a placeholder URL (YOUR_ID/YOUR_TOKEN) will not fire.
6

Reload the plugin

Apply your changes without restarting the server:
You should see a confirmation message in chat. Test by triggering the relevant in-game event or using /casino loteria forcestart to verify the Lottery webhook.

Additional configuration tips

You can point multiple webhook types at the same Discord channel (or different channels) simply by using the same or different URLs. There is no limit to how many channels you notify.
Webhook URLs contain a secret token. Do not share webhooks.yml publicly or commit it to a public repository. Anyone with the URL can post messages to your channel.

Role mentions

Set mention-role to notify a role when a webhook fires:
To ping everyone in the channel instead, use "@everyone". Leave the value empty ("") for no mention.

Adjusting the big-win threshold

If you find the big-win webhook fires too often or too rarely, raise or lower min-amount to match your server’s economy scale:
Run /casino reload after every change to webhooks.yml to apply it immediately.