Created
February 13, 2021 23:54
-
-
Save phaticusthiccy/1321e8285f7f8677e5f98f2d7d795bf0 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
/* Codded by @phaticusthiccy | |
Telegram: t.me/phaticusthiccy | |
Instagram: www.instagram.com/kyrie.baran | |
*/ | |
const Asena = require('../events'); | |
const {MessageType} = require('@adiwajshing/baileys'); | |
Asena.addCommand({pattern: 'zar', fromMe: true}, (async (message, match) => { | |
await message.sendMessage("🎰 _Oyun Başlıyor! Oyuncuları Hazırlansın._ ✊🏻\nBaşlatmak için *.at* yazın!"); | |
})); | |
Asena.addCommand({pattern: 'at', fromMe: false, dontAddCommandList: true}, (async (message, match) => { | |
await message.sendMessage("🍀 *Zar Atılıyor!* 🎲"); | |
await new Promise(r => setTimeout(r, 4000)); | |
var r_text = new Array (); | |
r_text[0] = "🎲 *1* 🎲"; | |
r_text[1] = "🎲 *2* 🎲"; | |
r_text[2] = "🎲 *3* 🎲"; | |
r_text[3] = "🎲 *4* 🎲"; | |
r_text[4] = "🎲 *5* 🎲"; | |
r_text[5] = "🎲 *6* 🎲"; | |
var i = Math.floor(6*Math.random()) | |
await message.sendMessage(`*Zar atıldı:* ${r_text[i]}`); | |
})); | |
Asena.addCommand({pattern: 'infozar', fromMe: true}, (async (message, match) => { | |
await message.sendMessage("*Codded by @phaticusthiccy*\nRastgele zar atarak oyun kurabileceğiniz bir plugin.\n💻Usage: *.zar*") | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment