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

javascript · 305 lines

Raw
1/**#command2name: /kill3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// ==========================================================13// 💀 GIFT — /kill14// FICTIONAL KILL GAME15//16// Usage:17//   /kill @username18//   /kill [reply to someone's message]19//20// Gift replies directly to the COMMAND USER21// and tags the TARGET.22// ==========================================================23 24 25// ----------------------------------------------------------26// GET COMMAND USER27// ----------------------------------------------------------28 29var killerId = String(30  user.telegramid ||31  user.id ||32  ""33);34 35var killerName = String(36  user.first_name ||37  "you"38);39 40 41// ----------------------------------------------------------42// GET COMMAND MESSAGE ID43// ----------------------------------------------------------44 45var messageId = null;46 47if (request && request.message_id) {48  messageId = request.message_id;49}50 51 52// ----------------------------------------------------------53// FIND TARGET54// ----------------------------------------------------------55 56var target = null;57var targetId = "";58var targetName = "";59var targetUsername = "";60 61 62// ----------------------------------------------------------63// TARGET FROM REPLY64// ----------------------------------------------------------65 66if (67  request &&68  request.reply_to_message &&69  request.reply_to_message.from70) {71  target = request.reply_to_message.from;72}73 74 75// ----------------------------------------------------------76// TARGET FROM @USERNAME77// ----------------------------------------------------------78 79var input = String(params || "").trim();80 81if (!target && input) {82 83  var parts = input.split(/\s+/);84  var firstArg = parts[0];85 86  if (firstArg.charAt(0) === "@") {87 88    targetUsername = firstArg.substring(1).trim();89    targetName = firstArg;90  }91}92 93 94// ----------------------------------------------------------95// HELPER — ESCAPE HTML96// ----------------------------------------------------------97 98function escapeHTML(text) {99 100  return String(text || "")101    .replace(/&/g, "&amp;")102    .replace(/</g, "&lt;")103    .replace(/>/g, "&gt;")104    .replace(/"/g, "&quot;")105    .replace(/'/g, "&#39;");106}107 108 109// ----------------------------------------------------------110// NO TARGET111// ----------------------------------------------------------112 113if (!target && !targetUsername) {114 115  var noTargetMessage = {116    text:117      "💀 <b>GIFT KILL SYSTEM</b>\n\n" +118      "Gift: " + escapeHTML(killerName) +119      ", who exactly am I killing? 😭\n\n" +120      "Reply to someone's message with <code>/kill</code>\n" +121      "or use <code>/kill @username</code>.",122    parse_mode: "HTML"123  };124 125  if (messageId) {126    noTargetMessage.reply_to_message_id = messageId;127  }128 129  Api.sendMessage(noTargetMessage);130 131  return;132}133 134 135// ----------------------------------------------------------136// BUILD TARGET MENTION137// ----------------------------------------------------------138 139var targetMention = "";140 141if (target) {142 143  targetId = String(144    target.id ||145    target.telegramid ||146    ""147  );148 149  var firstName = String(150    target.first_name ||151    ""152  ).trim();153 154  var lastName = String(155    target.last_name ||156    ""157  ).trim();158 159  targetName = (160    firstName + " " + lastName161  ).trim();162 163 164  // --------------------------------------------------------165  // FALLBACK TARGET NAME166  // --------------------------------------------------------167 168  if (!targetName) {169 170    if (target.username) {171      targetName = "@" + target.username;172    } else {173      targetName = "that user";174    }175  }176 177 178  // --------------------------------------------------------179  // CLICKABLE TELEGRAM MENTION180  // --------------------------------------------------------181 182  if (targetId) {183 184    targetMention =185      '<a href="tg://user?id=' +186      targetId +187      '">' +188      escapeHTML(targetName) +189      "</a>";190 191  } else if (target.username) {192 193    targetMention =194      "@" +195      escapeHTML(target.username);196 197  } else {198 199    targetMention =200      escapeHTML(targetName);201  }202 203} else {204 205  // --------------------------------------------------------206  // USERNAME TARGET207  // --------------------------------------------------------208 209  targetMention =210    "@" +211    escapeHTML(targetUsername);212}213 214 215// ----------------------------------------------------------216// RANDOM GIFT KILL SCENES217// ----------------------------------------------------------218 219var kills = [220 221  "🔫 Gift pulled the trigger on " +222  targetMention +223  ". <b>Target eliminated.</b> 💀",224 225  "☠️ Gift found " +226  targetMention +227  " and sent them straight to the shadow realm.",228 229  "⚔️ Gift challenged " +230  targetMention +231  " to a fight. It lasted approximately 2 seconds. 💀",232 233  "💀 Gift looked at " +234  targetMention +235  " and simply said: <b>you're done.</b>",236 237  "🪦 Gift has officially added " +238  targetMention +239  " to the fictional graveyard.",240 241  "💥 Gift activated <b>INSTANT KILL MODE</b> on " +242  targetMention +243  ".",244 245  "🔨 Gift bonked " +246  targetMention +247  " into the afterlife. Absolutely disrespectful. 😭",248 249  "☠️ Gift caught " +250  targetMention +251  " lacking and ended the game immediately.",252 253  "🧹 Gift cleaned the battlefield by removing " +254  targetMention +255  ". 💀",256 257  "💀 Gift gave " +258  targetMention +259  " a one-way ticket to the shadow realm. No return trip."260];261 262 263// ----------------------------------------------------------264// RANDOM RESULT265// ----------------------------------------------------------266 267var result =268  kills[269    Math.floor(270      Math.random() * kills.length271    )272  ];273 274 275// ----------------------------------------------------------276// FINAL RESPONSE277// DIRECT REPLY TO COMMAND USER278// ----------------------------------------------------------279 280var finalMessage = {281  text:282    "💀 <b>GIFT KILL SYSTEM</b>\n\n" +283    escapeHTML(killerName) +284    ", you really wanted this? 😭\n\n" +285    result +286    "\n\n" +287    "🎮 <i>Fictional kill — nobody was actually harmed.</i>",288  parse_mode: "HTML"289};290 291 292// ----------------------------------------------------------293// REPLY TO /kill MESSAGE294// ----------------------------------------------------------295 296if (messageId) {297  finalMessage.reply_to_message_id = messageId;298}299 300 301// ----------------------------------------------------------302// SEND303// ----------------------------------------------------------304 305Api.sendMessage(finalMessage);