@inetafrica/open-claudia 1.2.3 → 1.2.4
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 +1 -1
- package/package.json +1 -1
package/bot.js
CHANGED
|
@@ -845,7 +845,7 @@ bot.onText(/\/upgrade$/, async (msg) => {
|
|
|
845
845
|
// Read version from newly installed package
|
|
846
846
|
const root = execSync("npm root -g", { encoding: "utf-8", env: { ...process.env, PATH: FULL_PATH } }).trim();
|
|
847
847
|
const newPkg = JSON.parse(fs.readFileSync(path.join(root, "@inetafrica", "open-claudia", "package.json"), "utf-8"));
|
|
848
|
-
await send(`
|
|
848
|
+
await send(`Installed v${newPkg.version}. Going offline to restart...`);
|
|
849
849
|
} catch (e) {
|
|
850
850
|
await send(`Upgrade failed: ${e.message}`);
|
|
851
851
|
return;
|