Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "use strict";
- const command = require("../../extends/command");
- module.exports = class ping extends command {
- /**
- * @constructor
- */
- constructor(client) {
- super(client, {
- name: "ping",
- description: (language) => language.commands.ping.description,
- directory: __dirname,
- usage: "*ping",
- example: false,
- aliases: [],
- enabled: true,
- cooldown: 5,
- type: undefined,
- userperm: [],
- botperm: []
- });
- }
- /**
- * @param {object} message
- */
- async execute(message) {
- await message.channel.send("🏓 ping...").then((msg) => {
- msg.edit(`🏓 pong ! \`${msg.createdtimestamp - message.createdtimestamp}ms\``);
- });
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement