From d40dff711fca8e7f8965ff41dec7890e43e87a82 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 9 Jul 2019 04:26:30 +0200 Subject: [PATCH] Le funny ping message --- commands/utility/ping.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/commands/utility/ping.js b/commands/utility/ping.js index d496f218..04b361e5 100644 --- a/commands/utility/ping.js +++ b/commands/utility/ping.js @@ -5,6 +5,12 @@ class PingCommand extends Command { super('ping', { aliases: ['ping', 'hello'], category: 'utility', + args: [ + { + id: 'lazyping', + type: 'string', + } + ], description: { content: 'Ping the bot', 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 => { const timeDiff = (sent.editedAt || sent.createdAt) - (message.editedAt || message.createdAt); const text = `🔂\u2000**PING**: ${timeDiff} ms`;