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.
anitrox/commands/ping.js

18 lines
515 B
JavaScript

const { locations } = require('../config.json');
module.exports = {
name: "ping",
description: "Gets bot ping",
async execute(client, message, _, footer) {
const index = Math.floor(Math.random() * locations.length);
const pingLocation = locations[index]
await message.channel.send({embed:{
"title": ":ping_pong: Ping",
"description": "**Pong!** We pinged **" + pingLocation + "** and got " + client.ws.ping + " ms.",
"color": 9442302,
"footer": footer
}});
}
};