summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-12-13 15:40:04 +0100
committerlassulus <lassulus@lassul.us>2022-12-13 15:40:04 +0100
commit1ded462e7cc7800efbc2224662ab8d086bb3c02f (patch)
tree63f95840a37d2443d25a283df43bee1841d82895 /krebs
parent2c253d51709c7e2957a7028e409688f7d14ef757 (diff)
reaktor2: add !interrogate
Diffstat (limited to 'krebs')
-rw-r--r--krebs/2configs/reaktor2.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/krebs/2configs/reaktor2.nix b/krebs/2configs/reaktor2.nix
index e1e3b7670..8a6bd455c 100644
--- a/krebs/2configs/reaktor2.nix
+++ b/krebs/2configs/reaktor2.nix
@@ -72,6 +72,22 @@ let
'';
};
};
+ interrogate = {
+ pattern = "^!interrogate (.*)$";
+ activate = "match";
+ arguments = [1];
+ command = {
+ filename = pkgs.writeDash "interrogate" ''
+ set -efux
+
+ export PATH=${makeBinPath [
+ pkgs.stable-interrogate
+ ]}
+ caption=$(stable-interrogate "$@")
+ echo "$_from: $caption"
+ '';
+ };
+ };
confuse_hackint = {
pattern = "^!confuse (.*)$";
@@ -295,6 +311,7 @@ let
bedger-add
bedger-balance
hooks.sed
+ interrogate
say
(generators.command_hook {
inherit (commands) dance random-emoji nixos-version;