Spaces:
Paused
Paused
πππππππ πππππππ β‘
commited on
Update tool-ssweb.js
Browse files- plugins/tool-ssweb.js +53 -1
plugins/tool-ssweb.js
CHANGED
|
@@ -215,7 +215,59 @@ Support : wa.me/18062212660
|
|
| 215 |
// Give Credits To Mr Frank
|
| 216 |
//wa.me/18062212660
|
| 217 |
|
| 218 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 219 |
|
| 220 |
// Want My Code?
|
| 221 |
// Give Credita Yahh, Mr Frank
|
|
|
|
| 215 |
// Give Credits To Mr Frank
|
| 216 |
//wa.me/18062212660
|
| 217 |
|
| 218 |
+
// Thank You Jawad
|
| 219 |
+
|
| 220 |
+
const axios = require("axios");
|
| 221 |
+
const config = require('../config');
|
| 222 |
+
const { cmd } = require('../command');
|
| 223 |
+
|
| 224 |
+
cmd({
|
| 225 |
+
pattern: "ss",
|
| 226 |
+
alias: ["ssweb"],
|
| 227 |
+
react: "π",
|
| 228 |
+
desc: "Download screenshot of a given link.",
|
| 229 |
+
category: "other",
|
| 230 |
+
use: ".ss <link>",
|
| 231 |
+
filename: __filename,
|
| 232 |
+
},
|
| 233 |
+
async (conn, mek, m, {
|
| 234 |
+
from, l, quoted, body, isCmd, command, args, q, isGroup, sender,
|
| 235 |
+
senderNumber, botNumber2, botNumber, pushname, isMe, isOwner,
|
| 236 |
+
groupMetadata, groupName, participants, isItzcp, groupAdmins,
|
| 237 |
+
isBotAdmins, isAdmins, reply
|
| 238 |
+
}) => {
|
| 239 |
+
if (!q) {
|
| 240 |
+
return reply("Please provide a URL to capture a screenshot.");
|
| 241 |
+
}
|
| 242 |
+
|
| 243 |
+
try {
|
| 244 |
+
|
| 245 |
+
const response = await axios.get(`https://api.davidcyriltech.my.id/ssweb?url=${q}`);
|
| 246 |
+
const screenshotUrl = response.data.screenshotUrl;
|
| 247 |
+
|
| 248 |
+
// give credit and use
|
| 249 |
+
const imageMessage = {
|
| 250 |
+
image: { url: screenshotUrl },
|
| 251 |
+
caption: "*SUBZERO SS WEB*\n\n> *Β© Generated By Subzero β*",
|
| 252 |
+
contextInfo: {
|
| 253 |
+
mentionedJid: [m.sender],
|
| 254 |
+
forwardingScore: 999,
|
| 255 |
+
isForwarded: true,
|
| 256 |
+
forwardedNewsletterMessageInfo: {
|
| 257 |
+
newsletterJid: '120363304325601080@newsletter',
|
| 258 |
+
newsletterName: "Mr Frank OFC",
|
| 259 |
+
serverMessageId: 143,
|
| 260 |
+
},
|
| 261 |
+
},
|
| 262 |
+
};
|
| 263 |
+
|
| 264 |
+
await conn.sendMessage(from, imageMessage, { quoted: m });
|
| 265 |
+
} catch (error) {
|
| 266 |
+
console.error(error);
|
| 267 |
+
reply("Failed to capture the screenshot. Please try again.");
|
| 268 |
+
}
|
| 269 |
+
});
|
| 270 |
+
|
| 271 |
|
| 272 |
// Want My Code?
|
| 273 |
// Give Credita Yahh, Mr Frank
|