Source:${t.source}`),n},q={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(t,n){const s=await U();return r(n.channel.id,E(s),n.message?.id,a.storage)}},z={name:"dogfact",displayName:"dogfact",description:"Sends a dog fact.",displayDescription:"Sends a dog fact.",applicationId:"-1",inputType:1,type:1,execute:async function(t,n){const s=await K();return r(n.channel.id,E(s),n.message?.id,a.storage)}},H={name:"useless",displayName:"useless",description:"Sends a useless fact.",displayDescription:"Sends a useless fact.",applicationId:"-1",inputType:1,type:1,execute:async function(t,n){const s=await W();return r(n.channel.id,E(s),n.message?.id,a.storage)}},y="https://vd-plugins.github.io/proxy/actuallythesun.github.io/vendetta-plugins/SplitLargeMessages/",d={ENABLED:"\u{1F7E2}",DISABLED:"\u{1F534}",SELECTED:"\u{1F536}",NOT_SELECTED:"\u{1F537}"},b=function(t){return t.map(function(n){return n.name}).join(", ")},p=function(t){return t.join(`
`).trimEnd()},T=function(t){return p(t).length},I=function(){return Object.keys(f.plugins).includes(y)},$=function(){return Object.values(f.plugins).find(function(t){return t.id===y})?.enabled??!1},B=function(){return g.alerts.showConfirmationAlert({title:"Large Message Warning",content:"This list is too long to send! Would you like to install the Split Large Messages plugin?",confirmText:"Install Plugin",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){i.openURL(y)}})},x=function(){return g.alerts.showConfirmationAlert({title:"Plugin Disabled",content:"The Split Large Messages plugin is installed but disabled. Would you like to enable it now?",confirmText:"Enable Plugin",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){const t=Object.values(f.plugins).find(function(n){return n.id===y});t&&(t.enabled=!0)}})};async function J(t,n){const s=a.storage.listSettings?.pluginListAlwaysDetailed??!1,e=[`**MyPluginList|${Object.keys(f.plugins).length}Plugins**`,""];for(const o of Object.values(f.plugins)){const{enabled:C,manifest:L,id:N}=o,{name:S,description:w,authors:D}=L;t||s?e.push(`>**Name**:${S}`,`>**Status**:${C?d.ENABLED:d.DISABLED}`,`>**Description**:${w}`,`>**Authors**:${b(D)}`,`>**[Install!](${N})**`,""):e.push(`>${C?d.ENABLED:d.DISABLED}**${S}**by${b(D)}`)}return T(e)>2e3?I()?$()?g.alerts.showConfirmationAlert({title:"Large Message",content:"This list is over 2000 characters. Send anyway?",confirmText:"Send",cancelText:"Cancel",onConfirm:function(){return r(n.channel.id,p(e))}}):x():B():r(n.channel.id,p(e))}async function Q(t,n){const s=a.storage.themeListAlwaysDetailed??!1,e=[`**MyThemeList|${Object.keys(v.themes).length}Themes**`,""],o=Object.values(v.themes);if(o.length)for(const C of o){const{selected:L,data:N,id:S}=C,{name:w,description:D,authors:F}=N;t||s?e.push(`>**Name**:${w}`,`>**Selected**:${L?d.SELECTED:d.NOT_SELECTED}`,`>**Description**:${D}`,`>**Authors**:${b(F)}`,`>**[Install!](${S})**`,""):e.push(`>${L?d.SELECTED:d.NOT_SELECTED}**${w}**by${b(F)}`)}else e.push("Nothing to see here, huh...");return T(e)>2e3?I()?$()?g.alerts.showConfirmationAlert({title:"Large Message",content:"This list is over 2000 characters. Send anyway?",confirmText:"Send",cancelText:"Cancel",onConfirm:function(){return r(n.channel.id,p(e))}}):x():B():r(n.channel.id,p(e))}const X={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:async function(t,n){const s=t.find(function(e){return e.name==="detailed"})?.value??!1;return J(s,n)},applicationId:"-1",inputType:1,type:1},Y={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:async function(t,n){const s=t.find(function(e){return e.name==="detailed"})?.value??!1;return Q(s,n)},applicationId:"-1",inputType:1,type:1},Z=h.findByStoreName("UserStore"),ee={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(t,n){const s=(await Z.getUser(t[0].value)).getAvatarURL(512),e=await G(s);return r(n.channel.id,e.url,n.message?.id)},applicationId:"-1",inputType:1,type:1},_=async function(t){const n="https://konachan.com/post.json",s=t?"rating:explicit":"rating:safe",e=Math.floor(Math.random()*100);try{const o=await(await fetch(`${n}?tags=${s}&limit=1&page=${e}`)).