Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-02-24, 02:22 AM   #1
atshn
A Deviate Faerie Dragon
Join Date: Feb 2024
Posts: 19
Question about auto replying to whispers

Tested this out before my sub ran out. It auto replies the way I want it to, but I got to thinking about whisper spam. For example, player 1 whispers me and gets my auto reply. Then moments later another player whispers me and gets my auto reply. Will player 1 get an auto reply from me every time someone new whispers me with this code? I'm hoping that's not the case and that it will only auto reply to the last person that sent me a whisper. I hope that makes sense.

Code:
local EventFrame=CreateFrame("Frame")
EventFrame:RegisterEvent("CHAT_MSG_WHISPER")
EventFrame:SetScript("OnEvent",function(self,event,msg,sender,...)
    
    SendChatMessage("AUTO REPLY MESSAGE HERE","WHISPER",nil,sender)
  
  end)

Last edited by atshn : 03-02-24 at 02:26 AM.
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Question about auto replying to whispers


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off