aboutsummaryrefslogtreecommitdiffstats
path: root/cowsay_weechat/cowsay.lua
diff options
context:
space:
mode:
Diffstat (limited to 'cowsay_weechat/cowsay.lua')
-rw-r--r--cowsay_weechat/cowsay.lua52
1 files changed, 49 insertions, 3 deletions
diff --git a/cowsay_weechat/cowsay.lua b/cowsay_weechat/cowsay.lua
index d29614b..03228d2 100644
--- a/cowsay_weechat/cowsay.lua
+++ b/cowsay_weechat/cowsay.lua
@@ -98,6 +98,47 @@ function ascii_juice( name1, name2 )
return s
end
+--------------------------------------------------------------------------------
+-- http://ascii.co.uk/art/coffee
+function ascii_coffee( name )
+ local s = ""
+ if name == nil then name = "Single Expresso" end
+ if name ~= nil then name = "Single Expresso for " .. name end
+
+s = s .. [[ .-=-.
+ ,|`~'|
+ `| | ]] .. name .. [[
+ `~']]
+
+ return s
+end
+--------------------------------------------------------------------------------
+--http://ascii.co.uk/art/pool
+function ascii_pool( name )
+ local s = ""
+ if name == nil then name = "" end
+
+s = s .. [[,_____,_____, 6 __
+T\ :. .^\,_/_\_I_ ]] .. name .. [[
+I ^T=====;=====T /|
+ I I _|_|]]
+
+ return s
+end
+--------------------------------------------------------------------------------
+--http://ascii.co.uk/art/cat
+function ascii_cat( text )
+ local s = ""
+ if text == nil then text = "mmeeoowwrr!" end
+
+s = s .. [[
+ ) _. ]] .. text .. [[
+ (___)''
+ / ,_,/
+ /'"\ )\]]
+ return s
+end
+
function cs_print_list()
weechat.print("","buf "..weechat.current_buffer())
weechat.print(weechat.current_buffer(),"/msg #mainlv br br")
@@ -107,12 +148,17 @@ function cs_command( cmd, args )
cmd = string.lower(cmd)
weechat.print("",cmd..":"..args)
if cmd == "nerd" then
- --weechat.print("",ascii_nerd(arg1))
weechat.command( weechat.current_buffer(), ascii_nerd(args) )
elseif cmd == "goat" then
weechat.command( weechat.current_buffer(), ascii_goat(args) )
elseif cmd == "shoot" then
weechat.command( weechat.current_buffer(), ascii_shoot(args) )
+ elseif cmd == "coffee" then
+ weechat.command( weechat.current_buffer(), ascii_coffee(args) )
+ elseif cmd == "pool" then
+ weechat.command( weechat.current_buffer(), ascii_pool(args) )
+ elseif cmd == "cat" then
+ weechat.command( weechat.current_buffer(), ascii_cat(args) )
else
weechat.print(weechat.current_buffer(), "Unknown command")
end
@@ -140,11 +186,11 @@ end
weechat.register("cowsay", "FreeArtMan", "0.0.1", "Beerware", "ASCII drawing in commanline", "", "")
weechat.hook_command("cowsay",
"cowsay", -- description
- "[shoot <name>, goat <name>, juice <line1> <line2>, nerd <name>", -- args
+ "[shoot <name>, goat <name>, juice <line1> <line2>, nerd <name>, coffee <text>, pool <name>, cat <text>", -- args
" list: \n"..
" add: \n"..
" del: \n\n"..
"If no command is given, all phrases are listed.",
- "nerd|juice|goat|shoot", -- completion
+ "nerd|juice|goat|shoot|coffee|pool|, -- completion
"cowsay_init",
"") \ No newline at end of file