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.
2021-01-23 01:08:05 -06:00
|
|
|
module.exports = {
|
|
|
|
name: "ping",
|
|
|
|
description: "Gets bot ping",
|
2022-03-29 13:51:43 -05:00
|
|
|
async execute(client, message, _, config) {
|
2022-03-28 23:55:13 -05:00
|
|
|
const index = Math.floor(Math.random() * config.locations.length);
|
|
|
|
const location = config.locations[index]
|
2022-03-17 21:48:56 -05:00
|
|
|
|
2022-03-26 11:02:17 -05:00
|
|
|
await message.channel.send({embed:{
|
2022-03-26 03:33:18 -05:00
|
|
|
"title": ":ping_pong: Ping",
|
2022-03-28 23:55:13 -05:00
|
|
|
"description": `**Pong!** We pinged **${location}** and got ${client.ws.ping} ms.`,
|
2022-03-26 03:33:18 -05:00
|
|
|
"color": 9442302,
|
2022-03-26 12:31:03 -05:00
|
|
|
"footer": {
|
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
2022-03-28 23:55:13 -05:00
|
|
|
"text": config.footerTxt
|
2022-03-26 12:31:03 -05:00
|
|
|
}
|
2022-03-26 11:02:17 -05:00
|
|
|
}});
|
2021-01-23 01:08:05 -06:00
|
|
|
}
|
|
|
|
};
|