chore: code formatting

This commit is contained in:
github-actions[bot]
2022-01-16 01:41:24 +00:00
parent 4fa62aad67
commit d3228a126a
94 changed files with 3875 additions and 3822 deletions

View File

@@ -3,10 +3,11 @@ export default async function({q, imports, data, account}, {enabled = false, tok
//Plugin execution
try {
//Check if plugin is enabled and requirements are met
if ((!enabled)||(!q.poopmap))
if ((!enabled) || (!q.poopmap))
return null
if (!token) return {poops:[], days:7}
if (!token)
return {poops:[], days:7}
const {days} = imports.metadata.plugins.poopmap.inputs({data, account, q})
const {data:{poops}} = await imports.axios.get(`https://api.poopmap.net/api/v1/public_links/${token}`)
@@ -33,4 +34,4 @@ export default async function({q, imports, data, account}, {enabled = false, tok
catch (error) {
throw {error:{message:"An error occured", instance:error}}
}
}
}