Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save phaticusthiccy/4eb0efbdfde21e8b1520a86c6ca8f8ff to your computer and use it in GitHub Desktop.
const Asena = require('../events');
const {MessageType} = require('@adiwajshing/baileys');
Asena.addCommand({pattern: 'sessiz1', fromMe: true}, (async (message, match) => {
await new Promise(r => setTimeout(r, 1000));
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, 3000));
await message.sendMessage('*Pekâlâ Patron. Sohbet tekrardan açılmıştır!*');
}));
Asena.addCommand({pattern: 'infosessiz1', fromMe: true,}, (async (message, match) => {
await message.sendMessage('*Codded by @phaticusthiccy*\nSilence the chat for one minute.\nUsage: *.sessiz1*')
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment