aboutsummaryrefslogtreecommitdiff
path: root/commands/Getting Started/ping.js
blob: 365c9f4854d1b86fcd6cf0046a8e077e0e3ee676 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/** **************************************
 *
 *   Ping: Plugin for PokeBot that provides diagnostic information.
 *   Copyright (C) 2018 TheEdge, jtsshieh, Alee
 *
 *   Licensed under the Open Software License version 3.0
 *
 * *************************************/

exports.run = (bot, msg) => {
  msg.channel.send(':ping_pong: Pong! ' + Math.floor(bot.ping) + 'ms.');
};

exports.conf = {
  aliases: [],
  guildOnly: true,
};

exports.help = {
  name: 'ping',
  description: 'Pings the bot and replies with the latency.',
};