Spaces:
Paused
Paused
| const { bot } = require('../lib/') | |
| bot( | |
| { | |
| pattern: 'ping ?(.*)', | |
| desc: 'To check ping', | |
| type: 'misc', | |
| }, | |
| async (message, match) => { | |
| const start = new Date().getTime() | |
| await message.send('```Ping!```') | |
| const end = new Date().getTime() | |
| return await message.send('*Pong!*\n ```' + (end - start) + '``` *ms*') | |
| } | |
| ) | |