Created
January 15, 2021 19:22
-
-
Save phaticusthiccy/bb516e72556e50986cdac4a1b6550273 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, 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