mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(pls): add neutral response
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user