Last active
April 29, 2020 18:04
-
-
Save Gaichu/1c5b63c0093512b72779 to your computer and use it in GitHub Desktop.
COWS R AWSUM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dont work