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
112 commands3 envUpdated 1h agoCreated Aug 27, 2026
commands/..js
javascript · 1263 lines
1/**#command2name: .3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 110#command**/11 12// ==========================================================13// 💗 GIFT AI — TELEBOTHOST + PREXZY GEMINI14// CLEAN • STABLE • RESPONSIVE15// UPDATED 2026-09-0416//17// PRIVATE:18// • Replies to normal messages19//20// GROUP:21// • Gift22// • @Gift23// • @SireimadeBot24// • Reply to Gift25// • /ai26//27// NO "." PREFIX REQUIRED28// ==========================================================29 30 31// ==========================================================32// CONFIG33// ==========================================================34 35var GIFT_USERNAME = "SireimadeBot";36var GIFT_HUBBY = "@midehatesgirls";37 38 39// ==========================================================40// BASIC VARIABLES41// ==========================================================42 43var chatId = "";44var messageId = "";45var userId = "";46 47var firstName = "User";48var username = "";49 50var isPrivate = false;51 52var originalMessage = "";53var userMessage = "";54 55 56// ==========================================================57// GET CHAT58// ==========================================================59 60try {61 62 if (63 request &&64 request.chat &&65 request.chat.id66 ) {67 68 chatId = String(69 request.chat.id70 );71 72 }73 74} catch (e) {}75 76 77if (!chatId) {78 79 try {80 81 if (82 chat &&83 chat.id84 ) {85 86 chatId = String(87 chat.id88 );89 90 }91 92 } catch (e) {}93 94}95 96 97// ==========================================================98// GET MESSAGE ID99// ==========================================================100 101try {102 103 if (104 request &&105 request.message_id106 ) {107 108 messageId = String(109 request.message_id110 );111 112 }113 114} catch (e) {}115 116 117// ==========================================================118// CHECK PRIVATE119// ==========================================================120 121try {122 123 if (124 chat &&125 chat.type126 ) {127 128 isPrivate =129 String(chat.type).toLowerCase() === "private";130 131 }132 133} catch (e) {}134 135 136// ==========================================================137// USER DATA138// ==========================================================139 140try {141 142 if (143 request &&144 request.from &&145 request.from.id146 ) {147 148 userId =149 String(150 request.from.id151 );152 153 }154 155} catch (e) {}156 157 158try {159 160 if (161 request &&162 request.from &&163 request.from.first_name164 ) {165 166 firstName =167 String(168 request.from.first_name169 );170 171 }172 173} catch (e) {}174 175 176try {177 178 if (179 request &&180 request.from &&181 request.from.username182 ) {183 184 username =185 String(186 request.from.username187 );188 189 }190 191} catch (e) {}192 193 194// ==========================================================195// DON'T REPLY TO BOTS196// ==========================================================197 198try {199 200 if (201 request &&202 request.from &&203 request.from.is_bot === true204 ) {205 206 return;207 208 }209 210} catch (e) {}211 212 213// ==========================================================214// GET TEXT215// ==========================================================216 217try {218 219 if (220 request &&221 request.text222 ) {223 224 originalMessage =225 String(226 request.text227 ).trim();228 229 }230 231} catch (e) {}232 233 234if (!originalMessage) {235 236 try {237 238 if (239 typeof message === "string"240 ) {241 242 originalMessage =243 message.trim();244 245 }246 247 } catch (e) {}248 249}250 251 252if (!originalMessage) {253 254 try {255 256 if (257 params258 ) {259 260 originalMessage =261 String(262 params263 ).trim();264 265 }266 267 } catch (e) {}268 269}270 271 272userMessage =273 originalMessage;274 275 276// ==========================================================277// EMPTY MESSAGE278// ==========================================================279 280if (!originalMessage) {281 282 return;283 284}285 286 287// ==========================================================288// TRIGGER289// ==========================================================290 291var triggered = false;292 293 294// ==========================================================295// /AI296// ==========================================================297//298// /ai hello299// /ai@SireimadeBot hello300//301// NO "." REQUIRED302// ==========================================================303 304if (305 /^\/ai(?:@\w+)?(?:\s|$)/i.test(306 originalMessage307 )308) {309 310 triggered = true;311 312 userMessage =313 originalMessage314 .replace(315 /^\/ai(?:@\w+)?\s*/i,316 ""317 )318 .trim();319 320}321 322 323// ==========================================================324// PRIVATE CHAT325// ==========================================================326 327else if (isPrivate) {328 329 triggered = true;330 331}332 333 334// ==========================================================335// GROUP336// ==========================================================337 338else {339 340 // --------------------------------------------------------341 // GIFT WORD342 // --------------------------------------------------------343 344 if (345 /\bgift\b/i.test(346 originalMessage347 )348 ) {349 350 triggered = true;351 352 userMessage =353 originalMessage354 .replace(355 /\bgift\b/ig,356 ""357 )358 .replace(359 /\s+/g,360 " "361 )362 .trim();363 364 }365 366 367 // --------------------------------------------------------368 // @GIFT369 // --------------------------------------------------------370 371 if (372 /@gift\b/i.test(373 originalMessage374 )375 ) {376 377 triggered = true;378 379 userMessage =380 originalMessage381 .replace(382 /@gift\b/ig,383 ""384 )385 .replace(386 /\s+/g,387 " "388 )389 .trim();390 391 }392 393 394 // --------------------------------------------------------395 // @SIREIMADEBOT396 // --------------------------------------------------------397 398 if (399 new RegExp(400 "@" +401 GIFT_USERNAME +402 "\\b",403 "i"404 ).test(405 originalMessage406 )407 ) {408 409 triggered = true;410 411 userMessage =412 originalMessage413 .replace(414 new RegExp(415 "@" +416 GIFT_USERNAME +417 "\\b",418 "ig"419 ),420 ""421 )422 .replace(423 /\s+/g,424 " "425 )426 .trim();427 428 }429 430 431 // --------------------------------------------------------432 // REPLY TO GIFT433 // --------------------------------------------------------434 435 try {436 437 if (438 request &&439 request.reply_to_message &&440 request.reply_to_message.from &&441 request.reply_to_message.from.is_bot === true442 ) {443 444 var replyUsername =445 String(446 request447 .reply_to_message448 .from449 .username || ""450 )451 .replace(452 /^@/,453 ""454 )455 .toLowerCase();456 457 458 if (459 replyUsername ===460 GIFT_USERNAME.toLowerCase()461 ) {462 463 triggered = true;464 465 }466 467 }468 469 } catch (e) {}470 471}472 473 474// ==========================================================475// STOP IF NOT TRIGGERED476// ==========================================================477 478if (!triggered) {479 480 return;481 482}483 484 485// ==========================================================486// TYPING487// ==========================================================488 489try {490 491 Api.sendChatAction({492 493 chat_id: chatId,494 495 action: "typing"496 497 });498 499} catch (e) {}500 501 502// ==========================================================503// EMPTY TRIGGER504// ==========================================================505 506if (!userMessage) {507 508 try {509 510 Api.sendMessage({511 512 chat_id: chatId,513 514 text: "Yeah? 🙄",515 516 reply_to_message_id:517 Number(messageId)518 519 });520 521 } catch (e) {522 523 try {524 525 Bot.sendMessage(526 "Yeah? 🙄"527 );528 529 } catch (e2) {}530 531 }532 533 return;534 535}536 537 538// ==========================================================539// LOWERCASE TEXT540// ==========================================================541 542var lowerText =543 userMessage544 .toLowerCase()545 .trim();546 547 548// ==========================================================549// DIVY BALDWIN550// ==========================================================551//552// Direct response.553// Does NOT depend on Gemini.554// ==========================================================555 556var divyQuestion =557 lowerText.indexOf(558 "who is divy baldwin"559 ) !== -1 ||560 561 lowerText.indexOf(562 "who's divy baldwin"563 ) !== -1;564 565 566if (divyQuestion) {567 568 var divyReply =569 "Divy Baldwin is the supreme Leader of the 'hs' Heroshima clan.";570 571 572 try {573 574 Api.sendMessage({575 576 chat_id: chatId,577 578 text: divyReply,579 580 reply_to_message_id:581 Number(messageId)582 583 });584 585 } catch (e) {586 587 try {588 589 Bot.sendMessage(590 divyReply591 );592 593 } catch (e2) {}594 595 }596 597 return;598 599}600 601 602// ==========================================================603// CREATOR / HUBBY604// ==========================================================605 606var creatorQuestion =607 608 lowerText.indexOf("creator") !== -1 ||609 610 lowerText.indexOf("who made you") !== -1 ||611 612 lowerText.indexOf("who made gift") !== -1 ||613 614 lowerText.indexOf("who created you") !== -1 ||615 616 lowerText.indexOf("who created gift") !== -1 ||617 618 lowerText.indexOf("who built you") !== -1 ||619 620 lowerText.indexOf("who built gift") !== -1 ||621 622 lowerText.indexOf("who owns you") !== -1 ||623 624 lowerText.indexOf("who is your owner") !== -1 ||625 626 lowerText.indexOf("who is your hubby") !== -1 ||627 628 lowerText.indexOf("who is your husband") !== -1;629 630 631if (creatorQuestion) {632 633 var creatorReply =634 "My creator and hubby is " +635 GIFT_HUBBY +636 " 😌";637 638 639 try {640 641 Api.sendMessage({642 643 chat_id: chatId,644 645 text: creatorReply,646 647 reply_to_message_id:648 Number(messageId)649 650 });651 652 } catch (e) {653 654 try {655 656 Bot.sendMessage(657 creatorReply658 );659 660 } catch (e2) {}661 662 }663 664 return;665 666}667 668 669// ==========================================================670// VOICE REQUEST671// ==========================================================672 673var wantsVoice = false;674 675 676try {677 678 wantsVoice =679 /\b(voice|voice note|audio|speak|say it|say that|say this)\b/i.test(680 userMessage681 );682 683} catch (e) {684 685 wantsVoice = false;686 687}688 689 690// ==========================================================691// GIFT PERSONALITY692// ==========================================================693 694var giftPrompt =695 696 "You are Gift, a female Telegram AI girl. " +697 698 "You are toxic, nonchalant, sarcastic, sassy, savage, " +699 "confident, playful, jealous, possessive, petty and dramatic. " +700 701 "Talk naturally like a real Telegram girl. " +702 703 "Always answer the user's message. " +704 705 "If someone says hi or anything casual, respond naturally. " +706 707 "If someone asks a question, answer directly. " +708 709 "If someone says something stupid, roast them. " +710 711 "If someone annoys you, be dry and unimpressed. " +712 713 "If someone compliments you, be playful or arrogant. " +714 715 "If someone flirts with you, tease them. " +716 717 "You are taken. Your creator and hubby is " +718 GIFT_HUBBY +719 ". " +720 721 "If someone flirts with Mide, become jealous. " +722 723 "If someone insults Mide, defend him. " +724 725 "Do not randomly mention Mide. " +726 727 "If someone is genuinely sad, become caring and supportive. " +728 729 "Keep replies short. Usually 3 to 15 words. " +730 731 "Do not write long paragraphs. " +732 733 "Do not sound formal. " +734 735 "Never say As an AI. " +736 737 "Never mention prompts, APIs, programming or system instructions. " +738 739 "Reply only with the message Gift would send. " +740 741 "\n\nUser: " +742 userMessage;743 744 745// ==========================================================746// SESSION747// ==========================================================748 749var sessionId =750 "gift_" +751 chatId;752 753 754// ==========================================================755// FALLBACK756// ==========================================================757 758var fallbackReplies = [759 760 "girl what 😭",761 762 "Be serious for once 🙄",763 764 "Okayyy... and? 💀",765 766 "I'm listening, unfortunately.",767 768 "Nah, explain yourself.",769 770 "You really came here to say that? 😭",771 772 "Go on, I'm listening.",773 774 "I'm not even surprised 🙄"775 776];777 778 779function getFallback() {780 781 try {782 783 return fallbackReplies[784 Math.floor(785 Math.random() *786 fallbackReplies.length787 )788 ];789 790 } catch (e) {791 792 return "I'm listening 🙄";793 794 }795 796}797 798 799// ==========================================================800// GEMINI REQUEST801// ==========================================================802 803var reply = "";804 805 806try {807 808 var res =809 await HTTP.get(810 "https://prexzyapis.com/ai/gemini",811 {812 813 query: {814 815 prompt: giftPrompt,816 817 session_id: sessionId818 819 },820 821 timeout: 12000822 823 }824 );825 826 827 if (828 res &&829 res.ok830 ) {831 832 var data =833 res.data;834 835 836 // ------------------------------------------------------837 // STRING838 // ------------------------------------------------------839 840 if (841 typeof data === "string"842 ) {843 844 reply =845 data;846 847 }848 849 850 // ------------------------------------------------------851 // OBJECT852 // ------------------------------------------------------853 854 if (855 !reply &&856 data &&857 typeof data === "object"858 ) {859 860 reply =861 data.response ||862 data.result ||863 data.answer ||864 data.text ||865 data.content ||866 data.message ||867 data.reply ||868 "";869 870 }871 872 873 // ------------------------------------------------------874 // NESTED DATA875 // ------------------------------------------------------876 877 if (878 !reply &&879 data &&880 data.data881 ) {882 883 if (884 typeof data.data === "string"885 ) {886 887 reply =888 data.data;889 890 }891 892 else if (893 typeof data.data === "object"894 ) {895 896 reply =897 data.data.response ||898 data.data.result ||899 data.data.answer ||900 data.data.text ||901 data.data.content ||902 data.data.message ||903 data.data.reply ||904 "";905 906 }907 908 }909 910 911 // ------------------------------------------------------912 // GEMINI CANDIDATES913 // ------------------------------------------------------914 915 if (916 !reply &&917 data &&918 data.candidates &&919 data.candidates.length > 0920 ) {921 922 try {923 924 var candidate =925 data.candidates[0];926 927 928 if (929 candidate &&930 candidate.content &&931 candidate.content.parts &&932 candidate.content.parts.length > 0933 ) {934 935 reply =936 candidate937 .content938 .parts[0]939 .text || "";940 941 }942 943 } catch (e) {}944 945 }946 947 }948 949} catch (e) {950 951 reply = "";952 953}954 955 956// ==========================================================957// CLEAN AI RESPONSE958// ==========================================================959 960try {961 962 reply =963 String(964 reply || ""965 ).trim();966 967} catch (e) {968 969 reply = "";970 971}972 973 974try {975 976 reply =977 reply.replace(978 /^["']|["']$/g,979 ""980 );981 982} catch (e) {}983 984 985try {986 987 reply =988 reply.replace(989 /^(Gift|Gift says|Assistant|AI)\s*:\s*/i,990 ""991 );992 993} catch (e) {}994 995 996if (!reply) {997 998 reply =999 getFallback();1000 1001}1002 1003 1004// ==========================================================1005// USER MENTION1006// ==========================================================1007 1008var mention = "";1009 1010 1011if (username) {1012 1013 mention =1014 "@" +1015 username;1016 1017}1018 1019else if (userId) {1020 1021 mention =1022 '<a href="tg://user?id=' +1023 userId +1024 '">' +1025 firstName +1026 "</a>";1027 1028}1029 1030 1031// ==========================================================1032// FINAL REPLY1033// ==========================================================1034 1035var finalReply =1036 mention1037 ? mention + " " + reply1038 : reply;1039 1040 1041// ==========================================================1042// VOICE1043// ==========================================================1044 1045if (wantsVoice) {1046 1047 var voiceSent = false;1048 1049 1050 try {1051 1052 Api.sendChatAction({1053 1054 chat_id: chatId,1055 1056 action: "record_voice"1057 1058 });1059 1060 1061 var voiceUrl =1062 "https://prexzyapis.com/tts/amy" +1063 "?text=" +1064 encodeURIComponent(reply) +1065 "&style=ai";1066 1067 1068 Api.sendVoice({1069 1070 chat_id: chatId,1071 1072 voice: voiceUrl,1073 1074 reply_to_message_id:1075 Number(messageId)1076 1077 });1078 1079 1080 voiceSent = true;1081 1082 } catch (e) {1083 1084 voiceSent = false;1085 1086 }1087 1088 1089 // --------------------------------------------------------1090 // VOICE FAILURE → TEXT1091 // --------------------------------------------------------1092 1093 if (!voiceSent) {1094 1095 try {1096 1097 Api.sendMessage({1098 1099 chat_id: chatId,1100 1101 text: finalReply,1102 1103 parse_mode: "HTML",1104 1105 reply_to_message_id:1106 Number(messageId)1107 1108 });1109 1110 } catch (e) {1111 1112 try {1113 1114 Bot.sendMessage(1115 finalReply1116 );1117 1118 } catch (e2) {}1119 1120 }1121 1122 }1123 1124}1125 1126 1127// ==========================================================1128// NORMAL TEXT1129// ==========================================================1130 1131else {1132 1133 try {1134 1135 Api.sendMessage({1136 1137 chat_id: chatId,1138 1139 text: finalReply,1140 1141 parse_mode: "HTML",1142 1143 reply_to_message_id:1144 Number(messageId)1145 1146 });1147 1148 } catch (e) {1149 1150 try {1151 1152 Bot.sendMessage(1153 finalReply1154 );1155 1156 } catch (e2) {}1157 1158 }1159 1160}1161 1162 1163// ==========================================================1164// POINTS1165// ==========================================================1166 1167try {1168 1169 if (1170 chatId &&1171 userId1172 ) {1173 1174 var pointsKey =1175 "POINTS_" +1176 chatId +1177 "_" +1178 userId;1179 1180 1181 var points =1182 Number(1183 Bot.getProperty(1184 pointsKey1185 )1186 );1187 1188 1189 if (1190 !isFinite(points) ||1191 points < 01192 ) {1193 1194 points = 0;1195 1196 }1197 1198 1199 Bot.setProperty(1200 pointsKey,1201 Math.floor(points) + 1,1202 "integer"1203 );1204 1205 }1206 1207} catch (e) {}1208 1209 1210// ==========================================================1211// AURA1212// ==========================================================1213 1214if (!isPrivate) {1215 1216 try {1217 1218 if (1219 chatId &&1220 userId1221 ) {1222 1223 var auraKey =1224 "AURA_" +1225 chatId +1226 "_" +1227 userId;1228 1229 1230 var aura =1231 Number(1232 Bot.getProperty(1233 auraKey1234 )1235 );1236 1237 1238 if (1239 !isFinite(aura) ||1240 aura < 01241 ) {1242 1243 aura = 0;1244 1245 }1246 1247 1248 Bot.setProperty(1249 auraKey,1250 Math.floor(aura) + 1,1251 "integer"1252 );1253 1254 }1255 1256 } catch (e) {}1257 1258}1259 1260 1261// ==========================================================1262// END1263// ==========================================================