reaktor2: add !confuse
This commit is contained in:
parent
b2f8ffb920
commit
be3762d351
@ -51,6 +51,29 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
confuse = {
|
||||
pattern = "^!confuse (.*)$";
|
||||
activate = "match";
|
||||
arguments = [1];
|
||||
command = {
|
||||
filename = pkgs.writeDash "confuse" ''
|
||||
set -efu
|
||||
export PATH=${makeBinPath [
|
||||
pkgs.coreutils
|
||||
pkgs.curl
|
||||
pkgs.gnused
|
||||
pkgs.stable-generate
|
||||
]}
|
||||
stable_url=$(stable-generate "$@")
|
||||
paste_url=$(curl -Ss "$stable_url" |
|
||||
curl -Ss https://p.krebsco.de --data-binary @- |
|
||||
tail -1
|
||||
)
|
||||
echo "$_from: $paste_url"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
taskRcFile = builtins.toFile "taskrc" ''
|
||||
confirmation=no
|
||||
'';
|
||||
@ -218,6 +241,7 @@ let
|
||||
'';
|
||||
};
|
||||
}
|
||||
confuse
|
||||
bedger-add
|
||||
bedger-balance
|
||||
hooks.sed
|
||||
|
Loading…
Reference in New Issue
Block a user