(sock, chatId, message)
| 1 | const settings = require("../settings"); |
| 2 | |
| 3 | async 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 | |
| 44 | module.exports = aliveCommand; |
nothing calls this directly
no outgoing calls
no test coverage detected