This repository has been archived on 2024-01-30. You can view files and clone it, but cannot push or open issues or pull requests.
2022-03-26 03:33:18 -05:00
|
|
|
const { MessageEmbed } = require('discord.js');
|
|
|
|
const { locations } = require('../config.json');
|
|
|
|
|
2021-01-23 01:08:05 -06:00
|
|
|
module.exports = {
|
|
|
|
name: "ping",
|
|
|
|
description: "Gets bot ping",
|
2022-03-26 03:58:15 -05:00
|
|
|
async execute(client, message, _, footer) {
|
2022-03-26 03:33:18 -05:00
|
|
|
const index = Math.floor(Math.random() * locations.length);
|
|
|
|
const pingLocation = locations[index]
|
2022-03-17 21:48:56 -05:00
|
|
|
|
2022-03-26 03:33:18 -05:00
|
|
|
await message.channel.send(new MessageEmbed({
|
|
|
|
"title": ":ping_pong: Ping",
|
|
|
|
"description": "**Pong!** We pinged **" + pingLocation + "** and got " + client.ws.ping + " ms.",
|
|
|
|
"color": 9442302,
|
2022-03-26 03:58:15 -05:00
|
|
|
"footer": footer
|
2022-03-26 03:33:18 -05:00
|
|
|
}));
|
2021-01-23 01:08:05 -06:00
|
|
|
}
|
|
|
|
};
|