Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. "use strict";
  2.  
  3. const command = require("../../extends/command");
  4.  
  5. module.exports = class ping extends command {
  6. /**
  7. * @constructor
  8. */
  9.  
  10. constructor(client) {
  11. super(client, {
  12. name: "ping",
  13. description: (language) => language.commands.ping.description,
  14. directory: __dirname,
  15. usage: "*ping",
  16. example: false,
  17. aliases: [],
  18. enabled: true,
  19. cooldown: 5,
  20. type: undefined,
  21. userperm: [],
  22. botperm: []
  23. });
  24. }
  25.  
  26. /**
  27. * @param {object} message
  28. */
  29.  
  30. async execute(message) {
  31. await message.channel.send("🏓 ping...").then((msg) => {
  32. msg.edit(`🏓 pong ! \`${msg.createdtimestamp - message.createdtimestamp}ms\``);
  33. });
  34. }
  35. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement