Last active
August 23, 2022 16:49
-
-
Save missnora07/27531fed033c61c8a2e0165a681dbbb9 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
//modified status plugin | |
//original:https://gist.github.com/mask-sir/7039ba28830665af850441ed94c115d2 | |
//Buttons added..😁 | |
const {Module} = require('../main') | |
const { | |
MODE | |
} = require('../config'); | |
const { | |
getJson | |
} = require('./misc/misc'); | |
const { | |
skbuffer | |
} = require('raganork-bot'); | |
const Config = require('../config'); | |
var handler = Config.HANDLERS !== 'false'?Config.HANDLERS.split("")[0]:""; | |
let w = MODE == 'public' ? false : true | |
Module({pattern: "status ?(.*)",fromMe: w,desc: 'malayalam random STATUS'}, async(m) => { | |
const { result } = await getJson('https://gist.github.com/mask-sir/e3f3f9a277e6e8d38da97e8d15294e39/raw') | |
const mask = result[Math.floor(Math.random()*result.length)]; | |
var buttons = [ | |
{buttonId: handler+"status", buttonText: {displayText: '<3!!'}, type: 1} | |
] | |
var buttonMessage = { | |
video: {url: mask}, | |
caption: "*_STATUS VIDEOS 💞_*", | |
footer: 'Random status...😍', | |
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