Skip to content

Safety

Everything that decides when a rotation must not act. A gate added here applies to every rotation without touching them.

5 entry points, 5 documented.

Safety.Blocked

lua
Safety.Blocked()

Returns a short reason string while the bot must stay quiet, or nil when it is free to act.

Safety.lua

Safety.Panic

lua
Safety.Panic(reason)

Stops the bot and latches until cleared. The panic key and repeated script errors both land here.

Safety.lua

Safety.Clear

lua
Safety.Clear()

Clears the panic latch and the error counters. /nyx on does this for you.

Safety.lua

Safety.ReportError

lua
Safety.ReportError(message)

Called with the message from a failed pcall. A rotation that errors once per tick would otherwise spam the chat frame forever; five inside ten seconds is treated as broken and stops the bot.

Safety.lua

Safety.BindPanicKey

lua
Safety.BindPanicKey()

Binding changes are protected in combat, so this is retried from the ticker until it takes. InCombatLockdown and SetOverrideBindingClick come from FrameXML, not the executable, so neither exists at the login screen.

Safety.lua

API reference generated from source.