vd-plugins/Commands/index.js
2025-09-30 13:07:13 +00:00

7 lines
21 KiB
JavaScript

(function(P,ae,s,p,v,y,D,i,se,oe,ie){"use strict";const re=p.findByProps("sendMessage"),ce=function(e){return![4,10,11,12,13,15].includes(e)},$=function(e,n,a,t,o){if(!n)return{type:4};if(o)return{type:4,data:{content:n,flags:64}};try{const r={content:n,...a&&t?.factSettings?.sendAsReply?{messageReference:{messageId:a}}:{}},c=(BigInt(Date.now())*BigInt(4194304)+BigInt(Math.floor(Math.random()*4194304))).toString();return re.sendMessage(e,r,void 0,{nonce:c}),{type:4}}catch(r){return console.error("[Commands] Message send failed:",r),{type:4}}},w=function(e){return ce(e.channel.type)?null:{type:4,data:{content:"This command cannot be used in threads, forum channels, or voice channels.",flags:64}}},le=async function(){const e=await(await fetch("https://uselessfacts.jsph.pl/api/v2/facts/random")).json();return{text:e.text,source:e.source,language:e.language}},de=async function(){return{text:(await(await fetch("https://dogapi.dog/api/v2/facts?limit=1")).json()).data[0].attributes.body}},ue=async function(){const e=await(await fetch("https://catfact.ninja/fact")).json();return{text:e.fact,length:e.length}},fe=async function(e){return await(await fetch(`https://api.obamabot.me/v2/image/petpet?image=${e.replace("webp","png")}`)).json()},U=function(e){let n=e.text;return s.storage.factSettings?.includeCitation&&e.source&&(n+=`
Source: ${e.source}`),n},pe={name:"catfact",displayName:"catfact",description:"Sends a random cat fact.",displayDescription:"Sends a random cat fact.",applicationId:"-1",inputType:1,type:1,execute:async function(e,n){const a=w(n);if(a)return a;try{const t=await ue();return $(n.channel.id,U(t),n.message?.id,s.storage)}catch(t){return console.error("[CatFact] Error:",t),{type:4}}}},me={name:"dogfact",displayName:"dogfact",description:"Sends a dog fact.",displayDescription:"Sends a dog fact.",applicationId:"-1",inputType:1,type:1,execute:async function(e,n){const a=w(n);if(a)return a;try{const t=await de();return $(n.channel.id,U(t),n.message?.id,s.storage)}catch(t){return console.error("[DogFact] Error:",t),{type:4}}}},ge={name:"useless",displayName:"useless",description:"Sends a useless fact.",displayDescription:"Sends a useless fact.",applicationId:"-1",inputType:1,type:1,execute:async function(e,n){const a=w(n);if(a)return a;try{const t=await le();return $(n.channel.id,U(t),n.message?.id,s.storage)}catch(t){return console.error("[UselessFact] Error:",t),{type:4}}}},E={CONTENT:"This list is over 2000 characters. Send anyway?",CONFIRM:"Send",CANCEL:"Cancel"},ye={DETAILED:"detailed"},O="",A={SLM_NOT_INSTALLED:"This list is over 2000 characters. Install the Split Large Messages plugin to send it.",SLM_NOT_ENABLED:"This list is over 2000 characters. Enable the Split Large Messages plugin to send it."},j={SEMICOL:"; ",NEW_LINE:`
`},he="Nothing to see here, huh...",F="github.com/fres621/vendetta-plugins",h={ENABLED:"\u2705",DISABLED:"\u274C",SELECTED:"\u2705",NOT_SELECTED:"\u274C"},be=p.findByProps("sendMessage","receiveMessage"),L=p.findByProps("sendBotMessage"),x=function(){try{return p.findByStoreName("UserStore").getCurrentUser()?.premiumType===2?4e3:2e3}catch{return 2e3}}(),V=function(e){return Object.keys(e).includes(F)},K=function(e){return Object.values(e).find(function(n){return n.id==F})?.enabled},W=function(e){return e.find(function(n){return n.name===ye.DETAILED})?.value??!1},T=function(e){return!e||!Array.isArray(e)||e.length===0?"Unknown":e.filter(function(n){return n&&(typeof n=="string"||typeof n=="object"&&n.name)}).map(function(n){return typeof n=="string"?n:n.name||"Unknown"}).join(j.SEMICOL)||"Unknown"},q=function(e){return e.join(j.NEW_LINE).trimEnd()},R=function(e){return q(e).length},M=async function(e,n){const a=Date.now().toString();await be.sendMessage(e,{content:q(n)},void 0,{nonce:a})},G=function(e,n){return[`**My ${e} List | ${n} ${e}s**`,O]};async function we(e,n){try{const a=W(e),t=s.storage.themeListAlwaysDetailed??!1;if(!v.themes||typeof v.themes!="object"){const f=n.channel.id;return L.sendBotMessage(f,"No themes found or themes not loaded yet."),{type:4}}const o=Object.values(v.themes),r=n.channel.id,c=G("Theme",Object.keys(v.themes).length);if(o.length)for(const f of o){if(!f||typeof f!="object")continue;const{selected:u,data:l,id:g}=f,S=l?.name||"Unknown Theme",N=l?.description||"No description",k=l?.authors;a||t?c.push(`> **Name**: ${S}`,`> **Selected**: ${u?h.SELECTED:h.NOT_SELECTED}`,`> **Description**: ${N}`,`> **Authors**: ${T(k)}`,`> **[Install!](${g||"unknown"})**`,O):c.push(`> ${u?h.SELECTED:h.NOT_SELECTED} **${S}** by ${T(k)}`)}else c.push(he);const d=R(c)>x;if(d&&!V(y.plugins))L.sendBotMessage(r,A.SLM_NOT_INSTALLED);else if(d&&!K(y.plugins))L.sendBotMessage(r,A.SLM_NOT_ENABLED);else{if(R(c)>2e3)return D.alerts.showConfirmationAlert({content:E.CONTENT,confirmText:E.CONFIRM,cancelText:E.CANCEL,onConfirm:async function(){return await M(r,c)}});await M(r,c)}}catch(a){return console.error("[ThemeList] Error:",a),{type:4}}}async function Ce(e,n){try{const a=W(e),t=s.storage.pluginListAlwaysDetailed??!1,o=n.channel.id;if(!y.plugins||typeof y.plugins!="object")return L.sendBotMessage(o,"No plugins found or plugins not loaded yet."),{type:4};const r=G("Plugin",Object.keys(y.plugins).length);for(const d of Object.values(y.plugins)){if(!d||typeof d!="object")continue;const{enabled:f,manifest:u,id:l}=d,g=u?.name||"Unknown Plugin",S=u?.description||"No description",N=u?.authors;a||t?r.push(`> **Name**: ${g}`,`> **Status**: ${f?h.ENABLED:h.DISABLED}`,`> **Description**: ${S}`,`> **Authors**: ${T(N)}`,`> **[Install!](${l||"unknown"})**`,O):r.push(`> ${f?h.ENABLED:h.DISABLED} **${g}** by ${T(N)}`)}const c=R(r)>x;if(c&&!V(y.plugins))L.sendBotMessage(o,A.SLM_NOT_INSTALLED);else if(c&&!K(y.plugins))L.sendBotMessage(o,A.SLM_NOT_ENABLED);else{if(R(r)>2e3)return D.alerts.showConfirmationAlert({content:E.CONTENT,confirmText:E.CONFIRM,cancelText:E.CANCEL,onConfirm:async function(){return await M(o,r)}});await M(o,r)}}catch(a){return console.error("[PluginList] Error:",a),{type:4}}}const Ee={name:"plugin-list",displayName:"plugin list",description:"Send your plugin list to the current channel",displayDescription:"Send your plugin list to the current channel",options:[{name:"detailed",description:"Whether to send a list with detailed information.",type:5,required:!1,displayName:"detailed",displayDescription:"Whether to send a list with detailed information."}],execute:Ce,applicationId:"-1",inputType:1,type:1},Le={name:"theme-list",displayName:"theme list",description:"Send your theme list to the current channel",displayDescription:"Send your theme list to the current channel",options:[{name:"detailed",description:"Whether to send a list with detailed information.",type:5,required:!1,displayName:"detailed",displayDescription:"Whether to send a list with detailed information."}],execute:we,applicationId:"-1",inputType:1,type:1},Se=p.findByStoreName("UserStore"),Ne={name:"petpet",displayName:"petpet",description:"PetPet someone",displayDescription:"PetPet someone",options:[{name:"user",description:"The user(or their id) to be patted",type:6,required:!0,displayName:"user",displayDescription:"The user(or their id) to be patted"}],execute:async function(e,n){const a=w(n);if(a)return a;try{const t=(await Se.getUser(e[0].value)).getAvatarURL(512),o=await fe(t);return $(n.channel.id,o.url,n.message?.id)}catch(t){return console.error("[PetPet] Error:",t),{type:4}}},applicationId:"-1",inputType:1,type:1},ve=p.findByProps("sendMessage"),De=p.findByProps("sendBotMessage","sendMessage","receiveMessage"),H=async function(e){const n="https://konachan.com/post.json",a=e?"rating:explicit":"rating:safe",t=Math.floor(Math.random()*100);try{const o=await(await fetch(`${n}?tags=${a}&limit=1&page=${t}`)).json();return!Array.isArray(o)||o.length===0?null:o[0].file_url}catch(o){return console.error("[KonoChan Randomizer] Error fetching image:",o),null}},z=function(){return D.alerts.showConfirmationAlert({title:"NSFW Content Warning",content:"NSFW content can only be sent in NSFW channels!",confirmText:"Okay",cancelText:null,confirmColor:"brand",isDismissable:!0})},$e=function(){return(BigInt(Date.now())*BigInt(4194304)+BigInt(Math.floor(Math.random()*4194304))).toString()},X={name:"nsfw",description:"Include NSFW content?",type:5,required:!1,displayName:"nsfw",displayDescription:"Include NSFW content?"},Ae={name:"konoself",displayName:"konoself",description:"Fetch a random image from KonoChan for yourself.",displayDescription:"Fetch a random image from KonoChan for yourself.",options:[X],execute:async function(e,n){const a=w(n);if(a)return a;try{const t=new Map(e.map(function(r){return[r.name,r]})).get("nsfw")?.value||!1;if(t&&!n.channel.nsfw)return z(),{type:4};const o=await H(t);return o?(De.sendBotMessage(n.channel.id,`Here's your random image: ${o}`),{type:4}):{type:4}}catch(t){return console.error("[KonoSelf] Error:",t),{type:4}}},applicationId:"-1",inputType:1,type:1},Te={name:"konosend",displayName:"konosend",description:"Fetch a random image from KonoChan and send it to the channel.",displayDescription:"Fetch a random image from KonoChan and send it to the channel.",options:[X],execute:async function(e,n){const a=w(n);if(a)return a;try{const t=new Map(e.map(function(c){return[c.name,c]})).get("nsfw")?.value||!1;if(t&&!n.channel.nsfw)return z(),{type:4};const o=await H(t);if(!o)return{type:4};const r=$e();return ve.sendMessage(n.channel.id,{content:o},void 0,{nonce:r}),{type:4}}catch(t){return console.error("[KonoSend] Error:",t),{type:4}}},applicationId:"-1",inputType:1,type:1},Y=p.findByProps("getAPIBaseURL","get"),Re=p.findByProps("sendMessage"),I=async function(e,n,a){const t=n?`&author_id=${n}`:"",o=a?`&channel_id=${a}`:"",r=n?"":"&min_id=0";return(await Y.get({url:`/guilds/${e}/messages/search`,query:`include_nsfw=true${t}${o}${r}&sort_by=timestamp&sort_order=asc&offset=0`})).body.messages[0][0]},J=async function(e,n){const a=n?`&author_id=${n}`:"",t=n?"":"&min_id=0";return(await Y.get({url:`/channels/${e}/messages/search`,query:`&sort_by=timestamp&sort_order=asc&offset=0${a}${t}`})).body.messages[0][0]},Me={name:"firstmessage",displayName:"firstmessage",description:"Tired of scrolling to first message?",displayDescription:"Tired of scrolling to first message?",options:[{name:"user",displayName:"user",description:"Target user to get their first message in this server/dm",displayDescription:"Target user to get their first message in this server/dm",type:6,required:!1},{name:"channel",displayName:"channel",description:"Target channel to get first message of",displayDescription:"Target channel to get first message of",type:7,required:!1},{name:"send",displayName:"send",description:"Whether to send the resulting url",displayDescription:"Whether to send the resulting url",type:5,required:!1}],execute:async function(e,n){try{const a=new Map(e.map(function(g){return[g.name,g]})),t=a.get("user")?.value,o=a.get("channel")?.value,r=a.get("send")?.value,c=n.guild?.id,d=n.channel.id,f=n.channel.type===1;let u="https://discord.com/channels/",l;if(!t&&!o)f?(l=await J(d),u+=`@me/${d}/${l.id}`):(l=await I(c),u+=`${c}/${l.channel_id}/${l.id}`);else if(t)f?(l=await J(d,t),u+=`@me/${d}/${l.id}`):(l=await I(c,t),u+=`${c}/${l.channel_id}/${l.id}`);else if(o){if(f)return{type:4};l=await I(c,null,o),u+=`${c}/${o}/${l.id}`}else{if(f)return{type:4};l=await I(c,t,o),u+=`${c}/${o}/${l.id}`}if(r){const g=Date.now().toString();return Re.sendMessage(n.channel.id,{content:u},void 0,{nonce:g}),{type:4}}else return i.url.openDeeplink(u),{type:4}}catch(a){return console.error("[FirstMessage] Error:",a),{type:4}}},applicationId:"-1",inputType:1,type:1},Ie=p.findByProps("sendMessage"),ke=p.findByProps("sendBotMessage","sendMessage","receiveMessage");function Be(){let{height:e,width:n,scale:a}=i.ReactNative.Dimensions.get("screen");return e*=a,n*=a,{width:n,height:e}}function Pe(){try{const e=p.findByProps("memory");if(!e)return{cpuCoreCount:"N/A",cpuPerc:"N/A",memUsage:"N/A",netInfo:"N/A"};const{cpuCoreCount:n,cpuPercentage:a,memory:t}=e,o=a?a.toFixed(2)+"%":"N/A",r=t?parseFloat((t/1e3).toPrecision(3))+" MB":"N/A";let c="N/A";try{const d=p.findByProps("useNetInfo");if(d){const f=Object.values(d.fetch()).filter(function(u){return u?.type})[0];if(f){const{type:u,details:l}=f;c={wifi:"WiFi",ethernet:"Ethernet",other:"Unknown",bluetooth:"Bluetooth",wimax:"WiMAX",vpn:"VPN",cellular:l?.cellularGeneration?.toUpperCase()||"Cellular"}[u]??u}}}catch(d){console.warn("Network info unavailable:",d)}return{cpuCoreCount:n,cpuPerc:o,memUsage:r,netInfo:c}}catch(e){return console.warn("Hardware info unavailable:",e),{cpuCoreCount:"N/A",cpuPerc:"N/A",memUsage:"N/A",netInfo:"N/A"}}}function Ue(){try{const{NativeModules:e}=i.ReactNative;return(e.InfoDictionaryManager??e.RTNClientInfoManager)||{}}catch(e){return console.warn("Discord info unavailable:",e),{}}}function Oe(){try{const{cpuCoreCount:e,cpuPerc:n,memUsage:a,netInfo:t}=Pe(),o=Ue(),{vendetta:r,discord:c,react:d,hermes:f,os:u,device:l}=se.getDebugInfo(),{version:g,bytecodeVersion:S}=f||{},{version:N,nativeVersion:k}=d||{},{name:Z,version:Ge,sdk:ee}=u||{},{manufacturer:He,brand:te,model:ne,codename:ze}=l||{},{version:Xe}=r||{},{version:Ye,build:Je}=c||{},{ReleaseChannel:Qe}=o,Ze=Z=="iOS"?ze:`${te} ${ne}`,{width:et,height:tt}=Be();let B={Device:{Device:Ze||"Unknown",Model:ne||"Unknown",Manufacturer:He||"Unknown",Brand:te||"Unknown",Display:`${et}x${tt}`},Hardware:{"CPU Cores":e||"N/A",Network:t},Software:{OS:Z||"Unknown",Version:Ge||"Unknown"},Discord:{Branch:Qe||"Unknown",Version:Ye||"Unknown",Build:Je||"Unknown",Vendetta:Xe||"Unknown","CPU Usage":n,"Memory Usage":a},React:{Version:N||"Unknown","Hermes Bytecode":S||"Unknown",Hermes:g||"Unknown",Native:k||"Unknown"}};return window.enmity&&(B.Discord.Enmity=window.enmity.version),window.aliucord&&(B.Discord.Aliucord=window.aliucord.version),ee&&(B.Software["SDK Version"]=ee),B}catch(e){throw console.error("Error generating system info:",e),e}}const Q=["device","hardware","software","discord","react","ephemeral"];for(const e of Q)s.storage[e]===void 0&&(s.storage[e]=!0);const _e=function(){return(BigInt(Date.now())*BigInt(4194304)+BigInt(Math.floor(Math.random()*4194304))).toString()};function je(e,n){const a=w(n);if(a)return a;try{let t=[`__System Information__
`];const o=Oe();Object.keys(o).forEach(function(d){const f=s.storage[d.toLowerCase()],u=e.find(function(l){return l.name==d.toLowerCase()})?.value??f;(u||f)&&!(f&&!u)&&(t.push(`[**${d}**]`),Object.keys(o[d]).forEach(function(l){t.push(`> ${l}: ${o[d][l]}`)}))});const r=s.storage.ephemeral,c=e.find(function(d){return d.name=="ephemeral"})?.value??r;if((c||r)&&!(r&&!c))return ke.sendBotMessage(n.channel.id,t.join(`
`)),{type:4};{const d=_e();return Ie.sendMessage(n.channel.id,{content:t.join(`
`)},void 0,{nonce:d}),{type:4}}}catch(t){return console.error("[Sysinfo] Error:",t),{type:4}}}const Fe={name:"sysinfo",displayName:"sysinfo",description:"Display system information",displayDescription:"Display system information",options:[{name:"ephemeral",displayName:"ephemeral",description:"Keep sysinfo ephemeral (default: true)",displayDescription:"Keep sysinfo ephemeral (default: true)",type:5,required:!1},...Q.slice(0,-1).map(function(e){return{name:e,displayName:e,description:`Display the ${e} section. Set default in settings.`,displayDescription:`Display the ${e} section. Set default in settings.`,type:5,required:!1}})],execute:je,applicationId:"-1",inputType:1,type:1},{ScrollView:xe}=p.findByProps("ScrollView"),{TableRowGroup:b,TableSwitchRow:m,Stack:Ve,TableRow:C}=p.findByProps("TableSwitchRow","TableRowGroup","Stack","TableRow");s.storage.factSettings||(s.storage.factSettings={sendAsReply:!0,includeCitation:!1}),s.storage.listSettings||(s.storage.listSettings={pluginListAlwaysDetailed:!1,themeListAlwaysDetailed:!1}),s.storage.enabledCommands||(s.storage.enabledCommands={catfact:!0,dogfact:!0,useless:!0,petpet:!0,pluginList:!0,themeList:!0,konoself:!0,konosend:!0,firstmessage:!0,sysinfo:!0}),s.storage.pendingRestart||(s.storage.pendingRestart=!1);function Ke(){oe.useProxy(s.storage);const[e,n]=i.React.useReducer(function(t){return t+1},0);i.React.useEffect(function(){return function(){s.storage.pendingRestart&&(s.storage.pendingRestart=!1,D.alerts.showConfirmationAlert({title:"Restart Required",content:"You have made changes to commands. Please restart Discord to apply these changes.",confirmText:"Okay",cancelText:null}))}},[]);const a=function(t,o){s.storage.enabledCommands[t]=o,s.storage.pendingRestart=!0,n()};return i.React.createElement(ie.View,{style:{flex:1}},i.React.createElement(xe,{style:{flex:1},contentContainerStyle:{paddingBottom:38}},i.React.createElement(Ve,{spacing:8},i.React.createElement(b,{title:"Facts Commands"},i.React.createElement(m,{label:"Send as Reply",subLabel:"Send facts as a reply to the command message",value:s.storage.factSettings?.sendAsReply??!0,onValueChange:function(t){s.storage.factSettings.sendAsReply=t,n()}}),i.React.createElement(m,{label:"Include Source Citation",subLabel:"Include the source of facts when available",value:s.storage.factSettings?.includeCitation??!1,onValueChange:function(t){s.storage.factSettings.includeCitation=t,n()}}),i.React.createElement(m,{label:"/catfact",subLabel:"Get random cat facts",value:s.storage.enabledCommands?.catfact??!0,onValueChange:function(t){return a("catfact",t)}}),i.React.createElement(m,{label:"/dogfact",subLabel:"Get random dog facts",value:s.storage.enabledCommands?.dogfact??!0,onValueChange:function(t){return a("dogfact",t)}}),i.React.createElement(m,{label:"/useless",subLabel:"Get random useless facts",value:s.storage.enabledCommands?.useless??!0,onValueChange:function(t){return a("useless",t)}})),i.React.createElement(b,{title:"List Commands"},i.React.createElement(m,{label:"Always Send Detailed Plugin List",subLabel:"Always use detailed mode when listing plugins",value:s.storage.listSettings?.pluginListAlwaysDetailed??!1,onValueChange:function(t){s.storage.listSettings.pluginListAlwaysDetailed=t,n()}}),i.React.createElement(m,{label:"Always Send Detailed Theme List",subLabel:"Always use detailed mode when listing themes",value:s.storage.listSettings?.themeListAlwaysDetailed??!1,onValueChange:function(t){s.storage.listSettings.themeListAlwaysDetailed=t,n()}}),i.React.createElement(m,{label:"/plugin-list",subLabel:"List all installed plugins",value:s.storage.enabledCommands?.pluginList??!0,onValueChange:function(t){return a("pluginList",t)}}),i.React.createElement(m,{label:"/theme-list",subLabel:"List all installed themes",value:s.storage.enabledCommands?.themeList??!0,onValueChange:function(t){return a("themeList",t)}})),i.React.createElement(b,{title:"Image Commands"},i.React.createElement(m,{label:"/petpet",subLabel:"Create pet-pet GIF of a user",value:s.storage.enabledCommands?.petpet??!0,onValueChange:function(t){return a("petpet",t)}})),i.React.createElement(b,{title:"KonoChan Commands"},i.React.createElement(m,{label:"/konoself",subLabel:"Get random image from KonoChan (private)",value:s.storage.enabledCommands?.konoself??!0,onValueChange:function(t){return a("konoself",t)}}),i.React.createElement(m,{label:"/konosend",subLabel:"Send random image from KonoChan to channel",value:s.storage.enabledCommands?.konosend??!0,onValueChange:function(t){return a("konosend",t)}})),i.React.createElement(b,{title:"Message Commands"},i.React.createElement(m,{label:"/firstmessage",subLabel:"Get the first message in a channel",value:s.storage.enabledCommands?.firstmessage??!0,onValueChange:function(t){return a("firstmessage",t)}})),i.React.createElement(b,{title:"System Commands"},i.React.createElement(m,{label:"/sysinfo",subLabel:"Display system information",value:s.storage.enabledCommands?.sysinfo??!0,onValueChange:function(t){return a("sysinfo",t)}})),i.React.createElement(b,{title:"Credits"},i.React.createElement(C,{label:"Facts Commands",subLabel:"by jdev082"}),i.React.createElement(C,{label:"List Commands",subLabel:"by Kitomanari"}),i.React.createElement(C,{label:"PetPet Command",subLabel:"by wolfieeee"}),i.React.createElement(C,{label:"KonoChan Commands",subLabel:"by btmc727 & Rico040"}),i.React.createElement(C,{label:"FirstMessage Command",subLabel:"by sapphire"}),i.React.createElement(C,{label:"Sysinfo Command",subLabel:"by mugman"})),i.React.createElement(b,{title:"About"},i.React.createElement(C,{label:"Commands",subLabel:"A collection of commands"})))))}s.storage.factSettings||(s.storage.factSettings={sendAsReply:!0,includeCitation:!1}),s.storage.listSettings||(s.storage.listSettings={pluginListAlwaysDetailed:!1,themeListAlwaysDetailed:!1}),s.storage.enabledCommands||(s.storage.enabledCommands={catfact:!0,dogfact:!0,useless:!0,petpet:!0,pluginList:!0,themeList:!0,konoself:!0,konosend:!0,firstmessage:!0,sysinfo:!0});const We={catfact:pe,dogfact:me,useless:ge,petpet:Ne,pluginList:Ee,themeList:Le,konoself:Ae,konosend:Te,firstmessage:Me,sysinfo:Fe};let _=[];var qe={onLoad:function(){console.log("[All-In-One Commands] Loading plugin...");for(const[e,n]of Object.entries(We))s.storage.enabledCommands[e]&&_.push(ae.registerCommand(n));console.log("[All-In-One Commands] Plugin loaded successfully!")},onUnload:function(){console.log("[All-In-One Commands] Unloading plugin..."),_.forEach(function(e){return e()}),_=[],console.log("[All-In-One Commands] Plugin unloaded successfully!")},settings:Ke};return P.default=qe,Object.defineProperty(P,"__esModule",{value:!0}),P})({},vendetta.commands,vendetta.plugin,vendetta.metro,vendetta.themes,vendetta.plugins,vendetta.ui,vendetta.metro.common,vendetta.debug,vendetta.storage,vendetta.metro.common.ReactNative);