Skip to content

Instantly share code, notes, and snippets.

@missnora07
Last active August 23, 2022 16:49
Show Gist options
  • Save missnora07/27531fed033c61c8a2e0165a681dbbb9 to your computer and use it in GitHub Desktop.
Save missnora07/27531fed033c61c8a2e0165a681dbbb9 to your computer and use it in GitHub Desktop.
//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