Skip to content

Instantly share code, notes, and snippets.

@nebularg
Created July 20, 2020 04:27
Show Gist options
  • Save nebularg/c3988067ae752ad3e5134e8d6e637299 to your computer and use it in GitHub Desktop.
Save nebularg/c3988067ae752ad3e5134e8d6e637299 to your computer and use it in GitHub Desktop.
local f = CreateFrame("Frame")
f:SetScript("OnEvent", function(self, event)
if Transcriptor:IsLogging() then
Transcriptor:StopLog(event ~= "CHALLENGE_MODE_COMPLETED" and event ~= "PLAYER_ENTERING_WORLD")
end
if event ~= "PLAYER_ENTERING_WORLD" and event ~= "CHALLENGE_MODE_COMPLETED" then
Transcriptor:StartLog(event ~= "CHALLENGE_MODE_START")
end
end)
f:RegisterEvent("PLAYER_ENTERING_WORLD") -- left early
f:RegisterEvent("CHALLENGE_MODE_START")
f:RegisterEvent("CHALLENGE_MODE_COMPLETED")
f:RegisterEvent("ENCOUNTER_START")
f:RegisterEvent("ENCOUNTER_END")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment