Skip to content

Instantly share code, notes, and snippets.

@missnora07
Last active August 19, 2022 16:45
Show Gist options
  • Save missnora07/aafc422bca3f4097b4ce444ecdd66e54 to your computer and use it in GitHub Desktop.
Save missnora07/aafc422bca3f4097b4ce444ecdd66e54 to your computer and use it in GitHub Desktop.
//api credits not mine...
//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: 'anime ?(.*)',
fromMe: auto,
desc: 'Sends image',
use: 'utility',
}, async (m,t) => {
var buttons = [
{buttonId: handler+"anime", buttonText: {displayText: 'One more'}, type: 1}
]
var buttonMessage = {
image: {url:"https://api-toxic-devil.herokuapp.com/api/random/anime?type=sfw"},
caption: "*_SFW 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