Skip to content

Instantly share code, notes, and snippets.

@phaticusthiccy
Created December 17, 2020 18:57
Show Gist options
  • Save phaticusthiccy/63a725fe9c009684ec5bfd8f4d726a86 to your computer and use it in GitHub Desktop.
Save phaticusthiccy/63a725fe9c009684ec5bfd8f4d726a86 to your computer and use it in GitHub Desktop.
/* 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: 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*")
}));
Asena.addCommand({pattern: 'dice', fromMe: true}, (async (message, match) => {
await message.sendMessage("🎰 *The Game Beginning! Get Ready.* ✊🏻\n Type *.roll* to get start.");
}));
Asena.addCommand({pattern: 'roll', fromMe: true}, (async (message, match) => {
await message.sendMessage("🍀 *Dice Rolling!* 🎲");
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(`*Dice Rolled:* ${r_text[i]}`);
}));
Asena.addCommand({pattern: 'infodice', fromMe: true}, (async (message, match) => {
await message.sendMessage("*Codded by @phaticusthiccy*\nRoll dice randomly and set up a game.\n💻Usage: *.dice*")
}));
@mrnincompoop
Copy link

mrnincompoop commented Dec 31, 2020

How can i install this

@phaticusthiccy
Copy link
Author

phaticusthiccy commented Dec 31, 2020

How can i install this

Fist you must use WhatsAsena ( You Can Install Here )
Then copy the link of this page. And then type this .install (link)
Finally u must type .infodice to get info. 🥇
Happy Christmas 🎅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment