mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-14 09:03:04 -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue