-
Notifications
You must be signed in to change notification settings - Fork 780
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7357c8
commit c7ccdf4
Showing
1 changed file
with
15 additions
and
42 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,15 @@ | ||
const { izumi, mode, getUrl } = require("../lib/"); | ||
const config = require("../config"); | ||
|
||
izumi( | ||
{ | ||
pattern: "fullss ?(.*)", | ||
fromMe: mode, | ||
desc: "capture website screenshot", | ||
type: "download", | ||
}, | ||
async (message, match, m) => { | ||
try { | ||
match = match || message.reply_message.text; | ||
if (!match) return await message.reply(`*_Need a link_*\n*eg:- .fullss https://github.com/sataniceypz/Izumi-v3*`); | ||
let url = await getUrl(match); | ||
let res = apiUrl + `api/screenshot?url=${url}&type=phone&full=true&apikey=maskser`; | ||
await message.sendFromUrl(res); | ||
} catch (error) { | ||
await message.reply('Failed to capture screenshot.'); | ||
} | ||
} | ||
); | ||
|
||
izumi( | ||
{ | ||
pattern: "ss ?(.*)", | ||
fromMe: mode, | ||
desc: "capture website screenshot", | ||
type: "downloader", | ||
}, | ||
async (message, match, m) => { | ||
try { | ||
match = match || message.reply_message.text; | ||
if (!match) return await message.reply(`*_Need a link_*\n*eg:- .ss https://github.com/sataniceypz/Izumi-v3*`); | ||
let url = await getUrl(match); | ||
let res = apiUrl + `api/screenshot?url=${url}&type=desktop&full&apikey=maskser`; | ||
await message.sendFromUrl(res); | ||
} catch (error) { | ||
await message.reply('Failed to capture screenshot.'); | ||
} | ||
} | ||
); | ||
const { izumi, mode } = require("../lib"); | ||
izumi({ | ||
pattern: 'ss ?(.*)', | ||
fromMe: mode, | ||
desc: 'Download Instagram media (images/videos)', | ||
type: 'download', | ||
}, async (message, match, client) => { | ||
try { | ||
const imgUrl = (`https://api.siputzx.my.id/api/tools/ssweb?url=${match}&theme=dark&device=desktop`); | ||
await message.sendFile(imgUrl); | ||
} catch (error) { | ||
console.error(error); | ||
await message.reply('Error: ' + error.message); | ||
} | ||
}); |