Jump to content




Cowsay for Computercraft


2 replies to this topic

#1 Wilma456

  • Members
  • 187 posts
  • LocationGermany

Posted 26 November 2016 - 03:45 PM

Posted Image
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!

#2 Mao Zedong

  • Members
  • 14 posts
  • LocationFunctional Programming Zealot

Posted 26 November 2016 - 04:24 PM

Someone already did this for CCJam and theirs was a lot better...

#3 apemanzilla

  • Members
  • 1,421 posts

Posted 26 November 2016 - 04:25 PM

You were beaten by justync7 by about six months :P

Edited by apemanzilla, 26 November 2016 - 04:25 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users