lsft/modules/server/hello.txt

40 lines
No EOL
833 B
Text

--@name
--@author
--@server
function fuckOff(args)
if args[1] ~= nil then
local output = ""
for i, v in pairs(args) do
output = output..v.." "
end
output = string.trimRight(output)
print(output)
else
print("Hello World!")
end
end
function explodeTheWorld(args)
throw("Test Exception")
end
core.modules.hello = {
version = 69420,
desc = "Hello world!",
commands = {
helloworld = {
usage = "helloworld <text>",
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,
},
},
}