Skip to content

Instantly share code, notes, and snippets.

@phaticusthiccy
Last active December 14, 2020 20:54
Show Gist options
  • Select an option

  • Save phaticusthiccy/effe9ead9dc50e677223b753a8b4de77 to your computer and use it in GitHub Desktop.

Select an option

Save phaticusthiccy/effe9ead9dc50e677223b753a8b4de77 to your computer and use it in GitHub Desktop.
const Asena = require('../events');
const {MessageType} = require('@adiwajshing/baileys');
Asena.addCommand({pattern: 'sessiz1', fromMe: true, desc: 'Close Chat for 1 Min. Type to .sessiz1. • Sohbeti 1 dakikalığına kapatır! Kullanmak için .sessiz1 yaz.'}, (async (message, match) => {
await new Promise(r => setTimeout(r, 2000));
await message.sendMessage('*Grup 1 dakika süreyle susturuldu!*');
await new Promise(r => setTimeout(r, 2000));
await message.sendMessage('•mute all');
await new Promise(r => setTimeout(r, 60000));
await message.sendMessage('•unmute');
await new Promise(r => setTimeout(r, 2000));
await message.sendMessage('*Pekâlâ Patron. Sohbet tekrardan açılmıştır!*');
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment