goat
command
info
Show bot & owner information
0
views
0
likes
0
installs
Aliases: admininfo, botinfo, info, ownerinfo
raw source
const moment = require("moment-timezone");
module.exports = {
config: {
name: "info",
aliases: ["admininfo", "botinfo", "info", "ownerinfo"],
version: "2.0",
author: "ไบ๐
ผ๐
ฐแฅซแฉฃ๐
ผแฅซแฉฃ๐๐
ฝรอร",
countDown: 5,
role: 0,
shortDescription: {
en: "Show bot & owner information"
},
longDescription: {
en: "Display detailed bot and owner information"
},
category: "owner",
guide: {
en: "{pn}"
}
},
onStart: async function ({ message }) {
// ๐ OWNER INFO
const authorName = "รแทผร๏ผญ๏ผก๏ผญ๏ผต๏ผฎโ";
const ownAge = "21";
const messenger = "https://m.me/botxdi";
const authorFB = "Mohammad Mamun";
const authorNumber = "+8801830981279";
const status = "Single";
// ๐ง๐ฉ BANGLADESH TIME
const now = moment().tz("Asia/Dhaka");
const date = now.format("DD MMMM YYYY");
const time = now.format("hh:mm:ss A");
// โก BOT UPTIME
const uptime = process.uptime();
const seconds = Math.floor(uptime % 60);
const minutes = Math.floor((uptime / 60) % 60);
const hours = Math.floor((uptime / 3600) % 24);
const days = Math.floor(uptime / 86400);
const uptimeString =
`${days}d โข ${hours}h โข ${minutes}m โข ${seconds}s`;
const botName =
global.GoatBot?.config?.nickNameBot || "โคออออ โป ๐ฌ๐ข๐จ๐ฅ ๐๐๐ญ ๐";
const prefix =
global.GoatBot?.config?.prefix || ".";
const text = `
๐ค ๐๐จ๐ญ ๐๐๐ฆ๐ : ${botName}
โก ๐๐ซ๐๐๐ข๐ฑ : ${prefix}
๐ข ๐๐ญ๐๐ญ๐ฎ๐ฌ : ๐๐๐๐๐๐
๐ ๐๐๐๐๐
๐ ๐๐๐ฆ๐ : ${authorName}
๐ ๐๐ ๐ : ${ownAge}
๐ ๐๐ญ๐๐ญ๐ฎ๐ฌ : ${status}
๐ ๐๐ก๐๐ญ๐ฌ๐๐ฉ๐ฉ : ${authorNumber}
๐ ๐
๐๐๐๐๐จ๐จ๐ค : ${authorFB}
๐ ๐๐๐๐๐๐
๐
๐๐๐ญ๐ : ${date}
โฐ ๐๐ข๐ฆ๐ : ${time}
๐ ๐๐ฉ๐ญ๐ข๐ฆ๐ : ${uptimeString}
๐ฉ ๐๐๐๐๐๐๐
๐ ${messenger}
`;
return message.reply(text.trim());
},
onChat: async function ({ event, message }) {
if (event.body?.toLowerCase().trim() === "info") {
return this.onStart({ message });
}
}
};