Thread Tools Display Modes
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
03-02-24, 09:38 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,879
Originally Posted by atshn View Post
I'm hoping that's not the case and that it will only auto reply to the last person that sent me a whisper.
Then you should be fine as it's only (based on code shown) replying to sender
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
03-02-24, 12:01 PM   #3
atshn
A Deviate Faerie Dragon
Join Date: Feb 2024
Posts: 19
Thank you!
  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