Skip to content

Instantly share code, notes, and snippets.

@KOULIKS94
Forked from devdrops/pings.yml
Last active February 8, 2025 15:55
Show Gist options
  • Select an option

  • Save KOULIKS94/c069f46eb6152b144c6f22223255bd1f to your computer and use it in GitHub Desktop.

Select an option

Save KOULIKS94/c069f46eb6152b144c6f22223255bd1f to your computer and use it in GitHub Desktop.
pings
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('*```HAA HAA DETA HU RUK!```!*\n ```' + (end - start) + '``` *ms*')
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment