// code from goatstore // api: https://store.agi.bd const os = require("os"); module.exports = { config: { name: "rtm", aliases: ["rtm", "uptime"], version: "2.0.0", author: "๐Œ๐š๐‘๐ฎ๐…", countDown: 3, role: 0, shortDescription: { en: "Show bot runtime" }, 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!"); } } };