Browse Source

get rid of xcowsay dependency

master
Brennen Bearnes 5 years ago
parent
commit
c077f03824
2 changed files with 4 additions and 5 deletions
  1. +0
    -1
      README.md
  2. +4
    -4
      snowday.pl

+ 0
- 1
README.md View File

@ -8,6 +8,5 @@ synopsis
--------
```sh
sudo apt-get install xcowsay
./snowday.pl
```

+ 4
- 4
snowday.pl View File

@ -2,9 +2,9 @@
use LWP::Simple;
$page = get('http://www.bvsd.org/');
if ($page =~ /troublebutton/m) {
# print "yes.\n";
`xcowsay "SNOW DAY"`;
print "yes.\n";
# `cowsay "SNOW DAY"`;
} else {
# print "sorry.\n";
`xcowsay "sorry. :("`;
print "sorry.\n";
# `cowsay "sorry. :("`;
}

Loading…
Cancel
Save