Skip to content

/discord

Script-provided

Registered by discord. Start it with /lua run discord — that single script boots the whole Discord integration and registers both /discord (this page, outbound) and /discordinbox (inbound).

Syntax

/discord status|test|on|off

Description

Report or control the outbound Discord webhook that announces loot, incoming tells, and matching auction lines to a channel. No relay bot is needed for this direction — just a webhook URL.

Each source is gated separately in config/discord/discord.lua (announce_self_loot, announce_other_loot, announce_tells, announce_auction); /discord on|off is the master switch for the whole outbound side.

Auction watch

announce_auction watches the world channel and forwards any Auction line whose text matches one of auction_keywords (case-insensitive substring, e.g. { "WTS Krono" }). It narrows to lines that actually say "tells Auction" first, so a Trader-channel post with the same words won't trigger it.

Subcommands

Subcommand What
status (default) Print webhook readiness (and why not, if unavailable), enabled/announce-flag state, the queued and announced counts, and the config file path.
test Send a test message to the webhook. Refuses with a reason if the webhook isn't available.
on / off Enable or disable the whole outbound side (enabled); persisted to config/discord/discord.lua.

on/off here is the master switch for the outbound announcer; the individual announce_* flags decide which sources it forwards. Enabling the inbound command relay is a separate switch — see /discordinbox.

Examples

/lua run discord
/discord status
/discord test
/discord off

See also