Last active
August 19, 2022 16:45
-
-
Save missnora07/aafc422bca3f4097b4ce444ecdd66e54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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