This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Wilma456's profile picture

Cowsay for Computercraft

Started by Wilma456, 26 November 2016 - 02:45 PM
Wilma456 #1
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.lua

Have fun!
Mao Zedong #2
Posted 26 November 2016 - 04:24 PM
Someone already did this for CCJam and theirs was a lot better...
apemanzilla #3
Posted 26 November 2016 - 04:25 PM
You were beaten by justync7 by about six months :P/>
Edited on 26 November 2016 - 03:25 PM