yaainnnxitstore/YASIN_XIT_BOTPublic · Bot Template
AIYASIN XIT FREE KEY appears to be a Telegram automation bot. Commands include /menu, /addfund, /confirm_buyitem, /rembal, /sendorderkey_input, /removeproduct, /add_reseller, /addkey. Observed in code: messaging, keyboards, payments, games, libs, web.
Utilityutility
140 commands0 envUpdated 1mo agoCreated Sep 11, 2026
commands/_ludospin_do.js
javascript · 65 lines
1/**#command2name: /ludospin_do3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13 var __bgUid = String(user.telegramid);14 if (Bot.getProperty("banned_" + __bgUid) === true && __bgUid !== String(Bot.getProperty("owner_id") || "8225479428")) {15 try {16 if (typeof update !== "undefined" && update && update.callback_query) Api.answerCallbackQuery({callback_query_id:String(update.callback_query.id),text:"🚫 Your account has been suspended.",show_alert:true});17 else Api.sendMessage({chat_id: chat.chatid, text: "🚫 <b>ACCESS DENIED</b>\n\nYour account has been suspended by the administrator.", parse_mode: "HTML"});18 } catch(__bgSend) {}19 return;20 }21} catch(__bgErr) {}22var __swfUpdate = (typeof update !== "undefined" && update) ? update : null;23var __swfCb = (__swfUpdate && __swfUpdate.callback_query) ? __swfUpdate.callback_query : null;24var __swfCbMsg = (__swfCb && __swfCb.message) ? __swfCb.message : null;25var __swfMsgId = __swfCbMsg && __swfCbMsg.message_id ? Number(__swfCbMsg.message_id) : 0;26var __swfCbId = __swfCb && __swfCb.id ? String(__swfCb.id) : "";27try {28 if (typeof request !== "undefined" && request && __swfCb) {29 if (__swfCb.message) request.message = __swfCb.message;30 if (!request.id && __swfCb.id) request.id = __swfCb.id;31 }32} catch(__swf_norm_err) {}33function __swfEditMessage(a) {34 a = a || {};35 var mid = Number(a.message_id || __swfMsgId || 0);36 var cid = a.chat_id || (typeof chat !== "undefined" && chat ? (chat.id || chat.chatid) : null);37 if (!mid || !cid) throw new Error("Callback message ID not found");38 var markup = a.reply_markup;39 if (typeof markup === "string") { try { markup = JSON.parse(markup); } catch(_) {} }40 var base = {chat_id:cid,message_id:mid,parse_mode:a.parse_mode,reply_markup:markup};41 var cm = __swfCbMsg;42 if (cm && (cm.photo || cm.video || cm.document || cm.audio || cm.animation)) {43 return Api.editMessageCaption({chat_id:cid,message_id:mid,caption:String(a.text == null ? "" : a.text),parse_mode:a.parse_mode,reply_markup:markup});44 }45 return Api.editMessageText({chat_id:cid,message_id:mid,text:String(a.text == null ? "" : a.text),parse_mode:a.parse_mode,reply_markup:markup});46}47try{48 var req=(typeof request!=="undefined"&&request)?request:null,mid=__swfMsgId || Number(User.getProperty("main_menu_message_id")||0),chatId=chat.chatid;49 var last=Number(User.getProperty("last_ludo_spin_time")||0);if(last&&Date.now()-last<86400000){Bot.run({command:"/ludospin"});return;}50 var spinMin=Number(Bot.getProperty("spin_min")); if(!isFinite(spinMin)||spinMin<0) spinMin=0.01;51 var spinMax=Number(Bot.getProperty("spin_max")); if(!isFinite(spinMax)||spinMax<=0) spinMax=0.25;52 if(spinMax<spinMin){var _sw=spinMin;spinMin=spinMax;spinMax=_sw;}53 var reward=Math.round((spinMin+Math.random()*(spinMax-spinMin))*100)/100; if(reward<=0)reward=0.01;54 var __spinOk=false;55 try{Libs.ResourcesLib.userRes("balance").add(reward);__spinOk=true;}catch(__spinErr){__spinOk=false;}56 if(!__spinOk){57 try{__swfEditMessage({chat_id:chatId,message_id:mid,text:"⚠️ <b>Spin failed</b>\n\nYour reward could not be credited. Please try again in a moment.",parse_mode:"HTML",reply_markup:JSON.stringify({inline_keyboard:[[{text:"🎰 Try Again",callback_data:"/ludospin"}],[{text:"🔙 Back",callback_data:"/back"}]]})});}catch(__spinUi){}58 return;59 }60 User.setProperty("last_ludo_spin_time",Date.now(),"number");User.setProperty("last_ludo_reward",reward,"number");61 var t="⚡ <b>SPINNING...</b>\n\n⚡ Calculating your luck...\n\n⏳ Please wait...";62 if(mid)try{__swfEditMessage({chat_id:chatId,message_id:mid,text:t,parse_mode:"HTML",reply_markup:JSON.stringify({inline_keyboard:[]})});}catch(e){}63 try{Bot.run({command:"/ludospin_result",run_after:3});}catch(e){Bot.run({command:"/ludospin_result"});}64 if(__swfCb)try{Api.answerCallbackQuery({callback_query_id:String(update.callback_query.id)});}catch(e){}65}catch(e){}