Skip to content

Instantly share code, notes, and snippets.

View nabeelxdd's full-sized avatar
💭
I may be slow to respond.

Nabeel XD nabeelxdd

💭
I may be slow to respond.
View GitHub Profile
const { bot } = require('../lib'); // Assuming your bot library is in ../lib
async function getRandomImageURL() {
const apiKey = "f6QueGeF_dxA2dyB71rlGVCgYzQ629A4ZvILHYJEFak";
try {
const response = await fetch(`https://api.unsplash.com/photos/random?client_id=${apiKey}`);
const data = await response.json();
return data.urls.regular;
} catch (error) {
console.error("Error fetching image:", error);
@nabeelxdd
nabeelxdd / getjids.js
Last active March 5, 2025 13:46
Get Group Members Jid. Plugin by Nabeel XD
const {
bot,
getGids,
jidToNum,
isGroup,
getGroupMembers,
getName,
} = require('../lib/')
bot(
@nabeelxdd
nabeelxdd / Broadcast.js
Last active July 16, 2025 09:33
Levanter-MD Broadcast Plugin by Nabeel-XD. ‎ ‎ ‎ ‎ ‎ ‎ ‎‎ ‎ ‎ ‎ ‎ ‎ ‎ Thanks: @lyfe00011 for Help to Create Plugin‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎Commands: newbocst, editbocst, dtbocst, allbocst, sndbocst
const fs = require('fs')
const path = require('path')
const { bot, parsedJid, sleep, forwardOrBroadCast } = require('../lib/')
const BROADCAST_FOLDER = path.join(__dirname, 'NabeelXD-Broadcast')
if (!fs.existsSync(BROADCAST_FOLDER)) {
fs.mkdirSync(BROADCAST_FOLDER)
}