--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]] local ____exports = {} local _Tinkr, _Mekanome = ... local Tinkr = _Tinkr local Mekanome = _Mekanome local meka = Tinkr.Util.Commands:New("meka") --- Registers a commant to be used under the "meka" namespace -- -- @param prefix /meka {prefix} -- @param callback The function to be called when the command is entered. -- @param helpText Optional text to help describe the command. local function Register(prefix, callback, helpText) meka:Register(prefix, callback, helpText) end --- Initializes core commands. local function Init() Register( "toggle", function() if Mekanome.enabled == false then Mekanome.Print({text = "Started"}) Mekanome.enabled = true else Mekanome.Print({text = "Stopped"}) Mekanome.enabled = false end end, "Toggles Mekanome." ) end local _CommandManager = {Register = Register, Init = Init} Mekanome.CommandManager = _CommandManager ____exports.default = {} return ____exports