mirror of
https://github.com/kmein/niveum
synced 2026-03-20 12:01:06 +01:00
feat(pls): add neutral response
This commit is contained in:
@@ -39,6 +39,12 @@
|
|||||||
"make it stooop"
|
"make it stooop"
|
||||||
"noooo"
|
"noooo"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
messages.neutral = [
|
||||||
|
"meh"
|
||||||
|
"i have no opinion about this song"
|
||||||
|
"idk man"
|
||||||
|
];
|
||||||
in
|
in
|
||||||
pkgs.writers.writeDashBin "pls" ''
|
pkgs.writers.writeDashBin "pls" ''
|
||||||
case "$1" in
|
case "$1" in
|
||||||
@@ -50,6 +56,9 @@ in
|
|||||||
${pkgs.curl}/bin/curl -sS -XPOST "${playlistAPI}/skip"
|
${pkgs.curl}/bin/curl -sS -XPOST "${playlistAPI}/skip"
|
||||||
echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.bad)} | shuf -n1 | ${sendIRC}
|
echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.bad)} | shuf -n1 | ${sendIRC}
|
||||||
;;
|
;;
|
||||||
|
0|meh|neutral)
|
||||||
|
echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.neutral)} | shuf -n1 | ${sendIRC}
|
||||||
|
;;
|
||||||
say|msg)
|
say|msg)
|
||||||
shift
|
shift
|
||||||
echo "$@" | ${sendIRC}
|
echo "$@" | ${sendIRC}
|
||||||
|
|||||||
Reference in New Issue
Block a user