reaktor2: add vicuna plugin
This commit is contained in:
parent
1241f43a0f
commit
3f899d309b
|
@ -253,6 +253,24 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vicuna = {
|
||||||
|
pattern = "^!vicuna (.*)$";
|
||||||
|
activate = "match";
|
||||||
|
arguments = [1];
|
||||||
|
timeoutSec = 1337;
|
||||||
|
command = {
|
||||||
|
filename = pkgs.writeDash "vicuna" ''
|
||||||
|
set -efu
|
||||||
|
|
||||||
|
mkdir -p ${stateDir}/vicuna
|
||||||
|
export CONTEXT=${stateDir}/vicuna/"$_msgtarget".context
|
||||||
|
${pkgs.vicuna-chat}/bin/vicuna-chat "$@" |
|
||||||
|
echo "$_from: $(cat)" |
|
||||||
|
fold -s -w 426
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
locationsLib = pkgs.writeText "locations.sh" ''
|
locationsLib = pkgs.writeText "locations.sh" ''
|
||||||
ENDPOINT=http://c.r/poi.json
|
ENDPOINT=http://c.r/poi.json
|
||||||
get_locations() {
|
get_locations() {
|
||||||
|
@ -413,6 +431,7 @@ let
|
||||||
hooks.sed
|
hooks.sed
|
||||||
interrogate
|
interrogate
|
||||||
say
|
say
|
||||||
|
vicuna
|
||||||
(generators.command_hook {
|
(generators.command_hook {
|
||||||
inherit (commands) dance random-emoji nixos-version;
|
inherit (commands) dance random-emoji nixos-version;
|
||||||
tell = {
|
tell = {
|
||||||
|
|
Loading…
Reference in a new issue