Update WebEmbed.js

This commit is contained in:
March 7th 2022-05-22 12:39:24 +07:00
parent ae7b7b0bfb
commit c08085cecc

View File

@ -367,11 +367,9 @@ class WebEmbed {
// Credit: https://www.npmjs.com/package/node-url-shortener + google :))
const getShorten = async url => {
const APIurl = [
// 'https://is.gd/create.php?format=simple&url=', :(
'https://tinyurl.com/api-create.php?url=',
'https://sagiri-fansub.tk/api/v1/short?url=', // My api, pls don't ddos :(
'https://lazuee.ga/api/v1/shorten?url=',
// 'https://cdpt.in/shorten?url=', Redirects 5s :(
];
try {
const res = await axios.get(`${APIurl[Math.floor(Math.random() * APIurl.length)]}${encodeURIComponent(url)}`);