Code:
frame:RegisterEvent("ADDON_LOADED")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:RegisterEvent("CHAT_MSG_ADDON")
frame:RegisterEvent("CHAT_MSG_WHISPER")
--Default Settings, if we don't have them saved this is what gets put in.
Ni_DefaultSettings = {
["msg"] = "Hello. Would you like to join my guild? Send me a PM with Yes or No. If you say no you will not get this message again.",
["msg2"] = "This is an optional message. Not included yet. Yet. Yet. Yet.",
["msgPlayer"] = false,
["verbose"] = true,
["autostart"] = true,
["msginvite"] = false,
["instant"] = false,
["levelStart"] = 1,
["levelEnd"] = 85,
}
--Easier chat function
local function NinjaMessage(text)
A little warning: while this function is enabled everyone sending you a whisper with "Yes" or "Invite" will get automatically invited to the guild. So use with caution.