"use strict"; module.exports = { config: { name: "out", version: "1.0.0", author: "𝐌𝐚𝐑𝐮𝐅", countDown: 5, role: 2, shortDescription: "Remove bot from group", longDescription: "Remove the bot from the current or specified group.", category: "owner", guide: { en: "{pn} [threadID (optional)]", }, }, onStart: async function ({ api, event, args }) { const botID = api.getCurrentUserID(); const targetThread = args[0] || event.threadID; try { await api.sendMessage( "👋 āĻŦāĻŋāĻĻāĻžāϝāĻŧ āϏāĻŦāĻžāχ...\n" + "🤖 āφāĻŽāĻŋ āĻāĻ–āύ āĻāχ āĻ—ā§āϰ⧁āĻĒ āĻĨ⧇āϕ⧇ āĻŦ⧇āϰ āĻšāϝāĻŧ⧇ āϝāĻžāĻšā§āĻ›āĻŋāĨ¤\n" + "💙 āϏāĻŦāĻžāχ āĻ­āĻžāϞ⧋ āĻĨāĻžāĻ•āĻŦ⧇āύ, āϏ⧁āĻ¸ā§āĻĨ āĻĨāĻžāĻ•āĻŦ⧇āύ!\n" + "✨ āφāĻŦāĻžāϰ āĻĻ⧇āĻ–āĻž āĻšāĻŦ⧇ āχāύāĻļāĻžāφāĻ˛ā§āϞāĻžāĻšāĨ¤", targetThread ); await api.removeUserFromGroup(botID, targetThread); } catch (error) { console.error(error); return api.sendMessage( "❌ āĻŦ⧇āϰ āĻšāϤ⧇ āĻĒāĻžāϰāϞāĻžāĻŽ āύāĻž!\n" + "âš ī¸ āĻšāϝāĻŧāϤ⧋ āφāĻŽāĻŋ āĻ…ā§āϝāĻžāĻĄāĻŽāĻŋāύ āύāχ āĻ…āĻĨāĻŦāĻž āϕ⧋āύ⧋ āϏāĻŽāĻ¸ā§āϝāĻž āĻšāϝāĻŧ⧇āϛ⧇āĨ¤", event.threadID ); } }, };