diff options
author | lassulus <lass@lassul.us> | 2017-01-23 13:37:52 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-01-23 13:37:52 +0100 |
commit | f07d696cd8ecde00a6a5388f9609d57d4142a9c4 (patch) | |
tree | 9e335d8d2fec9316e0480cc8c484308f4c0b9e26 /lass | |
parent | 705bf2c5e3f5a903a705cad70e9f8df5e904580d (diff) |
l 1 prism: do more stuff in #coders
Diffstat (limited to 'lass')
-rw-r--r-- | lass/1systems/prism.nix | 43 |
1 files 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<args>.*)$$"; + pattern = "^@pl (?P<args>.*)$$"; script = pkgs.writeDash "lambda-pl" '' exec ${pkgs.lambdabot}/bin/lambdabot \ ${indent lambdabotflags} @@ -283,7 +283,7 @@ in { ''; }) (buildSimpleReaktorPlugin "lambdabot-type" { - pattern = "^@type(?P<args>.*)$$"; + pattern = "^@type (?P<args>.*)$$"; script = pkgs.writeDash "lambda-type" '' exec ${pkgs.lambdabot}/bin/lambdabot \ ${indent lambdabotflags} @@ -291,7 +291,7 @@ in { ''; }) (buildSimpleReaktorPlugin "lambdabot-let" { - pattern = "^@let(?P<args>.*)$$"; + pattern = "^@let (?P<args>.*)$$"; script = pkgs.writeDash "lambda-let" '' exec ${pkgs.lambdabot}/bin/lambdabot \ ${indent lambdabotflags} @@ -299,7 +299,7 @@ in { ''; }) (buildSimpleReaktorPlugin "lambdabot-run" { - pattern = "^@run(?P<args>.*)$$"; + pattern = "^@run (?P<args>.*)$$"; script = pkgs.writeDash "lambda-run" '' exec ${pkgs.lambdabot}/bin/lambdabot \ ${indent lambdabotflags} @@ -307,13 +307,46 @@ in { ''; }) (buildSimpleReaktorPlugin "lambdabot-kind" { - pattern = "^@kind(?P<args>.*)$$"; + pattern = "^@kind (?P<args>.*)$$"; script = pkgs.writeDash "lambda-kind" '' exec ${pkgs.lambdabot}/bin/lambdabot \ ${indent lambdabotflags} -e "@kind $1" ''; }) + (buildSimpleReaktorPlugin "lambdabot-kind" { + pattern = "^@kind (?P<args>.*)$$"; + 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<args>.*)$$"; + script = pkgs.writeDash "ping" '' + exec /var/setuid-wrappers/ping -q -c1 "$1" 2>&1 | tail -1 + ''; + }) ]; }; } |