perspective command v0

This commit is contained in:
derpystuff 2023-02-04 00:41:41 +01:00
parent 4242794942
commit 2b899daf16
4 changed files with 117 additions and 0 deletions

View file

@ -50,6 +50,7 @@ const Api = Object.freeze({
UTILS_EMOJIPEDIA: '/utils/emojipedia',
UTILS_INFERKIT: '/utils/inferkit',
UTILS_PERSPECTIVE: '/utils/perspective',
UTILS_SCREENSHOT: '/utils/screenshot',
})

View file

@ -287,6 +287,12 @@ module.exports.inferkit = async function(context, input){
})
}
module.exports.perspective = async function(context, content = []){
return await request(Api.UTILS_PERSPECTIVE, "GET", {}, {
input: content.join('\n\n')
})
}
module.exports.screenshot = async function(context, url, nsfw){
return await request(Api.UTILS_SCREENSHOT, "GET", {}, {
url: url,