whatsapp-bot
whatsapp-bot copied to clipboard
RandomNsfw not work
the commands not work,but the site yes,
how can i fix?
please help me
This API is better https://nekobot.xyz/api/image
Read the docs: https://docs.nekobot.xyz/#image-endpoints-image
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
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)
}
});