← back to browse
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!"}`);
	}
};

View raw file