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

javascript · 47 lines

Raw
1/**#command2name: /w3answer: Used to set/disable the welcome message.4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: true8need_reply: false9is_web: 010#command**/11 12// WELCOME MESSAGE SETUP13// /w Hello {name}, welcome to the group!14// /w off15 16let text = String(params || "").trim();17 18if (!text) {19  return Api.sendMessage({20    text: "Usage:\n/w <welcome message>\n/w off"21  });22}23 24let settings = await db.bot.get("welcome_goodbye_settings", {});25let chatId = String(chat.id);26 27if (!settings[chatId]) {28  settings[chatId] = {};29}30 31if (text.toLowerCase() === "off") {32  settings[chatId].welcome = null;33 34  await db.bot.set("welcome_goodbye_settings", settings);35 36  return Api.sendMessage({37    text: "✅ Welcome message disabled!"38  });39}40 41settings[chatId].welcome = text;42 43await db.bot.set("welcome_goodbye_settings", settings);44 45Api.sendMessage({46  text: "✅ Welcome message saved!"47});