Sing will now accept tracks with a :, bot config file is now bot.cfg.

This commit is contained in:
Storm Dragon
2016-09-06 12:08:29 -04:00
parent ee4ea5e271
commit 8e733593f0
3 changed files with 4 additions and 5 deletions

View File

@ -5,7 +5,7 @@ shift
chan="$1"
shift
#get the lyric text into a variable
trackName="$@"
trackName="${@//:/ - }"
curl="$(command -v curl)"
trackName="$(echo "$trackName" | sed -e "s/ /_/g" -e 's/([[:print:]]*)//g' -e "s/['\/\.]//g" -e 's/&/and/g' -e 's/ö/o/g')"
artist="$(echo "${trackName,,}" | cut -d "-" -f 1 | sed -e 's/_$//' -e 's/^the_\(.*\)/\1_the/')"