From f33c12b0f6a111379c0526a617d1b526c5579291 Mon Sep 17 00:00:00 2001 From: ShirokamiRyzen Date: Wed, 20 Nov 2024 23:44:46 +0700 Subject: [PATCH] modified: plugins/sticker-brat.js --- plugins/sticker-brat.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/sticker-brat.js b/plugins/sticker-brat.js index eda6c97..0254d79 100644 --- a/plugins/sticker-brat.js +++ b/plugins/sticker-brat.js @@ -5,11 +5,7 @@ let handler = async (m, { conn, text, usedPrefix, command }) => { if (!text) throw 'Masukkan teks!'; try { - let res = await fetch(`https://api.ryzendesu.vip/api/sticker/v2/brat?text=${encodeURIComponent(text)}`); - - if (!res.ok) { - res = await fetch(`https://api.ryzendesu.vip/api/sticker/brat?text=${encodeURIComponent(text)}`); - } + let res = await fetch(`https://api.ryzendesu.vip/api/sticker/brat?text=${encodeURIComponent(text)}`); if (!res.ok) throw 'Gagal mengambil gambar dari kedua API!';