feat(dev): add no-touch OpenClaw config renderer and integration guide
This commit is contained in:
25
scripts/render-openclaw-config.mjs
Normal file
25
scripts/render-openclaw-config.mjs
Normal file
@@ -0,0 +1,25 @@
|
||||
const pluginPath = process.argv[2] || "/opt/WhisperGate/plugin";
|
||||
const provider = process.argv[3] || "openai";
|
||||
const model = process.argv[4] || "whispergate-no-reply-v1";
|
||||
const bypass = (process.argv[5] || "").split(",").filter(Boolean);
|
||||
|
||||
const payload = {
|
||||
plugins: {
|
||||
load: { paths: [pluginPath] },
|
||||
entries: {
|
||||
whispergate: {
|
||||
enabled: true,
|
||||
config: {
|
||||
enabled: true,
|
||||
discordOnly: true,
|
||||
bypassUserIds: bypass,
|
||||
endSymbols: ["。", "!", "?", ".", "!", "?"],
|
||||
noReplyProvider: provider,
|
||||
noReplyModel: model,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
console.log(JSON.stringify(payload, null, 2));
|
||||
Reference in New Issue
Block a user