@inetafrica/open-claudia 1.1.9 → 1.2.0
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 +6 -0
- package/package.json +1 -1
package/bot.js
CHANGED
|
@@ -172,6 +172,7 @@ bot.setMyCommands([
|
|
|
172
172
|
{ command: "status", description: "Session & settings info" },
|
|
173
173
|
{ command: "stop", description: "Cancel running task" },
|
|
174
174
|
{ command: "end", description: "End current session" },
|
|
175
|
+
{ command: "version", description: "Show current version" },
|
|
175
176
|
{ command: "restart", description: "Restart the bot" },
|
|
176
177
|
{ command: "upgrade", description: "Upgrade and restart" },
|
|
177
178
|
{ command: "help", description: "Show all commands" },
|
|
@@ -820,6 +821,11 @@ bot.onText(/\/help/, (msg) => {
|
|
|
820
821
|
].join("\n"));
|
|
821
822
|
});
|
|
822
823
|
|
|
824
|
+
bot.onText(/\/version$/, (msg) => {
|
|
825
|
+
if (!isAuthorized(msg)) return;
|
|
826
|
+
send(`Open Claudia v${CURRENT_VERSION}`);
|
|
827
|
+
});
|
|
828
|
+
|
|
823
829
|
bot.onText(/\/restart$/, async (msg) => {
|
|
824
830
|
if (!isOwner(msg)) return;
|
|
825
831
|
await send("Restarting...");
|