Skip to content

Commit

Permalink
Merge branch 'ShirokamiRyzen:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
NeofetchNpc authored Nov 21, 2024
2 parents e1fc0bb + f33c12b commit 56759c6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugins/sticker-brat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!';

Expand Down

0 comments on commit 56759c6

Please sign in to comment.