@inetafrica/open-claudia 1.2.0 → 1.2.2
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/bot.js +5 -1
- package/package.json +1 -1
package/bot.js
CHANGED
|
@@ -93,9 +93,10 @@ const BOT_DIR = __dirname;
|
|
|
93
93
|
// Detect PATH for subprocess
|
|
94
94
|
const FULL_PATH = [
|
|
95
95
|
path.dirname(CLAUDE_PATH),
|
|
96
|
+
path.dirname(process.execPath),
|
|
96
97
|
FFMPEG ? path.dirname(FFMPEG) : null,
|
|
97
98
|
WHISPER_CLI ? path.dirname(WHISPER_CLI) : null,
|
|
98
|
-
"/usr/local/bin", "/usr/bin", "/bin", "/usr/sbin", "/sbin",
|
|
99
|
+
"/opt/homebrew/bin", "/usr/local/bin", "/usr/bin", "/bin", "/usr/sbin", "/sbin",
|
|
99
100
|
].filter(Boolean).join(":");
|
|
100
101
|
|
|
101
102
|
const bot = new TelegramBot(TOKEN, {
|
|
@@ -1247,3 +1248,6 @@ console.log(`Workspace: ${WORKSPACE}`);
|
|
|
1247
1248
|
console.log(`Soul: ${SOUL_FILE}`);
|
|
1248
1249
|
console.log(`Vault: ${VAULT_FILE} (${vault.exists() ? "exists" : "not created"})`);
|
|
1249
1250
|
console.log(`Onboarded: ${isOnboarded()}`);
|
|
1251
|
+
|
|
1252
|
+
// Notify owner that bot is back online
|
|
1253
|
+
bot.sendMessage(CHAT_ID, `Open Claudia v${CURRENT_VERSION} is online.`).catch(() => {});
|