mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 07:03:08 -04:00
perspective command v0
This commit is contained in:
parent
4242794942
commit
2b899daf16
4 changed files with 117 additions and 0 deletions
|
@ -50,6 +50,7 @@ const Api = Object.freeze({
|
|||
|
||||
UTILS_EMOJIPEDIA: '/utils/emojipedia',
|
||||
UTILS_INFERKIT: '/utils/inferkit',
|
||||
UTILS_PERSPECTIVE: '/utils/perspective',
|
||||
UTILS_SCREENSHOT: '/utils/screenshot',
|
||||
})
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue