// code from goatstore // api: https://store.agi.bd function formatUptime(s) { const d = Math.floor(s / 86400); const h = Math.floor((s % 86400) / 3600); const m = Math.floor((s % 3600) / 60); const sec = Math.floor(s % 60); return `${d}๐ƒ ${h}๐‡ ${m}๐Œ ${sec}๐’`; } module.exports = { config: { name: "runtime", aliases: ["rtm"], version: "1.3", author: "โ€”อž๐ส€ษชแดแด‡ฬ", countDown: 3, role: 0, shortDescription: "Runtime", category: "system", }, onStart: async function ({ api, event }) { const start = Date.now(); const botName = global.GoatBot.config.nickNameBot || global.GoatBot.config.botName || "Bot"; return api.sendMessage("โœจ ๐‹๐จ๐š๐๐ข๐ง๐ ...", event.threadID, (err, info) => { const ping = Date.now() - start; const uptime = formatUptime(process.uptime()); const dhaka = new Date().toLocaleString("en-BD", { timeZone: "Asia/Dhaka", hour12: false, hour: "2-digit", minute: "2-digit", second: "2-digit", day: "2-digit", month: "2-digit", year: "numeric" }); api.editMessage( `โœฆโ”โ”โ”โ”โ”โ”โ” ๐‘๐“๐Œ โ”โ”โ”โ”โ”โ”โ”โœฆ ๐ŸŒŸ ๐๐จ๐ญ ยป ${botName} โฐ ๐”๐ฉ๐ญ๐ข๐ฆ๐ž ยป ${uptime} ๐Ÿš€ ๐๐ข๐ง๐  ยป ${ping}๐ฆ๐ฌ ๐Ÿ•ฐ๏ธ ๐ƒ๐ก๐š๐ค๐š ยป ${dhaka} โœฆโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โœฆ`, info.messageID ); }); } };