From 6f2a824d8b76f7e76dada0fe66f3662ded2d7f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Wed, 24 Nov 2021 11:11:44 +0100 Subject: [PATCH] fix(pls): skip/like before reporting in IRC --- packages/scripts/pls.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/scripts/pls.nix b/packages/scripts/pls.nix index 822e1be..32b4c13 100755 --- a/packages/scripts/pls.nix +++ b/packages/scripts/pls.nix @@ -44,12 +44,12 @@ in pkgs.writers.writeDashBin "pls" '' case "$1" in good|like|cool|nice|noice|top|yup|yass|yes|+) - echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.good)} | shuf -n1 | ${sendIRC} ${pkgs.curl}/bin/curl -sS -XPOST "${playlistAPI}/good" + echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.good)} | shuf -n1 | ${sendIRC} ;; skip|next|bad|sucks|no|nope|flop|-) - echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.bad)} | shuf -n1 | ${sendIRC} ${pkgs.curl}/bin/curl -sS -XPOST "${playlistAPI}/skip" + echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.bad)} | shuf -n1 | ${sendIRC} ;; recent) ${pkgs.curl}/bin/curl -sS -XGET "${playlistAPI}/recent" | tac | head