Last active
December 14, 2020 20:54
-
-
Save phaticusthiccy/effe9ead9dc50e677223b753a8b4de77 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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