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 2h agoCreated Aug 27, 2026
commands/_welcome.js
javascript · 227 lines
1/**#command2name: /welcome3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// ==========================================================13// 💜 GIFT AI — /welcome14// 👑 ADMIN-ONLY WELCOME CONTROL15//16// /welcome17// /welcome on18// /welcome off19//20// ✨ CLEAN • ATTRACTIVE • DIRECT REPLY21// ==========================================================22 23 24// ==========================================================25// 🚫 GROUP-ONLY CHECK26// ==========================================================27 28if (29 !chat ||30 (chat.type !== "group" && chat.type !== "supergroup")31) {32 33 return Api.sendMessage({34 chat_id: chat.id,35 text:36 "💜 <b>GIFT AI</b>\n\n" +37 "🚫 This command only works inside a group chat.",38 parse_mode: "HTML",39 reply_to_message_id: message.message_id40 });41 42}43 44 45// ==========================================================46// 👑 CHECK GROUP ADMIN47// ==========================================================48 49var adminCheck = await Api.call("getChatMember", {50 chat_id: chat.id,51 user_id: user.id52});53 54 55if (56 !adminCheck ||57 !adminCheck.ok ||58 !adminCheck.result ||59 (60 adminCheck.result.status !== "administrator" &&61 adminCheck.result.status !== "creator"62 )63) {64 65 return Api.sendMessage({66 chat_id: chat.id,67 text:68 "💜 <b>GIFT AI</b>\n\n" +69 "🥱 Nice try.\n\n" +70 "👑 Only group admins can control my welcome messages.\n\n" +71 "💀 Come back with admin powers.",72 parse_mode: "HTML",73 reply_to_message_id: message.message_id74 });75 76}77 78 79// ==========================================================80// ⚙️ GET COMMAND ARGUMENT81// ==========================================================82 83var action = String(params || "")84 .trim()85 .toLowerCase();86 87 88// ==========================================================89// 📊 CHECK CURRENT STATUS90// ==========================================================91 92if (!action) {93 94 var current = await db.bot.get(95 "WELCOME_" + chat.id,96 true97 );98 99 100 if (current) {101 102 return Api.sendMessage({103 chat_id: chat.id,104 text:105 "💜 <b>GIFT AI — WELCOME</b>\n\n" +106 107 "🟢 <b>Status:</b> ON\n\n" +108 109 "👋 New members will be welcomed automatically.\n\n" +110 111 "━━━━━━━━━━━━━━━━━━\n" +112 113 "💡 Use <code>/welcome off</code> to disable it.",114 parse_mode: "HTML",115 reply_to_message_id: message.message_id116 });117 118 }119 120 121 return Api.sendMessage({122 chat_id: chat.id,123 text:124 "💜 <b>GIFT AI — WELCOME</b>\n\n" +125 126 "🔴 <b>Status:</b> OFF\n\n" +127 128 "🤐 Welcome messages are currently disabled.\n\n" +129 130 "━━━━━━━━━━━━━━━━━━\n" +131 132 "✨ Use <code>/welcome on</code> to enable them.",133 parse_mode: "HTML",134 reply_to_message_id: message.message_id135 });136 137}138 139 140// ==========================================================141// 🟢 TURN WELCOME ON142// ==========================================================143 144if (action === "on") {145 146 await db.bot.set(147 "WELCOME_" + chat.id,148 true149 );150 151 152 return Api.sendMessage({153 chat_id: chat.id,154 text:155 "💜 <b>GIFT AI — WELCOME ENABLED</b> ✨\n\n" +156 157 "🟢 <b>Status:</b> ON\n\n" +158 159 "👋 New members will now be greeted automatically.\n\n" +160 161 "╭━━━━━━━━━━━━━━━━━━╮\n" +162 " 💜 <b>WELCOME SYSTEM</b> 💜\n" +163 "╰━━━━━━━━━━━━━━━━━━╯\n\n" +164 165 "🥰 I'll make sure they feel welcome...\n" +166 "💀 Well, I'll try my best.",167 168 parse_mode: "HTML",169 reply_to_message_id: message.message_id170 });171 172}173 174 175// ==========================================================176// 🔴 TURN WELCOME OFF177// ==========================================================178 179if (action === "off") {180 181 await db.bot.set(182 "WELCOME_" + chat.id,183 false184 );185 186 187 return Api.sendMessage({188 chat_id: chat.id,189 text:190 "💜 <b>GIFT AI — WELCOME DISABLED</b>\n\n" +191 192 "🔴 <b>Status:</b> OFF\n\n" +193 194 "🤐 Automatic welcome messages have been disabled.\n\n" +195 196 "━━━━━━━━━━━━━━━━━━\n\n" +197 198 "😭 Fine... I'll stop welcoming everyone.\n" +199 "Use <code>/welcome on</code> whenever you change your mind. 💅",200 201 parse_mode: "HTML",202 reply_to_message_id: message.message_id203 });204 205}206 207 208// ==========================================================209// ❌ INVALID OPTION210// ==========================================================211 212return Api.sendMessage({213 chat_id: chat.id,214 text:215 "💜 <b>GIFT AI — INVALID OPTION</b>\n\n" +216 217 "❌ I don't understand that option.\n\n" +218 219 "✨ <b>Available commands:</b>\n\n" +220 221 "🟢 <code>/welcome on</code> — Enable welcomes\n" +222 "🔴 <code>/welcome off</code> — Disable welcomes\n" +223 "📊 <code>/welcome</code> — Check current status",224 225 parse_mode: "HTML",226 reply_to_message_id: message.message_id227});