summaryrefslogtreecommitdiff
path: root/cowsay/cowsay.lua
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-02-19 11:12:28 +0900
committerFreeArtMan <dos21h@gmail.com>2015-02-19 11:12:28 +0900
commitb714e8986a5d31ca2f118e0c37e07943c989f866 (patch)
tree4a2085f5020b8e3733f96ca1d8bbc78efa537221 /cowsay/cowsay.lua
parentbf168400819ebfffb0128d5a96bbb6a5c40e1360 (diff)
downloadcode-snippets-b714e8986a5d31ca2f118e0c37e07943c989f866.tar.gz
code-snippets-b714e8986a5d31ca2f118e0c37e07943c989f866.zip
Added some new pics
Diffstat (limited to 'cowsay/cowsay.lua')
-rw-r--r--cowsay/cowsay.lua40
1 files changed, 39 insertions, 1 deletions
diff --git a/cowsay/cowsay.lua b/cowsay/cowsay.lua
index 3aa1e6f..6f0588e 100644
--- a/cowsay/cowsay.lua
+++ b/cowsay/cowsay.lua
@@ -1,5 +1,5 @@
-
+-- my drawing
function ascii_nerd( name )
local s = ""
s = s .. [[
@@ -16,8 +16,46 @@ function ascii_nerd( name )
return s
end
+--from beej.us
+function ascii_goat( text )
+ local s = ""
+ s = s .. [[ )_)
+ ___|oo) ]]
+ s = s .. text .. "\n"
+ s = s .. [['| |\_|
+ |||| #
+ ````]]
+ return s
+end
+
+--http://ascii.co.uk/art/shoot
+function ascii_shoot( name )
+ local s = ""
+ if name == nil then name = "" else
+ name = "("..name..")" end
+ s = s .. [[
+ O
+ <\==- - - - - - - ---
+ ./ \ _/\_\O ]] .. name .. [[
+]]
+ return s
+end
+
+function ascii_lurker( name )
+end
+
+function ascii_hunt( name )
+end
+
+function ascii_pc( pccmd )
+end
+
for k,v in ipairs(arg) do
if v == "nerd" then
print( ascii_nerd( arg[k+1] ) )
+ elseif v == "goat" then
+ print( ascii_goat( arg[k+1] ) )
+ elseif v == "shoot" then
+ print( ascii_shoot( arg[k+1] ) )
end
end