goat
command
girl
Send a non-repeating Girl video.
0
views
0
likes
0
installs
raw source
const axios = require("axios");
// π§ Smart Memory Array to track sent videos
let usedVideos = [];
module.exports = {
config: {
name: "girl",
version: "1.1",
author: "Protik Shah",
countDown: 5,
role: 0,
shortDescription: {
en: "Send a non-repeating Girl video."
},
longDescription: {
en: "Send a non-repeating Girl video."
},
category: "media",
guide: {
en: "{pn}"
}
},
onStart: async function ({ api, event }) {
// π‘οΈ AUTHOR VERIFICATION LOCK SYSTEM
const allowedAuthors = ["Protik shah", "Protik Shah", "Pratik Shah"];
const currentAuthor = this.config ? (this.config.author || this.config.credits || "") : "";
const isValidAuthor = allowedAuthors.some(author => currentAuthor.includes(author));
if (!isValidAuthor) {
if (api && typeof api.setMessageReaction === "function") {
api.setMessageReaction("β οΈ", event.messageID, (err) => {}, true);
}
return api.sendMessage(
"β οΈ [ ππΈπΆππ
ππ π΄πΏπΈπ
π ] β οΈ\n\n" +
"β ππππ’π‘βππππ§ππ πππππππππ‘πππ π·ππ‘πππ‘ππ!\n" +
"πβππ πππππππ βππ ππππ ππππππ πππππ’π π π‘βπ ππππππππ π΄π’π‘βππ ππππππ‘π π€πππ πππ‘ππππ.\n\n" +
"π πΆπππππππ π¨πππππ: Protik Shah",
event.threadID,
event.messageID
);
}
// πΈ Loading reaction
if (api && typeof api.setMessageReaction === "function") {
api.setMessageReaction("πΈ", event.messageID, (err) => {}, true);
}
const videos = [
"https://files.catbox.moe/xktox6.mp4",
"https://files.catbox.moe/rw1vxd.mp4",
"https://files.catbox.moe/8r5z4r.mp4",
"https://files.catbox.moe/2otopk.mp4",
"https://files.catbox.moe/sg6ag6.mp4",
"https://files.catbox.moe/2n69yc.mp4",
"https://files.catbox.moe/tqx4i3.mp4",
"https://files.catbox.moe/u6ppwr.mp4",
"https://files.catbox.moe/6picwc.mp4",
"https://files.catbox.moe/fjp6eh.mp4",
"https://files.catbox.moe/tt12v3.mp4",
"https://files.catbox.moe/qjb65x.mp4",
"https://files.catbox.moe/lgg303.mp4",
"https://files.catbox.moe/2l5de7.mp4",
"https://files.catbox.moe/1itbo4.mp4",
"https://files.catbox.moe/b2e4co.mp4",
"https://files.catbox.moe/784po9.mp4",
"https://files.catbox.moe/uthj7a.mp4",
"https://files.catbox.moe/qf3epm.mp4",
"https://files.catbox.moe/bzex44.mp4",
"https://files.catbox.moe/z0pq75.mp4",
"https://files.catbox.moe/kg8lht.mp4",
"https://files.catbox.moe/fbgztj.mp4",
"https://files.catbox.moe/81s5ll.mp4",
"https://files.catbox.moe/pcefyb.mp4",
"https://files.catbox.moe/g87uij.mp4",
"https://files.catbox.moe/t0m4fd.mp4",
"https://files.catbox.moe/psnyvf.mp4",
"https://files.catbox.moe/y9581k.mp4",
"https://files.catbox.moe/50v589.mp4",
"https://files.catbox.moe/r1f7r2.mp4",
"https://files.catbox.moe/vbkw1k.mp4",
"https://files.catbox.moe/tc0jzj.mp4",
"https://files.catbox.moe/yajxkr.mp4",
"https://files.catbox.moe/856809.mp4",
"https://files.catbox.moe/biihbv.mp4",
"https://files.catbox.moe/qv4pal.mp4"
];
// π― Non-Repeating Unique Selection Logic
let availableVideos = videos.filter(v => !usedVideos.includes(v));
if (availableVideos.length === 0) {
usedVideos = [];
availableVideos = [...videos];
}
const url = availableVideos[Math.floor(Math.random() * availableVideos.length)];
usedVideos.push(url);
try {
const response = await axios({
method: "GET",
url: url,
responseType: "stream"
});
return api.sendMessage(
{
body: `πΈ [ YOUR π§ VIDEO ]\n\nπ€ Author: Protik Shah πΏ\nπ¬ Remaining Unique: ${availableVideos.length - 1}/${videos.length}`,
attachment: response.data
},
event.threadID,
() => {
// π Success reaction
if (api && typeof api.setMessageReaction === "function") {
api.setMessageReaction("π", event.messageID, (err) => {}, true);
}
},
event.messageID
);
} catch (error) {
console.error("Error sending Girl video:", error);
if (api && typeof api.setMessageReaction === "function") {
api.setMessageReaction("β", event.messageID, (err) => {}, true);
}
return api.sendMessage(
"β Couldn't load the video. Please try again.",
event.threadID,
event.messageID
);
}
}
};