Added test throw function
This commit is contained in:
parent
fc64f35512
commit
448d318dbe
1 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,10 @@ function fuckOff(args)
|
|||
end
|
||||
end
|
||||
|
||||
function explodeTheWorld(args)
|
||||
throw("Test Exception")
|
||||
end
|
||||
|
||||
core.modules.hello = {
|
||||
version = 69420,
|
||||
desc = "Hello world!",
|
||||
|
@ -26,5 +30,11 @@ core.modules.hello = {
|
|||
desc = "Prints either \"Hello World!\" or the arguments passed to it.",
|
||||
func = fuckOff,
|
||||
},
|
||||
throw = {
|
||||
usage = "throw <text>",
|
||||
desc = "Explodes the SF chip on purpose.",
|
||||
func = explodeTheWorld,
|
||||
},
|
||||
},
|
||||
|
||||
}
|
Loading…
Reference in a new issue