callme-openclaw-plugin 1.0.2 ā 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/setup.js +40 -11
package/package.json
CHANGED
package/setup.js
CHANGED
|
@@ -111,17 +111,46 @@ plugins:
|
|
|
111
111
|
|
|
112
112
|
// Done!
|
|
113
113
|
console.log('\n⨠\x1b[1;32mSetup complete!\x1b[0m\n');
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
114
|
+
|
|
115
|
+
// Step 5: Offer to reload OpenClaw
|
|
116
|
+
const shouldReload = await question('š Reload OpenClaw now? (y/n): ');
|
|
117
|
+
|
|
118
|
+
if (shouldReload.toLowerCase() === 'y' || shouldReload.toLowerCase() === 'yes') {
|
|
119
|
+
console.log('\nš Reloading OpenClaw...');
|
|
120
|
+
try {
|
|
121
|
+
const { stdout } = await execAsync('openclaw reload');
|
|
122
|
+
console.log('ā
OpenClaw reloaded successfully!\n');
|
|
123
|
+
|
|
124
|
+
// Step 6: Offer to start a call
|
|
125
|
+
const shouldCall = await question('š Start your first voice call now? (y/n): ');
|
|
126
|
+
|
|
127
|
+
if (shouldCall.toLowerCase() === 'y' || shouldCall.toLowerCase() === 'yes') {
|
|
128
|
+
console.log('\nš Starting voice call...');
|
|
129
|
+
console.log(' Type /call in your OpenClaw session to begin!\n');
|
|
130
|
+
console.log('š” Tip: You can also run:');
|
|
131
|
+
console.log(' - /voice-usage (Check your usage stats)');
|
|
132
|
+
console.log(' - /voice-keys (Manage API keys)\n');
|
|
133
|
+
} else {
|
|
134
|
+
console.log('\nš When ready, use these commands:');
|
|
135
|
+
console.log(' /call - Start voice call');
|
|
136
|
+
console.log(' /voice-usage - Check usage stats');
|
|
137
|
+
console.log(' /voice-keys - Manage API keys\n');
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
} catch (error) {
|
|
141
|
+
console.log('ā ļø Could not reload automatically. Please run manually:');
|
|
142
|
+
console.log(' \x1b[36mopenclaw reload\x1b[0m\n');
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
console.log('\nš Remember to reload OpenClaw:');
|
|
146
|
+
console.log(' \x1b[36mopenclaw reload\x1b[0m');
|
|
147
|
+
console.log('\nš Then use these commands:');
|
|
148
|
+
console.log(' /call - Start voice call');
|
|
149
|
+
console.log(' /voice-usage - Check usage stats');
|
|
150
|
+
console.log(' /voice-keys - Manage API keys\n');
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
console.log('Need help? https://docs.callme.ai/openclaw\n');
|
|
125
154
|
|
|
126
155
|
rl.close();
|
|
127
156
|
}
|