Added test throw function

This commit is contained in:
Logan G 2022-03-26 02:37:16 -06:00
parent fc64f35512
commit 448d318dbe
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -17,6 +17,10 @@ function fuckOff(args)
end end
end end
function explodeTheWorld(args)
throw("Test Exception")
end
core.modules.hello = { core.modules.hello = {
version = 69420, version = 69420,
desc = "Hello world!", desc = "Hello world!",
@ -26,5 +30,11 @@ core.modules.hello = {
desc = "Prints either \"Hello World!\" or the arguments passed to it.", desc = "Prints either \"Hello World!\" or the arguments passed to it.",
func = fuckOff, func = fuckOff,
}, },
throw = {
usage = "throw <text>",
desc = "Explodes the SF chip on purpose.",
func = explodeTheWorld,
},
}, },
} }