Skip to content

Instantly share code, notes, and snippets.

@Gaichu
Last active April 29, 2020 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gaichu/1c5b63c0093512b72779 to your computer and use it in GitHub Desktop.
Save Gaichu/1c5b63c0093512b72779 to your computer and use it in GitHub Desktop.
COWS R AWSUM
-- cowsay.lua
local cow = {
[[
\ ^__^
\ (oo)\_______
(__)\ )\/\\
||----w |
|| ||
]]
}
local maxLen, param1 = 2^10, assert(arg[1], "No argument given")
for i=1,#arg do
if i == 1 then
if string.len(param1) <= maxLen then
print(" " .. param1 .. " " .. cow[1])
end
end
end
Copy link

ghost commented Apr 29, 2020

dont work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment