1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(scripts): enhance pls script

This commit is contained in:
2021-03-03 17:22:26 +01:00
parent ed732b3a65
commit 8420a2435d

View File

@@ -5,22 +5,41 @@ send_irc() {
USER $USER $(hostname) tolmoon $USER
NICK musikkritiker
JOIN #the_playlist
PRIVMSG #the_playlist $*
PRIVMSG #the_playlist :$*
QUIT
" | nc irc.freenode.net 6667 >/dev/null
}
good="what a banger
ooh i love this song
this is top notch stuff!
nice!
noice!
yesss!
cool song!
i like this
that just sounds awesome!
that's a good song!
👍"
bad="how can anyone listen to this?
(╯°□°)╯ ┻━┻
skip this!
next, please! i'm suffering!
that's just bad music
nope
that sucks!
👎"
endpoint=prism.r:8001
case "$1" in
good|like|cool|nice|yes|+)
send_irc 'nice!' &
good|like|cool|nice|noice|top|yass|yes|+)
send_irc "$(echo "$good" | shuf -n1)" &
curl -sS -XPOST "$endpoint/good"
;;
skip|next|bad|sucks|no|nope|-)
send_irc 'sucks' &
skip|next|bad|sucks|no|nope|flop|-)
send_irc "$(echo "$bad" | shuf -n1)" &
curl -sS -XPOST "$endpoint/skip"
;;
*)