editimage command

This commit is contained in:
derpystuff 2023-02-23 22:48:36 +01:00
parent 3d6233a0a7
commit f35586fe89
7 changed files with 51 additions and 4 deletions

View file

@ -17,6 +17,7 @@ const Api = Object.freeze({
GOOGLE_VISION_WEBDETECTION: '/google/vision/webdetection',
IMAGE_DEEPDREAM: '/image/deepai/deepdream',
IMAGE_IMAGEEDITOR: '/image/deepai/imageedit',
IMAGE_SUPERRESOLUTION: '/image/deepai/superresolution',
IMAGE_TEXT2IMAGE: '/image/deepai/text2image',
IMAGE_WAIFU2X: '/image/deepai/waifu2x',

View file

@ -222,6 +222,13 @@ module.exports.deepdream = async function(context, url){
})
}
module.exports.imageedit = async function(context, url, prompt){
return await request(Api.IMAGE_IMAGEEDITOR, "GET", {}, {
url: url,
prompt: prompt
})
}
module.exports.waifu2x = async function(context, url){
return await request(Api.IMAGE_WAIFU2X, "GET", {}, {
url: url