Skip to content

Instantly share code, notes, and snippets.

@phaticusthiccy
Created March 1, 2021 00:24
Show Gist options
  • Save phaticusthiccy/68988a830e102f7f3a84d0131d2a1e71 to your computer and use it in GitHub Desktop.
Save phaticusthiccy/68988a830e102f7f3a84d0131d2a1e71 to your computer and use it in GitHub Desktop.
const Asena = require('../events');
const {MessageType,Mimetype} = require('@adiwajshing/baileys');
Asena.addCommand({pattern: 'test', fromMe: true}, (async (message, match) => {
var text = new Array ();
text[0] = "Herhangi Bir Şey";
text[1] = "Herhangi bir Şey";
var i = Math.floor(2*Math.random())
await message.client.sendMessage(message.jid,`${text[i]}`, MessageType.text);
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment