This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / 2configs / reaktor-coders.nix
1.5 kB 55 lines
1{ config, lib, pkgs, ... }: 2 3let 4 hooks = pkgs.reaktor2-plugins.hooks; 5in { 6 krebs.reaktor2.coders = { 7 hostname = "irc.hackint.org"; 8 port = "9999"; 9 useTLS = true; 10 nick = "reaktor2|lass"; 11 plugins = [ 12 { 13 plugin = "register"; 14 config = { 15 channels = [ 16 "#coders" 17 "#germany" 18 "#panthermoderns" 19 ]; 20 }; 21 } 22 { 23 plugin = "system"; 24 config = { 25 workdir = config.krebs.reaktor2.coders.stateDir; 26 hooks.PRIVMSG = [ 27 hooks.sed 28 hooks.url-title 29 { 30 activate = "match"; 31 pattern = ''^!([^ ]+)(?:\s*(.*))?''; 32 command = 1; 33 arguments = [2]; 34 commands = { 35 ping.filename = pkgs.writeDash "ping" '' 36 exec /run/wrappers/bin/ping -q -c1 "$1" 2>&1 | tail -1 37 ''; 38 google.filename = pkgs.writeDash "google" '' 39 exec ${pkgs.ddgr}/bin/ddgr -C -n1 --json "$@" | \ 40 ${pkgs.jq}/bin/jq '@text "\(.[0].abstract) \(.[0].url)"' 41 ''; 42 shrug.filename = pkgs.writeDash "shrug" '' 43 exec echo '¯\_(ツ)_/¯' 44 ''; 45 table.filename = pkgs.writeDash "table" '' 46 exec echo '(╯°□°)╯ ┻━┻' 47 ''; 48 }; 49 } 50 ]; 51 }; 52 } 53 ]; 54 }; 55}