Skip to content

Instantly share code, notes, and snippets.

@A-d-i-t-h-y-a-n
Last active August 15, 2023 16:52
Show Gist options
  • Save A-d-i-t-h-y-a-n/f7b0eee19a7e2b5926db1658d10476fd to your computer and use it in GitHub Desktop.
Save A-d-i-t-h-y-a-n/f7b0eee19a7e2b5926db1658d10476fd to your computer and use it in GitHub Desktop.
const { AddModule } = require("../main");
AddModule({pattern: 'menu', fromMe: false, desc: 'Bot response in second.'}, (async (m, client, text) => {
var start = new Date().getTime();
await m.reply('🙈');
var end = new Date().getTime();
client.sendMessage(m.chat, { text: '*SPEED!*\n```' + (end - start) + 'ms```', templateButtons: [
{index: 1, quickReplyButton: {displayText: '😂', id: '🥲'}},
{index: 2, quickReplyButton: {displayText: '😹', id: '😹'}},
{index: 3, quickReplyButton: {displayText: '😲', id: 'ping'}},
]});
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment