From 4d8912b0201acb53a569c21f6753d8db593de8dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 24 May 2022 11:09:25 +0200 Subject: [PATCH] feat(pls): add neutral response --- packages/scripts/pls.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/scripts/pls.nix b/packages/scripts/pls.nix index afdfd8a..7ad7c8a 100755 --- a/packages/scripts/pls.nix +++ b/packages/scripts/pls.nix @@ -39,6 +39,12 @@ "make it stooop" "noooo" ]; + + messages.neutral = [ + "meh" + "i have no opinion about this song" + "idk man" + ]; in pkgs.writers.writeDashBin "pls" '' case "$1" in @@ -50,6 +56,9 @@ in ${pkgs.curl}/bin/curl -sS -XPOST "${playlistAPI}/skip" 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) shift echo "$@" | ${sendIRC}