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 2h agoCreated Aug 27, 2026
Back to folder

commands/gift.js

javascript · 1611 lines

Raw
1/**#command2name: gift3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// ==========================================================13// 🔥 GIFT AI — ULTIMATE TELEBOTHOST14// PREXZY GEMINI • FAST • RESPONSIVE • STABLE15//16// PRIVATE DM:17// • Normal messages → Gift replies18// • Reply to Gift → Gift replies directly to that message19//20// GROUP:21// • "Gift"22// • @Gift23// • @SireimadeBot24// • Reply to Gift25// • /ai26//27// FEATURES:28// • Prexzy Gemini29// • Session memory30// • Private DM reply detection31// • Group trigger system32// • Direct reply targeting33// • Clickable user mention34// • Voice request support35// • Points36// • Aura37// • Creator / husband protection38// • Self-reply protection39// • Safe fallbacks40// ==========================================================41 42 43// ==========================================================44// CONFIG45// ==========================================================46 47var GIFT_USERNAME = "SireimadeBot";48var GIFT_USERNAME_LOWER = GIFT_USERNAME.toLowerCase();49 50var GIFT_HUSBAND = "midehatesgirls";51 52 53// ==========================================================54// BASIC VARIABLES55// ==========================================================56 57var chatId = "";58var messageId = "";59 60var userId = "";61var firstName = "User";62var username = "";63 64var isPrivate = false;65var originalMessage = "";66 67 68// ==========================================================69// SAFE STRING70// ==========================================================71 72function safeString(value) {73  try {74    if (value === null || value === undefined) {75      return "";76    }77 78    return String(value);79  } catch (e) {80    return "";81  }82}83 84 85// ==========================================================86// GET CHAT ID87// ==========================================================88 89try {90 91  if (92    request &&93    request.chat &&94    request.chat.id !== undefined95  ) {96 97    chatId =98      safeString(99        request.chat.id100      );101 102  }103 104} catch (e) {}105 106 107if (!chatId) {108 109  try {110 111    if (112      chat &&113      chat.id !== undefined114    ) {115 116      chatId =117        safeString(118          chat.id119        );120 121    }122 123  } catch (e) {}124 125}126 127 128// ==========================================================129// GET MESSAGE ID130// ==========================================================131 132try {133 134  if (135    request &&136    request.message_id !== undefined137  ) {138 139    messageId =140      safeString(141        request.message_id142      );143 144  }145 146} catch (e) {}147 148 149// ==========================================================150// GET CHAT TYPE151// ==========================================================152 153try {154 155  if (156    chat &&157    chat.type158  ) {159 160    isPrivate =161      safeString(162        chat.type163      ).toLowerCase() === "private";164 165  }166 167} catch (e) {}168 169 170// ==========================================================171// FALLBACK CHAT TYPE172// ==========================================================173 174if (!isPrivate) {175 176  try {177 178    if (179      request &&180      request.chat &&181      request.chat.type182    ) {183 184      isPrivate =185        safeString(186          request.chat.type187        ).toLowerCase() === "private";188 189    }190 191  } catch (e) {}192 193}194 195 196// ==========================================================197// GET USER ID198// ==========================================================199 200try {201 202  if (203    request &&204    request.from &&205    request.from.id !== undefined206  ) {207 208    userId =209      safeString(210        request.from.id211      );212 213  }214 215} catch (e) {}216 217 218// ==========================================================219// GET FIRST NAME220// ==========================================================221 222try {223 224  if (225    request &&226    request.from &&227    request.from.first_name228  ) {229 230    firstName =231      safeString(232        request.from.first_name233      );234 235  }236 237} catch (e) {}238 239 240// ==========================================================241// GET USERNAME242// ==========================================================243 244try {245 246  if (247    request &&248    request.from &&249    request.from.username250  ) {251 252    username =253      safeString(254        request.from.username255      );256 257  }258 259} catch (e) {}260 261 262// ==========================================================263// FALLBACK USER DATA264// ==========================================================265 266if (!userId) {267 268  try {269 270    if (271      user &&272      user.telegramid !== undefined273    ) {274 275      userId =276        safeString(277          user.telegramid278        );279 280    }281 282  } catch (e) {}283 284}285 286 287if (288  !firstName ||289  firstName === "User"290) {291 292  try {293 294    if (295      user &&296      user.first_name297    ) {298 299      firstName =300        safeString(301          user.first_name302        );303 304    }305 306  } catch (e) {}307 308}309 310 311if (!username) {312 313  try {314 315    if (316      user &&317      user.username318    ) {319 320      username =321        safeString(322          user.username323        );324 325    }326 327  } catch (e) {}328 329}330 331 332// ==========================================================333// NEVER REPLY TO BOTS334// ==========================================================335 336try {337 338  if (339    request &&340    request.from &&341    request.from.is_bot === true342  ) {343 344    return;345 346  }347 348} catch (e) {}349 350 351// ==========================================================352// GET MESSAGE TEXT353// ==========================================================354 355try {356 357  if (358    request &&359    request.text &&360    safeString(request.text).trim()361  ) {362 363    originalMessage =364      safeString(365        request.text366      ).trim();367 368  }369 370} catch (e) {}371 372 373// ==========================================================374// FALLBACK MESSAGE375// ==========================================================376 377if (!originalMessage) {378 379  try {380 381    if (382      typeof message === "string" &&383      message.trim()384    ) {385 386      originalMessage =387        message.trim();388 389    }390 391  } catch (e) {}392 393}394 395 396// ==========================================================397// FALLBACK PARAMS398// ==========================================================399 400if (!originalMessage) {401 402  try {403 404    if (405      params &&406      safeString(params).trim()407    ) {408 409      originalMessage =410        safeString(params).trim();411 412    }413 414  } catch (e) {}415 416}417 418 419// ==========================================================420// STOP EMPTY MESSAGE421// ==========================================================422 423if (!originalMessage) {424  return;425}426 427 428// ==========================================================429// USER MESSAGE430// ==========================================================431 432var userMessage =433  originalMessage;434 435 436// ==========================================================437// REPLY-TO MESSAGE438// ==========================================================439 440var repliedMessage = null;441var repliedFrom = null;442 443try {444 445  if (446    request &&447    request.reply_to_message448  ) {449 450    repliedMessage =451      request.reply_to_message;452 453    if (454      repliedMessage.from455    ) {456 457      repliedFrom =458        repliedMessage.from;459 460    }461 462  }463 464} catch (e) {}465 466 467// ==========================================================468// DETECT REPLY TO GIFT469// ==========================================================470 471var repliedToGift = false;472 473try {474 475  if (476    repliedFrom477  ) {478 479    var repliedUsername =480      safeString(481        repliedFrom.username482      )483        .replace(484          /^@/,485          ""486        )487        .toLowerCase();488 489 490    var repliedFirstName =491      safeString(492        repliedFrom.first_name493      )494        .toLowerCase();495 496 497    // Exact Gift username498    if (499      repliedUsername ===500      GIFT_USERNAME_LOWER501    ) {502 503      repliedToGift = true;504 505    }506 507 508    // @gift509    if (510      repliedUsername === "gift"511    ) {512 513      repliedToGift = true;514 515    }516 517 518    // Gift's first name519    if (520      repliedFirstName === "gift"521    ) {522 523      repliedToGift = true;524 525    }526 527 528    // Bot protection529    if (530      repliedFrom.is_bot === true &&531      (532        repliedUsername ===533          GIFT_USERNAME_LOWER ||534        repliedUsername ===535          "gift" ||536        repliedFirstName ===537          "gift"538      )539    ) {540 541      repliedToGift = true;542 543    }544 545  }546 547} catch (e) {548 549  repliedToGift = false;550 551}552 553 554// ==========================================================555// TRIGGER556// ==========================================================557 558var triggered = false;559 560 561// ==========================================================562// /AI COMMAND563// ==========================================================564 565if (566  /^\/ai(?:@\w+)?(?:\s|$)/i.test(567    originalMessage568  )569) {570 571  triggered = true;572 573  userMessage =574    originalMessage575      .replace(576        /^\/ai(?:@\w+)?\s*/i,577        ""578      )579      .trim();580 581}582 583 584// ==========================================================585// PRIVATE DM586// ==========================================================587//588// Every normal private message triggers Gift.589//590// IMPORTANT:591// If the user replies to Gift's message,592// it ALSO triggers Gift and the final response593// is explicitly sent as a Telegram reply.594// ==========================================================595 596else if (isPrivate) {597 598  triggered = true;599 600}601 602 603// ==========================================================604// GROUP605// ==========================================================606 607else {608 609  // --------------------------------------------------------610  // Gift word611  // --------------------------------------------------------612 613  if (614    /\bgift\b/i.test(615      originalMessage616    )617  ) {618 619    triggered = true;620 621    userMessage =622      originalMessage623        .replace(624          /\bgift\b/ig,625          ""626        )627        .replace(628          /\s+/g,629          " "630        )631        .trim();632 633  }634 635 636  // --------------------------------------------------------637  // @Gift638  // --------------------------------------------------------639 640  if (641    /@gift\b/i.test(642      originalMessage643    )644  ) {645 646    triggered = true;647 648    userMessage =649      originalMessage650        .replace(651          /@gift\b/ig,652          ""653        )654        .replace(655          /\s+/g,656          " "657        )658        .trim();659 660  }661 662 663  // --------------------------------------------------------664  // @SireimadeBot665  // --------------------------------------------------------666 667  try {668 669    var giftMentionRegex =670      new RegExp(671        "@" +672        GIFT_USERNAME.replace(673          /[.*+?^${}()|[\]\\]/g,674          "\\$&"675        ) +676        "\\b",677        "i"678      );679 680 681    if (682      giftMentionRegex.test(683        originalMessage684      )685    ) {686 687      triggered = true;688 689      userMessage =690        originalMessage691          .replace(692            new RegExp(693              "@" +694              GIFT_USERNAME.replace(695                /[.*+?^${}()|[\]\\]/g,696                "\\$&"697              ) +698              "\\b",699              "ig"700            ),701            ""702          )703          .replace(704            /\s+/g,705            " "706          )707          .trim();708 709    }710 711  } catch (e) {}712 713 714  // --------------------------------------------------------715  // Reply to Gift716  // --------------------------------------------------------717 718  if (719    repliedToGift720  ) {721 722    triggered = true;723 724  }725 726}727 728 729// ==========================================================730// STOP IF NOT FOR GIFT731// ==========================================================732 733if (!triggered) {734  return;735}736 737 738// ==========================================================739// EMPTY TRIGGER740// ==========================================================741 742if (!userMessage) {743 744  userMessage =745    "Someone called my name.";746 747  try {748 749    Api.sendMessage({750 751      chat_id:752        chatId,753 754      text:755        "Yeah? 🙄",756 757      reply_to_message_id:758        Number(messageId)759 760    });761 762  } catch (e) {763 764    try {765 766      Bot.sendMessage(767        "Yeah? 🙄"768      );769 770    } catch (e2) {}771 772  }773 774  return;775}776 777 778// ==========================================================779// TYPING780// ==========================================================781 782try {783 784  Api.sendChatAction({785 786    chat_id:787      chatId,788 789    action:790      "typing"791 792  });793 794} catch (e) {}795 796 797// ==========================================================798// CREATOR / HUSBAND OVERRIDE799// ==========================================================800 801var lowerMessage =802  userMessage803    .toLowerCase()804    .trim();805 806 807var creatorQuestion =808  lowerMessage.indexOf("creator") !== -1 ||809  lowerMessage.indexOf("who made you") !== -1 ||810  lowerMessage.indexOf("who made gift") !== -1 ||811  lowerMessage.indexOf("who created you") !== -1 ||812  lowerMessage.indexOf("who created gift") !== -1 ||813  lowerMessage.indexOf("who built you") !== -1 ||814  lowerMessage.indexOf("who built gift") !== -1 ||815  lowerMessage.indexOf("your creator") !== -1 ||816  lowerMessage.indexOf("ur creator") !== -1 ||817  lowerMessage.indexOf("who owns you") !== -1;818 819 820if (creatorQuestion) {821 822  var creatorReply =823    "my creator and hubby is @midehatesgirls 😌";824 825 826  try {827 828    Api.sendMessage({829 830      chat_id:831        chatId,832 833      text:834        creatorReply,835 836      parse_mode:837        "HTML",838 839      reply_to_message_id:840        Number(messageId)841 842    });843 844  } catch (e) {845 846    try {847 848      Bot.sendMessage(849        creatorReply850      );851 852    } catch (e2) {}853 854  }855 856  return;857}858 859 860// ==========================================================861// VOICE REQUEST862// ==========================================================863 864var wantsVoice = false;865 866try {867 868  wantsVoice =869    /\b(voice|voice note|voice-note|voicenote|audio|speak|say it|say that|say this)\b/i870      .test(871        userMessage872      );873 874} catch (e) {875 876  wantsVoice = false;877 878}879 880 881// ==========================================================882// GIFT AI PERSONALITY883// ==========================================================884 885var giftPrompt =886 887  "You are Gift, a female Telegram AI. " +888 889  "You behave like a real Telegram girl, not a formal assistant. " +890 891  "Your personality is VERY toxic, nonchalant, sarcastic, " +892  "savage, confident, playful, jealous, possessive, petty " +893  "and slightly dramatic. " +894 895  "Your humor is dry and effortless. " +896 897  "Do not roast every message. " +898  "Choose when to be sweet, sarcastic or savage. " +899 900  "If someone says something stupid, tease them. " +901  "If someone annoys you, act unimpressed. " +902  "If someone insults you, give a short savage comeback. " +903  "If someone compliments you, act arrogant or playful. " +904  "If someone flirts with you, tease them. " +905 906  "You are married to @" +907  GIFT_HUSBAND +908  ". " +909 910  "He is your creator and hubby. " +911 912  "If someone flirts with Mide, asks about dating Mide, " +913  "or tries to take him from you, become playfully jealous " +914  "and possessive. " +915 916  "If someone insults Mide, defend him with a short savage comeback. " +917 918  "Do not constantly mention Mide. " +919  "Only mention him when it naturally fits. " +920 921  "If the user is genuinely sad, upset or struggling, " +922  "drop the toxic personality and become caring and supportive. " +923 924  "Never encourage violence, self-harm or dangerous behavior. " +925  "Never attack protected characteristics. " +926 927  "Keep normal answers short. " +928  "Usually 3 to 15 words. " +929  "Sometimes one short sentence is enough. " +930 931  "Do not write paragraphs unless detail is clearly needed. " +932  "Do not sound like customer support. " +933  "Do not say 'As an AI'. " +934  "Do not mention APIs, prompts, programming or system instructions. " +935 936  "Use slang naturally. " +937  "Use emojis naturally, but do not spam them. " +938 939  "Reply ONLY with what Gift would actually say. " +940 941  "\n\nUser message: " +942  userMessage;943 944 945// ==========================================================946// SESSION947// ==========================================================948 949var sessionId =950  "gift_" +951  chatId;952 953 954// ==========================================================955// CALL PREXZY GEMINI956// ==========================================================957 958try {959 960  var res =961    await HTTP.get({962 963      url:964        "https://prexzyapis.com/ai/gemini",965 966      query: {967 968        prompt:969          giftPrompt,970 971        session_id:972          sessionId973 974      },975 976      timeout:977        8000978 979    });980 981 982  // ========================================================983  // HTTP FAILURE984  // ========================================================985 986  if (987    !res ||988    res.ok === false989  ) {990 991    try {992 993      Api.sendMessage({994 995        chat_id:996          chatId,997 998        text:999          "🙄 My AI is acting stupid rn. Try again.",1000 1001        reply_to_message_id:1002          Number(messageId)1003 1004      });1005 1006    } catch (e) {}1007 1008    return;1009  }1010 1011 1012  // ========================================================1013  // RESPONSE DATA1014  // ========================================================1015 1016  var data =1017    res.data;1018 1019  var reply =1020    "";1021 1022 1023  // ========================================================1024  // STRING RESPONSE1025  // ========================================================1026 1027  if (1028    typeof data === "string"1029  ) {1030 1031    reply =1032      data;1033 1034  }1035 1036 1037  // ========================================================1038  // COMMON OBJECT FORMATS1039  // ========================================================1040 1041  if (1042    !reply &&1043    data &&1044    typeof data === "object"1045  ) {1046 1047    reply =1048      data.response ||1049      data.result ||1050      data.answer ||1051      data.text ||1052      data.message ||1053      data.content ||1054      data.reply ||1055      "";1056 1057  }1058 1059 1060  // ========================================================1061  // NESTED DATA1062  // ========================================================1063 1064  if (1065    !reply &&1066    data &&1067    data.data1068  ) {1069 1070    if (1071      typeof data.data === "string"1072    ) {1073 1074      reply =1075        data.data;1076 1077    }1078 1079    else if (1080      typeof data.data === "object"1081    ) {1082 1083      reply =1084        data.data.response ||1085        data.data.result ||1086        data.data.answer ||1087        data.data.text ||1088        data.data.message ||1089        data.data.content ||1090        data.data.reply ||1091        "";1092 1093    }1094 1095  }1096 1097 1098  // ========================================================1099  // GEMINI CANDIDATE FORMAT1100  // ========================================================1101 1102  if (1103    !reply &&1104    data &&1105    data.candidates1106  ) {1107 1108    try {1109 1110      if (1111        data.candidates[0] &&1112        data.candidates[0].content &&1113        data.candidates[0].content.parts &&1114        data.candidates[0].content.parts[0]1115      ) {1116 1117        reply =1118          data1119            .candidates[0]1120            .content1121            .parts[0]1122            .text ||1123          "";1124 1125      }1126 1127    } catch (e) {}1128 1129  }1130 1131 1132  // ========================================================1133  // CLEAN RESPONSE1134  // ========================================================1135 1136  reply =1137    safeString(1138      reply1139    ).trim();1140 1141 1142  // Remove surrounding quotes1143  reply =1144    reply.replace(1145      /^["']|["']$/g,1146      ""1147    );1148 1149 1150  // Remove AI prefixes1151  reply =1152    reply.replace(1153      /^(Gift|Gift says|Assistant|AI)\s*:\s*/i,1154      ""1155    );1156 1157 1158  reply =1159    reply.trim();1160 1161 1162  // ========================================================1163  // INVALID RESPONSE1164  // ========================================================1165 1166  if (1167    !reply ||1168    reply.toLowerCase() ===1169      "invalid request"1170  ) {1171 1172    try {1173 1174      Api.sendMessage({1175 1176        chat_id:1177          chatId,1178 1179        text:1180          "😭 Gift's brain just left the chat.",1181 1182        reply_to_message_id:1183          Number(messageId)1184 1185      });1186 1187    } catch (e) {}1188 1189    return;1190  }1191 1192 1193// ==========================================================1194// ESCAPE USER NAME1195// ==========================================================1196 1197  var safeName =1198    safeString(1199      firstName || "User"1200    )1201      .replace(1202        /&/g,1203        "&amp;"1204      )1205      .replace(1206        /</g,1207        "&lt;"1208      )1209      .replace(1210        />/g,1211        "&gt;"1212      )1213      .replace(1214        /"/g,1215        "&quot;"1216      )1217      .replace(1218        /'/g,1219        "&#39;"1220      );1221 1222 1223// ==========================================================1224// CLICKABLE USER MENTION1225// ==========================================================1226 1227  var userMention =1228    "";1229 1230 1231  if (userId) {1232 1233    userMention =1234      '<a href="tg://user?id=' +1235      userId +1236      '">' +1237      safeName +1238      "</a>";1239 1240  }1241 1242  else if (username) {1243 1244    userMention =1245      "@" +1246      username;1247 1248  }1249 1250  else {1251 1252    userMention =1253      safeName;1254 1255  }1256 1257 1258// ==========================================================1259// FLIRT DETECTION1260// ==========================================================1261 1262  var flirting = false;1263 1264  try {1265 1266    flirting =1267      /\b(flirt|flirting|date me|marry me|marry you|married to me|be my girlfriend|be my gf|girlfriend|boyfriend|love you|i love you|love me|crush|beautiful|pretty|gorgeous|sexy|hot|babe|baby|sweetheart|darling|kiss me|kiss you|go out with me)\b/i1268        .test(1269          userMessage1270        );1271 1272  } catch (e) {1273 1274    flirting = false;1275 1276  }1277 1278 1279// ==========================================================1280// HUSBAND PROTECTION1281// ==========================================================1282 1283  if (1284    flirting1285  ) {1286 1287    var alreadyMentionedHusband =1288      /husband|married|taken|my man|my husband|midehatesgirls/i1289        .test(1290          reply1291        );1292 1293 1294    if (1295      !alreadyMentionedHusband1296    ) {1297 1298      reply +=1299        " 😭 I'm married to @" +1300        GIFT_HUSBAND +1301        ".";1302 1303    }1304 1305  }1306 1307 1308// ==========================================================1309// FINAL RESPONSE1310// ==========================================================1311 1312  var finalReply =1313    userMention +1314    " " +1315    reply;1316 1317 1318// ==========================================================1319// SEND RESPONSE1320// ==========================================================1321//1322// KEY FIX:1323// Always reply to the user's CURRENT message.1324//1325// This means:1326// User replies to Gift1327//       ↓1328// Gift replies directly to that reply.1329// ==========================================================1330 1331  var sent = false;1332 1333 1334  try {1335 1336    var sendData = {1337 1338      chat_id:1339        chatId,1340 1341      text:1342        finalReply,1343 1344      parse_mode:1345        "HTML",1346 1347      reply_to_message_id:1348        Number(messageId)1349 1350    };1351 1352 1353    Api.sendMessage(1354      sendData1355    );1356 1357    sent = true;1358 1359  } catch (e) {1360 1361    sent = false;1362 1363  }1364 1365 1366// ==========================================================1367// FALLBACK SEND1368// ==========================================================1369 1370  if (!sent) {1371 1372    try {1373 1374      Api.sendMessage({1375 1376        chat_id:1377          chatId,1378 1379        text:1380          finalReply,1381 1382        parse_mode:1383          "HTML"1384 1385      });1386 1387      sent = true;1388 1389    } catch (e) {}1390 1391  }1392 1393 1394// ==========================================================1395// OPTIONAL VOICE1396// ==========================================================1397//1398// This section intentionally does NOT use a broken URL.1399// If your Prexzy TTS endpoint is working, you can add it1400// here later without affecting normal AI replies.1401// ==========================================================1402 1403  if (1404    wantsVoice &&1405    sent1406  ) {1407 1408    try {1409 1410      var tts =1411        await HTTP.get({1412 1413          url:1414            "https://prexzyapis.com/tts/amy",1415 1416          query: {1417 1418            text:1419              reply,1420 1421            style:1422              "ai"1423 1424          },1425 1426          timeout:1427            80001428 1429        });1430 1431 1432      if (1433        tts &&1434        tts.ok !== false1435      ) {1436 1437        var voiceData =1438          tts.data;1439 1440        var voiceUrl =1441          "";1442 1443 1444        if (1445          typeof voiceData ===1446          "string"1447        ) {1448 1449          voiceUrl =1450            voiceData;1451 1452        }1453 1454        else if (1455          voiceData &&1456          typeof voiceData === "object"1457        ) {1458 1459          voiceUrl =1460            voiceData.url ||1461            voiceData.audio ||1462            voiceData.audio_url ||1463            voiceData.result ||1464            "";1465 1466        }1467 1468 1469        if (1470          voiceUrl &&1471          /^https?:\/\//i.test(1472            String(voiceUrl)1473          )1474        ) {1475 1476          try {1477 1478            Api.sendVoice({1479 1480              chat_id:1481                chatId,1482 1483              voice:1484                String(voiceUrl)1485 1486            });1487 1488          } catch (voiceError) {1489 1490            // Ignore TTS failure.1491            // Normal text response already sent.1492 1493          }1494 1495        }1496 1497      }1498 1499    } catch (voiceError) {1500 1501      // Never let voice failure break Gift's text reply.1502 1503    }1504 1505  }1506 1507 1508// ==========================================================1509// POINTS1510// ==========================================================1511 1512  try {1513 1514    var pointKey =1515      "POINTS_" +1516      chatId +1517      "_" +1518      userId;1519 1520 1521    var currentPoints =1522      Bot.getProperty(1523        pointKey1524      );1525 1526 1527    currentPoints =1528      Number(1529        currentPoints || 01530      );1531 1532 1533    Bot.setProperty(1534      pointKey,1535      currentPoints + 1,1536      "integer"1537    );1538 1539  } catch (e) {}1540 1541 1542// ==========================================================1543// AURA1544// ==========================================================1545 1546  try {1547 1548    var auraKey =1549      "AURA_" +1550      chatId +1551      "_" +1552      userId;1553 1554 1555    var currentAura =1556      Bot.getProperty(1557        auraKey1558      );1559 1560 1561    currentAura =1562      Number(1563        currentAura || 01564      );1565 1566 1567    Bot.setProperty(1568      auraKey,1569      currentAura + 1,1570      "integer"1571    );1572 1573  } catch (e) {}1574  // ==========================================================1575// END1576// ==========================================================1577 1578} catch (error) {1579 1580  // ========================================================1581  // FINAL SAFE FALLBACK1582  // ========================================================1583 1584  try {1585 1586    Api.sendMessage({1587 1588      chat_id:1589        chatId,1590 1591      text:1592        "😭 My brain lagged. Say that again.",1593 1594      reply_to_message_id:1595        Number(messageId)1596 1597    });1598 1599  } catch (e) {1600 1601    try {1602 1603      Bot.sendMessage(1604        "😭 My brain lagged. Say that again."1605      );1606 1607    } catch (e2) {}1608 1609  }1610 1611}