Sorry I didn't see this earlier.
Macro to post to general.
Code:
/run local n=GetChannelName("General")if n then SendChatMessage(("Looking for more, PST for invite. Currently in group: %d members"):format(GetNumGroupMembers()or 1),"CHANNEL",nil,n)end
Addon to auto invite anybody that says "invite" in general or whisper. Use /ashraninv to toggle on/off. Defaults to off.
Code:
local f=CreateFrame("Frame")
f:SetScript("OnEvent",function(_,e,m,s,_,_,_,_,_,id) if (e=="CHAT_MSG_WHISPER") or (id==GetChannelName("General")) then if m:lower():find("invite") then InviteUnit(s) end end end)
local state=false
SlashCmdList.ASHRANINV = function() state=not state if state then print("Now auto-inviting.") f:RegisterEvent("CHAT_MSG_WHISPER") f:RegisterEvent("CHAT_MSG_CHANNEL") else print("No longer auto-inviting.") f:UnregisterEvent("CHAT_MSG_WHISPER") f:UnregisterEvent("CHAT_MSG_CHANNEL") end end
SLASH_ASHRANINV1 = "/ashraninv"
How to use.
Both are untested. Let me know if they don't work.