This is an Azerothcore-based core script designed to work with any core that utilizes the latest Eluna Lua Engine or Lua Modules. The Lua script utilizes Webhooks to push auction house information to a designated Discord channel. It's compatible with Trinity, Mangos, and other similar cores.
- First, create a Webhook in your Discord Server.
- Modify the Lua script
AuctionHouse_Bot.lua
:- Replace
YOUR_WEBHOOK_URL
in line 2 with your actual Webhook URL.- For example:
auctionWebhookURL = "https://discord.com/api/webhooks/1209285815771992114/ILp_CrQINbruBCCh_M-FvWi4UfpQeN0mk0GMRtXXRQQQKM08iXXMf8KasWi2rBbEvx_A",
- For example:
- Replace
- In your Discord Server Settings navigate to the Emoji section and add 3 individual emojis to represent gold/silver/copper.
- Once added, in any channel type
\:gold:
(or whatever you named your gold emoji) and it should output something that looks like this:<:gold:1209645132832575578>
- Repeat this step for silver and copper and place the provided ID's into the corresponding EmojiID in your auctionConfig.
By default thumbnailIcons
is set to true
. This requires that your itemdisplayinfo.dbc
data is imported into your world database. This DBC contains the name of the icon images used by each item. Without it, the script has no way of knowing which icons to display.
You can forego this step by setting thumbnailIcons
to false
in the auctionConfig
, but your embeds will not have thumbnail icons.
If you have custom icons on your server, it will be necessary to host your icons yourself and set the itemIconDB
to a web accessible URI.
- Place the
AuctionHouse_Bot.lua
file into yourCore/lua_scripts
folder.
- Restart your server or use the command
.reload eluna
. - Objects added to the auction house will now automatically push information to the designated Discord channel.
Special thanks to @Niam5 for fixing and improving the codebase to ensure proper functionality.
Discord embeds improved by ReynoldsCahoon.
Feel free to reach out for any assistance or feedback!