whatsapp-bot icon indicating copy to clipboard operation
whatsapp-bot copied to clipboard

RandomNsfw not work

Open AlissoNNunes1 opened this issue 4 years ago • 4 comments

image image

the commands not work,but the site yes,

how can i fix?

AlissoNNunes1 avatar Jan 15 '21 19:01 AlissoNNunes1

please help me

AlissoNNunes1 avatar Jan 20 '21 15:01 AlissoNNunes1

This API is better https://nekobot.xyz/api/image

Read the docs: https://docs.nekobot.xyz/#image-endpoints-image

lxndr-rl avatar Jan 21 '21 14:01 lxndr-rl

This API is better https://nekobot.xyz/api/image

Read the docs: https://docs.nekobot.xyz/#image-endpoints-image

I looked at the site and I was confused, how should I replace this API. Sorry for my ignorance

AlissoNNunes1 avatar Jan 21 '21 15:01 AlissoNNunes1

Please try this I use that api on my discord bot. 1.- npm i superagent

var superagent = require("superagent");
superagent
        .get("https://nekobot.xyz/api/image")
        .query({ type: args[1] })
        .end((err, response) => {
          if (!err) {
            client.sendFileFromUrl(from, response.body.message, 'nsfw.png', `_${args[1]}_`, id);
          } else {
             client.reply(from, response.body.message, id)
          }
        });


lxndr-rl avatar Jan 21 '21 16:01 lxndr-rl