Simplify embed
This commit is contained in:
parent
057b8f66bd
commit
2c129c0e61
|
@ -1,17 +1,19 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "ping",
|
name: "ping",
|
||||||
description: "Gets bot ping",
|
description: "Gets bot ping",
|
||||||
execute(client, message, args) {
|
execute(client, message) {
|
||||||
|
const {footerTxt} = require('../config.json');
|
||||||
|
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": ":ping_pong: Ping",
|
"title": ":ping_pong: Ping",
|
||||||
"color": 9442302,
|
"description": "**Pong!** " + client.ws.ping + " ms.",
|
||||||
"fields": [
|
"color": 9442302,
|
||||||
{
|
"footer": {
|
||||||
"name": "Ping is " + client.ws.ping + " ms",
|
"icon_url": message.author.displayAvatarURL(),
|
||||||
"value": "If this is more than 350ms there may be a problem!"
|
"text": footerTxt
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
};
|
|
||||||
message.channel.send({ embed });
|
message.channel.send({ embed });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Reference in New Issue