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:
@@ -5,22 +5,41 @@ send_irc() {
|
|||||||
USER $USER $(hostname) tolmoon $USER
|
USER $USER $(hostname) tolmoon $USER
|
||||||
NICK musikkritiker
|
NICK musikkritiker
|
||||||
JOIN #the_playlist
|
JOIN #the_playlist
|
||||||
PRIVMSG #the_playlist $*
|
PRIVMSG #the_playlist :$*
|
||||||
QUIT
|
QUIT
|
||||||
" | nc irc.freenode.net 6667 >/dev/null
|
" | 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
|
endpoint=prism.r:8001
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
good|like|cool|nice|yes|+)
|
good|like|cool|nice|noice|top|yass|yes|+)
|
||||||
send_irc 'nice!' &
|
send_irc "$(echo "$good" | shuf -n1)" &
|
||||||
curl -sS -XPOST "$endpoint/good"
|
curl -sS -XPOST "$endpoint/good"
|
||||||
;;
|
;;
|
||||||
skip|next|bad|sucks|no|nope|-)
|
skip|next|bad|sucks|no|nope|flop|-)
|
||||||
send_irc 'sucks' &
|
send_irc "$(echo "$bad" | shuf -n1)" &
|
||||||
curl -sS -XPOST "$endpoint/skip"
|
curl -sS -XPOST "$endpoint/skip"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user