You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
405 B
Lua
20 lines
405 B
Lua
local basicCommands = {}
|
|
|
|
function basicCommands.helloWorld()
|
|
return("Hello world!")
|
|
end
|
|
|
|
function basicCommands.figlet(string)
|
|
local figleted = io.popen("figlet ".. string)
|
|
local result = figleted:read("*all")
|
|
return result
|
|
end
|
|
|
|
function basicCommands.cowsay(string)
|
|
local figleted = io.popen("cowsay ".. string)
|
|
local result = figleted:read("*all")
|
|
return result
|
|
end
|
|
|
|
return basicCommands
|