Posted 26 November 2016 - 03:45 PM
This is a port of cowsay for Computercraft!
It will show you a ASCII art with a custom text.
Usage: cowsay -f <picture> <text>
If you run it without -f, it will use the cow. If you want to see all aviable pictures, run
cowsay -l
The pictures are taken from the original cowsay, made by Tony Monroe.Install:
wget https://raw.githubusercontent.com/Wilma456/Computercraft/master/Shell/cowsay.lua cowsay
--Or through packman
packman install cowsay
If you want to want add a picture, add this code to the file:
function cow.yourimage(text)
--Here you can write code
end
If you write "cowsay -f yourimage Say Hello" , it will call your function with "Say Hello" as Args. And you can make a pull request to share it at https://github.com/W...hell/cowsay.luaHave fun!