mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
fix(pls): skip/like before reporting in IRC
This commit is contained in:
@@ -44,12 +44,12 @@ in
|
|||||||
pkgs.writers.writeDashBin "pls" ''
|
pkgs.writers.writeDashBin "pls" ''
|
||||||
case "$1" in
|
case "$1" in
|
||||||
good|like|cool|nice|noice|top|yup|yass|yes|+)
|
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"
|
${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|-)
|
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"
|
${pkgs.curl}/bin/curl -sS -XPOST "${playlistAPI}/skip"
|
||||||
|
echo ${lib.escapeShellArg (lib.concatStringsSep "\n" messages.bad)} | shuf -n1 | ${sendIRC}
|
||||||
;;
|
;;
|
||||||
recent)
|
recent)
|
||||||
${pkgs.curl}/bin/curl -sS -XGET "${playlistAPI}/recent" | tac | head
|
${pkgs.curl}/bin/curl -sS -XGET "${playlistAPI}/recent" | tac | head
|
||||||
|
|||||||
Reference in New Issue
Block a user