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,

View file

@ -32,6 +32,10 @@ const Statics = Object.freeze({
file: "brands/openweathermap.png",
revision: 0
},
perspectiveapi: {
file: "brands/perspectiveapi.png",
revision: 0
},
photofunia: {
file: "brands/photofunia.png",
revision: 1
@ -97,6 +101,7 @@ module.exports.STATICS = Object.freeze({
inferkit: staticAsset(Statics.brands.inferkit),
makesweet: staticAsset(Statics.brands.makesweet),
openweathermap: staticAsset(Statics.brands.openweathermap),
perspectiveapi: staticAsset(Statics.brands.perspectiveapi),
photofunia: staticAsset(Statics.brands.photofunia),
quora: staticAsset(Statics.brands.quora),
reddit: staticAsset(Statics.brands.reddit),