// code from goatstore // api: https://store.agi.bd const os = require("os"); module.exports = { config: { name: "runtime", aliases: ["rtm"], version: "8.0.0", author: "๐— ๐—ฎ๐—ฅ๐˜‚๐—™", countDown: 3, role: 0, shortDescription: { en: "Show bot running time." }, longDescription: { en: "Shows bot running time." }, description: { en: "Show bot runtime." }, category: "system", guide: { en: "{pn}" } }, onStart: async function ({ message }) { try { const uptime = process.uptime(); const totalHours = Math.floor(uptime / 3600); const minutes = Math.floor((uptime % 3600) / 60); const seconds = Math.floor(uptime % 60); const msg = "โฐ ๐—ฅ๐˜‚๐—ป๐—ป๐—ถ๐—ป๐—ด ๐—ง๐—ถ๐—บ๐—ฒ ยป " + totalHours + "h " + minutes + "m " + seconds + "s ยป ๐ŸŒทโœŒ๏ธ"; return message.reply(msg); } catch (error) { console.error("Runtime Error:", error); return message.reply("Runtime error!"); } } };