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/_auramove.js

javascript · 205 lines

Raw
1/**#command2name: /auramove3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// ==========================================================13// ⚔️ AURA BATTLE — PROCESS MOVE14// ==========================================================15 16var args = params ? params.split(" ") : [];17 18var move = args[0] ? String(args[0]).toLowerCase() : "";19var groupId = args[1] ? String(args[1]) : "";20 21var playerId = String(user.id);22 23// ----------------------------------------------------------24// VALIDATE MOVE25// ----------------------------------------------------------26 27if (28  move != "rock" &&29  move != "paper" &&30  move != "scissors"31) {32  Bot.sendMessage("❌ Invalid move.");33  return;34}35 36// ----------------------------------------------------------37// VALIDATE GAME38// ----------------------------------------------------------39 40if (!groupId) {41  Bot.sendMessage("⚠️ Battle session expired.");42  return;43}44 45var gameKey = "AURA_GAME_" + groupId;46var game = Bot.getProperty(gameKey);47 48if (!game) {49  Bot.sendMessage(50    "⚠️ <b>This Aura battle has already ended.</b>",51    {52      parse_mode: "HTML"53    }54  );55  return;56}57 58// ----------------------------------------------------------59// MAKE SURE PLAYER IS IN THIS GAME60// ----------------------------------------------------------61 62if (63  playerId != String(game.player1) &&64  playerId != String(game.player2)65) {66  Bot.sendMessage("🚫 You are not part of this Aura battle.");67  return;68}69 70// ----------------------------------------------------------71// SAVE PLAYER MOVE72// ----------------------------------------------------------73 74if (playerId == String(game.player1)) {75 76  if (game.choice1) {77    Bot.sendMessage("⚠️ You already chose your move.");78    return;79  }80 81  game.choice1 = move;82 83} else {84 85  if (game.choice2) {86    Bot.sendMessage("⚠️ You already chose your move.");87    return;88  }89 90  game.choice2 = move;91}92 93// ----------------------------------------------------------94// SAVE UPDATED GAME95// ----------------------------------------------------------96 97Bot.setProperty(gameKey, game, "json");98 99// ----------------------------------------------------------100// CONFIRM PRIVATE CHOICE101// ----------------------------------------------------------102 103var moveName = move.charAt(0).toUpperCase() + move.slice(1);104 105Bot.sendMessage(106  "✅ <b>Move locked!</b>\n\n" +107  "🎮 Your move: <b>" + moveName + "</b>\n" +108  "🔒 Your opponent cannot see it.\n\n" +109  "⏳ Waiting for the other player...",110  {111    parse_mode: "HTML"112  }113);114 115// ----------------------------------------------------------116// WAIT FOR BOTH PLAYERS117// ----------------------------------------------------------118 119if (!game.choice1 || !game.choice2) {120  return;121}122 123// ----------------------------------------------------------124// DETERMINE WINNER125// ----------------------------------------------------------126 127var p1 = game.choice1;128var p2 = game.choice2;129 130var winner = 0;131 132if (p1 == p2) {133 134  winner = 0;135 136} else if (137  (p1 == "rock" && p2 == "scissors") ||138  (p1 == "paper" && p2 == "rock") ||139  (p1 == "scissors" && p2 == "paper")140) {141 142  winner = 1;143 144} else {145 146  winner = 2;147}148 149// ----------------------------------------------------------150// RESULT TEXT151// ----------------------------------------------------------152 153var result = "";154 155if (winner == 0) {156 157  result =158    "🤝 <b>DRAW!</b>\n\n" +159    "Both players chose the same move.";160 161} else if (winner == 1) {162 163  result =164    "🏆 <b>" + game.player1_name + " WINS!</b>\n\n" +165    "👤 " + game.player1_name + ": <b>" +166    p1.charAt(0).toUpperCase() + p1.slice(1) +167    "</b>\n" +168    "👤 " + game.player2_name + ": <b>" +169    p2.charAt(0).toUpperCase() + p2.slice(1) +170    "</b>\n\n" +171    "⚡ " + game.player1_name + " has more Aura!";172 173} else {174 175  result =176    "🏆 <b>" + game.player2_name + " WINS!</b>\n\n" +177    "👤 " + game.player1_name + ": <b>" +178    p1.charAt(0).toUpperCase() + p1.slice(1) +179    "</b>\n" +180    "👤 " + game.player2_name + ": <b>" +181    p2.charAt(0).toUpperCase() + p2.slice(1) +182    "</b>\n\n" +183    "⚡ " + game.player2_name + " has more Aura!";184}185 186// ----------------------------------------------------------187// SEND RESULT TO GROUP188// ----------------------------------------------------------189 190Api.sendMessage({191  chat_id: groupId,192  text:193    "⚔️ <b>AURA BATTLE — RESULT</b>\n\n" +194    "👤 <b>" + game.player1_name + "</b> VS <b>" +195    game.player2_name + "</b>\n\n" +196    "🪨📄✂️\n\n" +197    result,198  parse_mode: "HTML"199});200 201// ----------------------------------------------------------202// DELETE GAME — ALLOWS NEXT BATTLE203// ----------------------------------------------------------204 205Bot.deleteProperty(gameKey);