{"size": 505, "ext": "js", "max_stars_repo_path": "commands/information/ping.js", "max_stars_repo_name": "bymayfe/ESModuleTemplate", "max_stars_repo_stars_event_min_datetime": "2021-08-20T14:42:35.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-27T18:45:37.000Z", "max_issues_repo_path": "commands/information/ping.js", "max_issues_repo_name": "bymayfe/ESModuleTemplate", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "commands/information/ping.js", "max_forks_repo_name": "bymayfe/ESModuleTemplate", "max_forks_repo_forks_event_min_datetime": "2021-08-20T16:30:45.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-27T18:45:56.000Z"}
{"max_stars_count": 11, "max_issues_count": null, "max_forks_count": 4, "avg_line_length": 25.25, "max_line_length": 72, "alphanum_fraction": 0.5742574257}
"use strict";
import Command from "../../schemas/commandSchema.js";
export default class PingCommand extends Command {
  constructor() {
    super({
      name: "ping",
      aliases: ["ms", "delay", "timeout"],
      usage: "ping",
      category: "information",
      description: "Show ping bot.",

      async execute(MultiFunction) {
        const ping = MultiFunction.client.ws.ping;

        return MultiFunction.message.channel.send(`Pong! **${ping}**`);
      },
    });
  }
}
