// code from goatstore // api: https://store.agi.bd const OWNER_NAME = "𝐒𝐈𝐘𝐀𝐌-𝐇𝐀𝐒𝐀𝐍"; // নাম পরিবর্তন করলে ফাইল নষ্ট হতে পারে⚠️ const ANTI_TAMPER = "𝆠፝"; const hiddenOwner = ANTI_TAMPER + OWNER_NAME; if (hiddenOwner !== "𝆠፝𝐒𝐈𝐘𝐀𝐌-𝐇𝐀𝐒𝐀𝐍") { // নাম পরিবর্তন করলে ফাইল নষ্ট হতে পারে⚠️ process.exit(0); } module.exports = { config: { name: "onlyadminbox", aliases: ["onlyadbox", "adboxonly", "adminboxonly"], version: "1.3", author: hiddenOwner, countDown: 5, role: 2, description: { vi: "bật/tắt chế độ chỉ quản trị của viên nhóm mới có thể sử dụng bot", en: "turn on/off only admin box can use bot" }, category: "box chat", guide: { vi: " {pn} [on | off]: bật/tắt chế độ chỉ quản trị viên nhóm mới có thể sử dụng bot" + "\n {pn} noti [on | off]: bật/tắt thông báo khi người dùng không phải là quản trị viên nhóm sử dụng bot", en: " {pn} [on | off]: turn on/off the mode only admin of group can use bot" + "\n {pn} noti [on | off]: turn on/off the notification when user is not admin of group use bot" } }, langs: { vi: { turnedOn: "Đã bật chế độ chỉ quản trị viên nhóm mới có thể sử dụng bot", turnedOff: "Đã tắt chế độ chỉ quản trị viên nhóm mới có thể sử dụng bot", turnedOnNoti: "Đã bật thông báo khi người dùng không phải là quản trị viên nhóm sử dụng bot", turnedOffNoti: "Đã tắt thông báo khi người dùng không phải là quản trị viên nhóm sử dụng bot", syntaxError: "Sai cú pháp, chỉ có thể dùng {pn} on hoặc {pn} off" }, en: { turnedOn: "Turned on the mode only admin of group can use bot", turnedOff: "Turned off the mode only admin of group can use bot", turnedOnNoti: "Turned on the notification when user is not admin of group use bot", turnedOffNoti: "Turned off the notification when user is not admin of group use bot", syntaxError: "Syntax error, only use {pn} on or {pn} off" } }, onStart: async function ({ args, message, event, threadsData, getLang }) { // 🔒 AUTHOR LOCK CHECK if (module.exports.config.author !== "𝆠፝𝐒𝐈𝐘𝐀𝐌-𝐇𝐀𝐒𝐀𝐍") { return message.reply("⛔ AUTHOR CHANGED!\n🔒 THIS COMMAND IS LOCKED."); } let isSetNoti = false; let value; let keySetData = "data.onlyAdminBox"; let indexGetVal = 0; if (args[0] == "noti") { isSetNoti = true; indexGetVal = 1; keySetData = "data.hideNotiMessageOnlyAdminBox"; } if (args[indexGetVal] == "on") value = true; else if (args[indexGetVal] == "off") value = false; else return message.reply(getLang("syntaxError")); await threadsData.set(event.threadID, isSetNoti ? !value : value, keySetData); if (isSetNoti) return message.reply(value ? getLang("turnedOnNoti") : getLang("turnedOffNoti")); else return message.reply(value ? getLang("turnedOn") : getLang("turnedOff")); } };