goat
command
slot
No description
0
views
0
likes
0
installs
raw source
"use strict";
module.exports = {
config: { name: "slot", version: "1.0", author: "Badhon-00", countDown: 3, role: 0, category: "game", description: { en: "Play a simple slot game." }, guide: { en: "{pn}" } },
onStart: async ({ message }) => {
const icons = ["๐", "๐", "๐", "โญ", "๐", "7๏ธโฃ"];
const result = Array.from({ length: 3 }, () => icons[Math.floor(Math.random() * icons.length)]);
const win = result.every(icon => icon === result[0]);
return message.reply(`๐ฐ ${result.join(" | ")}\n${win ? "๐ Jackpot!" : "Try again!"}`);
}
};