add embed to ping.js & pass in args, cfg to commands
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
module.exports = {
|
||||
name: 'ping',
|
||||
execute(msg) {
|
||||
execute(msg, args, cfg) {
|
||||
const pingembed = {
|
||||
color: cfg.hexBlue,
|
||||
title: `ping`,
|
||||
timestamp: new Date(),
|
||||
description: `Pong! ${Date.now() - msg.createdTimestamp}`,
|
||||
};
|
||||
msg.channel.send(`pong`);
|
||||
msg.channel.send({ embeds: [pingembed] });
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user