Skip to content

Instantly share code, notes, and snippets.

@A-d-i-t-h-y-a-n
Created June 19, 2022 06:27
Show Gist options
  • Save A-d-i-t-h-y-a-n/9316b919189abef79d5c944b775a7c75 to your computer and use it in GitHub Desktop.
Save A-d-i-t-h-y-a-n/9316b919189abef79d5c944b775a7c75 to your computer and use it in GitHub Desktop.
const { AddModule } = require("../main");
AddModule({pattern: 'alive', fromMe: false, desc: 'Bot response in second.'}, (async (m, client) => {
var start = new Date().getTime();
var msg = await m.reply('```Ping!```');
var end = new Date().getTime();
await m.reply('*Pong!*\n```' + (end - start) + 'ms```');
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment