MCPcopy Create free account
hub / github.com/Xchristech2/Zenitsu-Bot / aliveCommand

Function aliveCommand

commands/alive.js:3–42  ·  view source on GitHub ↗
(sock, chatId, message)

Source from the content-addressed store, hash-verified

1const settings = require("../settings");
2
3async function aliveCommand(sock, chatId, message) {
4 try {
5 const aliveMessage = `
6╭─❖ 「 ${settings.botName || "Zenitsu Bot"} 」 ❖─⬣
7│ 🤖 Status : ONLINE ✅
8│ ⚡ Version : ${settings.version || "4.0.0"}
9│ 🌐 Mode : ${settings.mode || "Private"}
10╰──────────────⬣
11
12┌─〔 Features 〕
13│ • Group Tools
14│ • Antilink / Antispam
15│ • Fun & Games
16│ • AI Commands
17└─────────────
18
19📌 Use *.menu* to explore commands
20⚡ Fast • Smooth • Reliable
21`;
22
23 await sock.sendMessage(chatId, {
24 text: aliveMessage,
25 contextInfo: {
26 forwardingScore: 999,
27 isForwarded: true,
28 forwardedNewsletterMessageInfo: {
29 newsletterJid: '120363406588763460@newsletter',
30 newsletterName: settings.botName || 'Zenitsu Bot',
31 serverMessageId: -1
32 }
33 }
34 }, { quoted: message });
35
36 } catch (error) {
37 console.error('Error in alive command:', error);
38 await sock.sendMessage(chatId, {
39 text: `🤖 ${settings.botName || "Zenitsu Bot"} is online!`
40 }, { quoted: message });
41 }
42}
43
44module.exports = aliveCommand;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected