(sock: any, message: any, _args: any)
| 7 | isPrefixless: true, |
| 8 | |
| 9 | async handler(sock: any, message: any, _args: any) { |
| 10 | const start = Date.now(); |
| 11 | const chatId = message.key.remoteJid; |
| 12 | |
| 13 | const sent = await sock.sendMessage(chatId, { |
| 14 | text: 'Pinging...' |
| 15 | }); |
| 16 | |
| 17 | const end = Date.now(); |
| 18 | |
| 19 | await sock.sendMessage(chatId, { |
| 20 | text: `🏓 Pong!\nLatency: ${end - start}ms`, |
| 21 | edit: sent.key |
| 22 | }); |
| 23 | } |
| 24 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected