From f07d696cd8ecde00a6a5388f9609d57d4142a9c4 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 23 Jan 2017 13:37:52 +0100 Subject: l 1 prism: do more stuff in #coders --- lass/1systems/prism.nix | 43 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/lass/1systems/prism.nix b/lass/1systems/prism.nix index 83f669a3d..d8980a10c 100644 --- a/lass/1systems/prism.nix +++ b/lass/1systems/prism.nix @@ -275,7 +275,7 @@ in { sed-plugin url-title (buildSimpleReaktorPlugin "lambdabot-pl" { - pattern = "^@pl(?P.*)$$"; + pattern = "^@pl (?P.*)$$"; script = pkgs.writeDash "lambda-pl" '' exec ${pkgs.lambdabot}/bin/lambdabot \ ${indent lambdabotflags} @@ -283,7 +283,7 @@ in { ''; }) (buildSimpleReaktorPlugin "lambdabot-type" { - pattern = "^@type(?P.*)$$"; + pattern = "^@type (?P.*)$$"; script = pkgs.writeDash "lambda-type" '' exec ${pkgs.lambdabot}/bin/lambdabot \ ${indent lambdabotflags} @@ -291,7 +291,7 @@ in { ''; }) (buildSimpleReaktorPlugin "lambdabot-let" { - pattern = "^@let(?P.*)$$"; + pattern = "^@let (?P.*)$$"; script = pkgs.writeDash "lambda-let" '' exec ${pkgs.lambdabot}/bin/lambdabot \ ${indent lambdabotflags} @@ -299,7 +299,7 @@ in { ''; }) (buildSimpleReaktorPlugin "lambdabot-run" { - pattern = "^@run(?P.*)$$"; + pattern = "^@run (?P.*)$$"; script = pkgs.writeDash "lambda-run" '' exec ${pkgs.lambdabot}/bin/lambdabot \ ${indent lambdabotflags} @@ -307,13 +307,46 @@ in { ''; }) (buildSimpleReaktorPlugin "lambdabot-kind" { - pattern = "^@kind(?P.*)$$"; + pattern = "^@kind (?P.*)$$"; script = pkgs.writeDash "lambda-kind" '' exec ${pkgs.lambdabot}/bin/lambdabot \ ${indent lambdabotflags} -e "@kind $1" ''; }) + (buildSimpleReaktorPlugin "lambdabot-kind" { + pattern = "^@kind (?P.*)$$"; + script = pkgs.writeDash "lambda-kind" '' + exec ${pkgs.lambdabot}/bin/lambdabot \ + ${indent lambdabotflags} + -e "@kind $1" + ''; + }) + (buildSimpleReaktorPlugin "random-unicorn-porn" { + pattern = "^!rup$$"; + script = pkgs.writePython2 "rup" '' + #!${pkgs.python2}/bin/python + t1 = """ + _. + ;=',_ () + 8===D~~ S" .--`|| + sS \__ || + __.' ( \-->|| + _=/ _./-\/ || + 8===D~~ ((\( /-' -'l || + ) |/ \\ (_)) + \\ \\ + '~ '~ + """ + print(t1) + ''; + }) + (buildSimpleReaktorPlugin "ping" { + pattern = "^!ping (?P.*)$$"; + script = pkgs.writeDash "ping" '' + exec /var/setuid-wrappers/ping -q -c1 "$1" 2>&1 | tail -1 + ''; + }) ]; }; } -- cgit v1.2.3