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 = {
|
2022-04-18 11:25:40 -05:00
|
|
|
|
|
|
|
name: require('path').parse(__filename).name,
|
2022-04-21 18:09:21 -05:00
|
|
|
description: 'Gets bot ping',
|
2022-04-21 20:53:03 -05:00
|
|
|
options: [],
|
2022-04-21 18:09:21 -05:00
|
|
|
|
|
|
|
async execute (client, message, _, config) {
|
|
|
|
const index = Math.floor(Math.random() * config.locations.length);
|
|
|
|
const location = config.locations[index];
|
|
|
|
|
|
|
|
await message.channel.send({
|
|
|
|
embeds: [{
|
|
|
|
title: ':ping_pong: Ping',
|
|
|
|
description: `**Pong!** We pinged **${location}** and got ${client.ws.ping} ms.`,
|
|
|
|
color: 9442302,
|
|
|
|
footer: {
|
|
|
|
icon_url: message.author.displayAvatarURL(),
|
|
|
|
text: config.footerTxt
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
});
|
2021-01-23 01:08:05 -06:00
|
|
|
}
|
|
|
|
};
|