lsft/modules/server/hello.txt

40 lines
833 B
Text
Raw Normal View History

2021-12-14 20:11:04 -05:00
--@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
2022-03-26 04:37:16 -04:00
function explodeTheWorld(args)
throw("Test Exception")
end
2021-12-14 20:11:04 -05:00
core.modules.hello = {
version = 69420,
desc = "Hello world!",
2021-12-14 20:11:04 -05:00
commands = {
helloworld = {
usage = "helloworld <text>",
desc = "Prints either \"Hello World!\" or the arguments passed to it.",
func = fuckOff,
},
2022-03-26 04:37:16 -04:00
throw = {
usage = "throw <text>",
desc = "Explodes the SF chip on purpose.",
func = explodeTheWorld,
},
2021-12-14 20:11:04 -05:00
},
2022-03-26 04:37:16 -04:00
2021-12-14 20:11:04 -05:00
}