millswelbeck148/SireimadeBotPublic · Bot Template

AISireImade appears to be a Telegram automation bot. Commands include /start, /about, /support, /id, /admin, /ban, /unban, /x. Observed in code: messaging, keyboards, games.

Utilityutility
ProfileTelegram
112 commands3 envUpdated 1h agoCreated Aug 27, 2026
Back to folder

commands/_dice.js

javascript · 90 lines

Raw
1/**#command2name: /dice3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// ==========================================================13// 🎲 GIFT AI — /dice14// PUBLIC COMMAND — EVERYONE CAN PLAY15// DIRECT REPLY TO USER16// FAST + ACCURATE + ERROR-SAFE17// ==========================================================18 19 20// ==========================================================21// ROLL 6-SIDED DICE22// ==========================================================23 24var dice = Math.floor(Math.random() * 6) + 1;25 26 27// ==========================================================28// DICE FACES29// ==========================================================30 31var faces = {32  1: "⚀",33  2: "⚁",34  3: "⚂",35  4: "⚃",36  5: "⚄",37  6: "⚅"38};39 40 41// ==========================================================42// GET USER NAME43// ==========================================================44 45var name = String(46  user.first_name ||47  "Player"48);49 50 51// ==========================================================52// GET MESSAGE ID53// ==========================================================54 55var messageId = null;56 57if (request && request.message_id) {58  messageId = request.message_id;59}60 61 62// ==========================================================63// SEND REPLY64// ==========================================================65 66var message = {67  text:68    "🎲 <b>GIFT DICE</b>\n\n" +69    "👤 <b>Player:</b> " + name + "\n" +70    "🎯 <b>Result:</b> " + faces[dice] +71    " <b>" + dice + "</b>\n\n" +72    "✨ Roll again with /dice!",73  parse_mode: "HTML"74};75 76 77// ==========================================================78// REPLY DIRECTLY TO USER'S MESSAGE79// ==========================================================80 81if (messageId) {82  message.reply_to_message_id = messageId;83}84 85 86// ==========================================================87// SEND88// ==========================================================89 90Api.sendMessage(message);