goat
command
info
Owner & bot information
0
views
0
likes
0
installs
raw source
const moment = require("moment-timezone");
module.exports = {
config: {
name: "info",
version: "2.5.3",
author: "ST | Sheikh Tamim",
role: 0,
countDown: 20,
shortDescription: {
en: "Owner & bot information"
},
longDescription: {
en: "Show detailed information about the bot, owner, uptime and socials"
},
category: "owner",
guide: {
en: "{pn}"
}
},
onStart: async function ({ message }) {
const ownerName = "STARBOY APHELION";
const ownerAge = "N/A";
const ownerFB = "https://facebook.com/star.boy.aphelion";
const ownerNumber = "+88019XXXXXXX";
const status = "Active";
const botName = global.GoatBot?.config?.nickNameBot || "GoatBot";
const prefix = global.GoatBot?.config?.prefix || "/";
// ๐ง TOTAL COMMANDS
const totalCommands = global.GoatBot?.commands?.size || 0;
const images = [
"https://i.postimg.cc/tgcKQdnL/file-00000000c604820ea44a1f191f074088.png"
];
const image = images[Math.floor(Math.random() * images.length)];
const now = moment().tz("Asia/Dhaka");
const date = now.format("MMMM Do YYYY");
const time = now.format("h:mm:ss A");
const uptime = process.uptime();
const days = Math.floor(uptime / 86400);
const hours = Math.floor((uptime % 86400) / 3600);
const minutes = Math.floor((uptime % 3600) / 60);
const seconds = Math.floor(uptime % 60);
const uptimeString = `${days}d ${hours}h ${minutes}m ${seconds}s`;
return message.reply({
body: `
โโใ โจ ๐ข๐ช๐ก๐๐ฅ & ๐๐ข๐ง ๐๐ก๐๐ข โจ ใโโ
โญ ๐ค ๐๐ผ๐ ๐ก๐ฎ๐บ๐ฒ : ใ ${botName} ใ
โญ โ๏ธ ๐ฃ๐ฟ๐ฒ๐ณ๐ถ๐
: ใ ${prefix} ใ
โญ ๐ง ๐๐ผ๐บ๐บ๐ฎ๐ป๐ฑ๐ : ใ ${totalCommands} ใ
โญ โก ๐จ๐ฝ๐๐ถ๐บ๐ฒ : ใ ${uptimeString} ใ
โญ ๐๏ธ ๐๐ฎ๐๐ฒ : ใ ${date} ใ
โญ โฐ ๐ง๐ถ๐บ๐ฒ : ใ ${time} ใ
โญ ๐ ๐ข๐๐ป๐ฒ๐ฟ : ใ ๐๐๐๐๐๐๐๐ ๐๐๐๐
ใ
โญ ๐ ๐๐ด๐ฒ : ใ ๐๐+ ใ
โญ โค๏ธ ๐ฆ๐๐ฎ๐๐๐ : ใ ๐๐ข๐ง๐ ๐ฅ๐ ๐๐จ๐ฒ ใ
โญ ๐ฑ ๐ช๐ต๐ฎ๐๐๐๐ฝ๐ฝ : ใ ๐ฌ๐ญ๐ต๐ฏ๐ฌ๐ฎ๐ฏ๐ณ๐ด๐ฌ๐ฑ ใ
โญ ๐ ๐๐ฎ๐ฐ๐ฒ๐ฏ๐ผ๐ผ๐ธ : ใ ๐๐ ๐๐
ใ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
`,
attachment: await global.utils.getStreamFromURL(image)
});
}
};