added a sneaky lil thing that spits out the ***entire*** rickroll sheet.

more info, see README.md or `rand-lyric --help`
This commit is contained in:
Brendan Webb 2021-02-19 20:03:28 +11:00
parent dbf6e18b93
commit 031976eff7
2 changed files with 10 additions and 1 deletions

View File

@ -7,6 +7,7 @@
--rickroll: pull random lines from Rick Astley's '87 classic, 'Never Gonna Give You Up'
(aka rickroll mode)
--Rickroll: spits out the ***entire*** rickroll lyric sheet >:3
--help: this help message
--version: shows the project version

View File

@ -1,6 +1,6 @@
#!/bin/bash
clear
VER="2021.02.03.3"
VER="2021.02.19"
PROJ="rand-lyric v$VER by brendo j. webbo <brendo AT brendo.org>"
LYRIC_DIR="/etc/rand-lyric/"
lyrdir=$(echo $LYRIC_DIR | sed s/\\/$//)
@ -13,6 +13,7 @@ echo ""
echo "--rickroll: pull random lines from Rick Astley's 1987 classic, 'Never Gonna Give You Up'"
echo "(aka rickroll mode)"
echo ""
echo "--Rickroll: spits out the entire rickroll lyric sheet >:3"
echo "--help: this help message"
echo ""
echo "--version: rand-lyric version"
@ -49,5 +50,12 @@ clear
if [ "$1" = "--rickroll" ]; then
shuf -n 1 $lyrdir/rickroll.txt
else
if [ "$1" = "--Rickroll" ]; then
echo "here, have the full lyric sheet <3"
sleep 3
cat $lyrdir/rickroll.txt
echo ""
else
shuf -n 1 $lyrdir/lyrics.txt
fi
fi