forked from Supositware/Haha-Yes
Le funny ping message
This commit is contained in:
parent
bb01ce69ac
commit
d40dff711f
1 changed files with 8 additions and 1 deletions
|
@ -5,6 +5,12 @@ class PingCommand extends Command {
|
||||||
super('ping', {
|
super('ping', {
|
||||||
aliases: ['ping', 'hello'],
|
aliases: ['ping', 'hello'],
|
||||||
category: 'utility',
|
category: 'utility',
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
id: 'lazyping',
|
||||||
|
type: 'string',
|
||||||
|
}
|
||||||
|
],
|
||||||
description: {
|
description: {
|
||||||
content: 'Ping the bot',
|
content: 'Ping the bot',
|
||||||
usage: '',
|
usage: '',
|
||||||
|
@ -13,7 +19,8 @@ class PingCommand extends Command {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec(message) {
|
async exec(message, args) {
|
||||||
|
if (args.lazyping) return message.channel.send('Ping him yourself you lazy ass');
|
||||||
return message.util.reply('Pong!').then(sent => {
|
return message.util.reply('Pong!').then(sent => {
|
||||||
const timeDiff = (sent.editedAt || sent.createdAt) - (message.editedAt || message.createdAt);
|
const timeDiff = (sent.editedAt || sent.createdAt) - (message.editedAt || message.createdAt);
|
||||||
const text = `🔂\u2000**PING**: ${timeDiff} ms`;
|
const text = `🔂\u2000**PING**: ${timeDiff} ms`;
|
||||||
|
|
Loading…
Reference in a new issue