Skip to content

Instantly share code, notes, and snippets.

@phaticusthiccy
Created January 15, 2021 19:22
Show Gist options
  • Save phaticusthiccy/bb516e72556e50986cdac4a1b6550273 to your computer and use it in GitHub Desktop.
Save phaticusthiccy/bb516e72556e50986cdac4a1b6550273 to your computer and use it in GitHub Desktop.
const Asena = require('../events');
const {MessageType, GroupSettingChange} = require('@adiwajshing/baileys');
Asena.addCommand({pattern: 'test ?(.*)', fromMe: true, deleteCommand: false}, (async (message, match) => {
if (match[1] === "bir") {
await message.sendMessage('test bir yazarsınız bu mesajı verir');
} else if (match[1] === "iki") {
await message.sendMessage('test iki yazarsınız bu mesajı verir');
} else if (match[1] === "üç") {
await message.sendMessage('test üç yazarsınız bu mesajı verir');
} else {
await message.sendMessage('Yukardaki parametreler girilmezse bu mesaj gelecektir');
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment