{"size": 352, "ext": "js", "max_stars_repo_path": "src/commands/games/ping.js", "max_stars_repo_name": "biswajitguha01/ghostybot", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/commands/games/ping.js", "max_issues_repo_name": "biswajitguha01/ghostybot", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/commands/games/ping.js", "max_forks_repo_name": "biswajitguha01/ghostybot", "max_forks_repo_forks_event_min_datetime": "2021-07-19T15:35:33.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-19T15:35:33.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 23.4666666667, "max_line_length": 73, "alphanum_fraction": 0.6079545455}
module.exports = {
  name: "ping",
  description: "pong!",
  category: "games",
  async execute(bot, message) {
    const firstMsg = await message.channel.send("🏓 Pong!");

    firstMsg.edit(
      `🏓 Pong \n Bot ping: ${Math.round(bot.ws.ping)}ms\nMessage Ping: ${
        firstMsg.createdTimestamp - message.createdTimestamp
      } `
    );
  },
};
