Now pinging locations.

This commit is contained in:
IDeletedSystem64 2022-03-19 10:43:33 -05:00
parent 1ce2063071
commit d47a280bad
1 changed files with 5 additions and 3 deletions

View File

@ -2,11 +2,13 @@ module.exports = {
name: "ping",
description: "Gets bot ping",
execute(client, message) {
const {footerTxt} = require('../config.json');
const {footerTxt, locations} = require('../config.json');
const embed = {
const index = Math.floor(Math.random() * (locations.length -1 ) + 1);
PingLocation = locations[index]
const embed = {
"title": ":ping_pong: Ping",
"description": "**Pong!** " + client.ws.ping + " ms.",
"description": "**Pong!** We pinged **" + PingLocation + "** and got " + client.ws.ping + " ms.",
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),