← back to browse
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)
    });
  }
};

View raw file