Skip to content

Instantly share code, notes, and snippets.

@ahgsql
Created May 13, 2021 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahgsql/0c630d26ae43547b8095e7f70202af0c to your computer and use it in GitHub Desktop.
Save ahgsql/0c630d26ae43547b8095e7f70202af0c to your computer and use it in GitHub Desktop.
asenaplugintest.js
const Asena = require('../events');
const{MessageType} = require('@adiwajshing/baileys');
Asena.addCommand({pattern: 'testimiz', fromMe: true}, (async (message, match) => {
await message.sendMessage('Bu bir testtir!');
await new Promise(r => setTimeout(r, 1000));
await message.sendMessage('1 saniyeden sonra!');
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment