From ed996371b0fd6636c70029ed51c52a3326d2a58b Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sat, 2 Apr 2022 23:28:08 +0700 Subject: [PATCH] new api shorten url --- src/structures/WebEmbed.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/structures/WebEmbed.js b/src/structures/WebEmbed.js index 646f6ef..55b0902 100644 --- a/src/structures/WebEmbed.js +++ b/src/structures/WebEmbed.js @@ -301,10 +301,11 @@ 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://cdpt.in/shorten?url=', Redirects 5s :( - ]; + // '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://cdpt.in/shorten?url=', Redirects 5s :( + ]; try { const res = await axios.get( `${APIurl[Math.floor(Math.random() * APIurl.length)]}${url}`,