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

javascript · 143 lines

Raw
1/**#command2name: /aura3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// ==========================================================13// ⚔️ AURA BATTLE — START GAME14// Reply to a user's message with /aura15// ==========================================================16 17var groupId = String(chat.id);18var player1 = String(user.id);19 20// ----------------------------------------------------------21// MUST REPLY TO SOMEONE22// ----------------------------------------------------------23 24if (!request.reply_to_message) {25  Bot.sendMessage(26    "⚔️ <b>AURA BATTLE</b>\n\n" +27    "Reply to someone's message with <code>/aura</code> to challenge them.",28    {29      parse_mode: "HTML"30    }31  );32  return;33}34 35// ----------------------------------------------------------36// GET OPPONENT37// ----------------------------------------------------------38 39var opponent = request.reply_to_message.from;40 41if (!opponent || !opponent.id) {42  Bot.sendMessage("❌ I couldn't identify that player.");43  return;44}45 46var player2 = String(opponent.id);47 48// ----------------------------------------------------------49// SELF CHALLENGE50// ----------------------------------------------------------51 52if (player1 == player2) {53  Bot.sendMessage("💀 You can't challenge yourself.");54  return;55}56 57// ----------------------------------------------------------58// GAME KEY59// ----------------------------------------------------------60 61var gameKey = "AURA_GAME_" + groupId;62 63var existingGame = Bot.getProperty(gameKey);64 65if (existingGame) {66  Bot.sendMessage(67    "⚔️ <b>An Aura battle is already in progress.</b>\n\n" +68    "Wait for the current battle to finish.",69    {70      parse_mode: "HTML"71    }72  );73  return;74}75 76// ----------------------------------------------------------77// PLAYER NAMES78// ----------------------------------------------------------79 80var player1Name = user.first_name || "Player 1";81var player2Name = opponent.first_name || "Player 2";82 83// ----------------------------------------------------------84// CREATE GAME85// ----------------------------------------------------------86 87var game = {88  chat_id: groupId,89 90  player1: player1,91  player2: player2,92 93  player1_name: player1Name,94  player2_name: player2Name,95 96  choice1: null,97  choice2: null,98 99  started: Date.now()100};101 102Bot.setProperty(gameKey, game, "json");103 104// ----------------------------------------------------------105// GROUP ANNOUNCEMENT106// ----------------------------------------------------------107 108Bot.sendMessage(109  "⚔️ <b>AURA BATTLE</b>\n\n" +110  "👤 <b>" + player1Name + "</b> VS <b>" + player2Name + "</b>\n\n" +111  "🎮 Both players must choose their move.\n" +112  "🔒 Moves are hidden until both players choose.\n\n" +113  "⏳ Battle started!",114  {115    parse_mode: "HTML"116  }117);118 119// ----------------------------------------------------------120// SEND PLAYER 1 PRIVATE MENU121// ----------------------------------------------------------122 123Bot.run({124  command: "/auraPrivate",125  user_id: player1,126  options: {127    groupId: groupId,128    opponent: player2Name129  }130});131 132// ----------------------------------------------------------133// SEND PLAYER 2 PRIVATE MENU134// ----------------------------------------------------------135 136Bot.run({137  command: "/auraPrivate",138  user_id: player2,139  options: {140    groupId: groupId,141    opponent: player1Name142  }143});