Skip to content

A Remastered and fully working Auction House Announcer With Discord Webhook

Notifications You must be signed in to change notification settings

jacatinelord/lua-AuctionHouse-discord-announcer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

AuctionHouse-Discord-Bot

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.

image

Setup Instructions

1. Setting Up Discord Webhook

  • First, create a Webhook in your Discord Server.
    • Follow this link for instructions.
    • Additionally, refer to the second image here.
    • Copy the Webhook URL from the last image here.

2. Configuring the Bot

  • 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",

3. Configure your Discord Emojis

  • 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.

4. Import Item Display Data to your World Database

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.

5. Installation

  • Place the AuctionHouse_Bot.lua file into your Core/lua_scripts folder.

6. Finalizing Setup

  • 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.

Acknowledgement

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!

About

A Remastered and fully working Auction House Announcer With Discord Webhook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%