Skip to content

Instantly share code, notes, and snippets.

@missnora07
Last active December 26, 2022 20:44
Show Gist options
  • Save missnora07/86ea2bc4d1d799ce66ab62b7332f9d3b to your computer and use it in GitHub Desktop.
Save missnora07/86ea2bc4d1d799ce66ab62b7332f9d3b to your computer and use it in GitHub Desktop.
//api credits not mine...
//adult plugin
//api creator toxic devil...
const {Module} = require('../main')
const Config = require('../config');
const {skbuffer} = require('raganork-bot');
const {MODE} = require('../config');
let auto = MODE == 'public' ? false : true
var handler = Config.HANDLERS !== 'false'?Config.HANDLERS.split("")[0]:"";
Module({
pattern: 'xanime ?(.*)',
fromMe: auto,
desc: 'Sends image',
use: 'utility',
}, async (m,t) => {
var buttons = [
{buttonId: handler+"xanime", buttonText: {displayText: 'One more'}, type: 1}
]
var buttonMessage = {
image: {url:"https://api-toxic-devil.herokuapp.com/api/random/anime?type=nsfw"},
caption: "*_NSFW IMAGES 💞_*",
footer: 'Anime 🔞 image photos...😍',
buttons: buttons,
headerType: 4
}
await m.client.sendMessage(m.jid,buttonMessage)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment