Skip to content

Instantly share code, notes, and snippets.

@ONLym22
ONLym22 / viu.js
Created January 1, 2026 04:57
Uploaded via ONLym Bot
const axios = require('axios');
const { v4: uuidv4 } = require('uuid');
class Viu {
constructor() {
this.inst = axios.create({
baseURL: 'https://api-gateway-global.viu.com/api',
headers: {
'accept-encoding': 'gzip',
'content-type': 'application/x-www-form-urlencoded',
@ONLym22
ONLym22 / onedownloader.js
Created January 1, 2026 04:55
Uploaded via ONLym Bot
const axios = require('axios');
const cheerio = require('cheerio');
/**
* @returns {Promise<Object>} Scraped data object
*/
async function scrapeOneDownloader() {
const baseUrl = 'https://onedownloader.net';
const targetUrl = `${baseUrl}/id`;
@ONLym22
ONLym22 / removebg-tiny.js
Created January 1, 2026 04:51
Uploaded via ONLym Bot
const axios = require('axios');
const cheerio = require('cheerio');
/**
* @returns {Promise<Object>} Scraped data object
*/
async function scrapeTinyWowRemoveBg() {
const url = 'https://tinywow.com/image/remove-bg';
try {
const { data: html } = await axios.get(url, {
@ONLym22
ONLym22 / hd.js
Created January 1, 2026 04:36
Uploaded via ONLym Bot
import fetch from "node-fetch"
import FormData from "form-data"
function genSerial() {
let s = ""
for (let i = 0; i < 32; i++) s += Math.floor(Math.random() * 16).toString(16)
return s
}
async function upscaleImage(buffer) {
@ONLym22
ONLym22 / removebg.js
Created December 31, 2025 14:40
Uploaded via ONLym Bot
// πŸ“‚ Source: JavaScript
case "removebg":
case "rb": {
const q = m.quoted ? m.quoted : m;
const mime = (q.msg || q).mimetype || "";
if (!/image/.test(mime)) {
return xreply(`Kirim atau balas *gambar* dengan perintah *${prefix + command}*`);
}
if (!global.onlym) {
@ONLym22
ONLym22 / yt-transcript.js
Created December 31, 2025 12:05
Uploaded via ONLym Bot
//Yt Transcibe
import axios from "axios"
const extractVideoId = input => {
const url = new URL(input)
const host = url.hostname.replace("www.", "")
if (host === "youtu.be") return url.pathname.slice(1)
@ONLym22
ONLym22 / ytmp3&ytmp4.js
Created December 31, 2025 12:05
Uploaded via ONLym Bot
//YouTube MP3 MP4 Downloader
import axios from "axios"
export async function meow(url) {
const res = await axios.post(
"https://www.meowtxt.com/api/video-info",
{ url },
{
@ONLym22
ONLym22 / spotifydl.js
Created December 31, 2025 12:05
Uploaded via ONLym Bot
//Spotify Downloader
import axios from "axios"
import { spawn } from "child_process"
import fs from "fs"
const CLIENT_ID = "Isi"
const CLIENT_SECRET = "isi"
process.env.YTDLP_COOKIES = "cookies.txt"
@ONLym22
ONLym22 / notegpt.js
Created December 31, 2025 12:04
Uploaded via ONLym Bot
/*
πŸ“Œ Name : Notegpt - Deepseek R1
🏷️ Type : -
πŸ“¦ Saluran : https://whatsapp.com/channel/0029Vb4HHTJFCCoYgkMjn93K
πŸ”— Base Url : https://notegpt.io
πŸ‘€ Creator : Hazel
*/
const axios = require('axios');
@ONLym22
ONLym22 / spotify.js
Created December 31, 2025 08:02
Uploaded via ONLym Bot
// πŸ“‚ Source: JavaScript
case "spotify":
case "spdl":
case "spotifydl":
case "spotifydownload":
{
if (!text) return xreply(`Contoh: ${p_c}${command} https://open.spotify.com/track/xxxx`);
if (!text.includes("spotify.com")) return xreply("❌ Harus berupa link Spotify!");