A discord bot that bypasses pesky ad-links using node-fetch, and Discord.js-Commando.
Originally created by the super cute respecting / lemons
This is the origial source code, make sure you follow the license when using the source code.
Now Maintained By Rismose & jiggey <3
Invite Shortlink Bot into your Discord! The prefix is - (pipe).
The bot sends a message to your DM's, It isn't clear in the DEMO above
Sainan/Universal-Bypass for the old linkvertise bypass.
-
Clone this repository
-
cd
into the repository. -
npm i
to install necessary dependencies. -
Create a
.env
file and put the following in.
token=
prefix=
invite=
owner=
-
Change prefix to whatever you like.
-
Add token.
-
Put your invite code. (DO NOT PUT THE LINK!)
-
Put your discord ID.
-
node index.js
to start running the bot. -
Profit!
Please format your proxies like the chart listed here.
First, we parse the user's submitted linkvertise link and get the path!
We're going to use JS for these examples. (Note! These examples have NOT BEEN tested, and probably won't work in a real environment!)
var linkvertiseURL = new URL("https://linkvertise.com/123456/gaming?o=sharing")
console.log(linkvertiseURL.pathname)
Here's a cool diagram so you can understand:
https://linkvertise.com/123456/gaming?o=sharing
^ ^^^^^^ ^
junk we dont need we need this junk we dont need
Since we've parsed the link sucessfully, we now have to send a request to Linkvertise to obtain the link id.
var linkId;
fetch("https://publisher.linkvertise.com/api/v1/redirect/link/static"+linkvertiseURL.pathname).then(r=>r.json()).then(j=>{
linkId = j.data.link.id
})
Now we have to create a serial, to actually get the bypassed link.
An example of a serial is:
{
"timestamp":0000000000,
"random":"6548307",
"link_id":00000000
}
({
"timestamp":new Date().getTime(),
"random":"6548307",
"link_id":linkId
})
The timestamp is the unix epoch in milliseconds, we can ignore random (It's always 6548307) and link_id is the ID we obtained from the first request. After creating our serial, we need to convert it to base64.
serial = btoa(JSON.stringify({ //btoa means to base64 encode, JSON.stringify turns the serial JSON into a string so btoa doesn't throw errors.
"timestamp":new Date().getTime(),
"random":"6548307",
"link_id":linkid
}));
Now, we just have to send a request to Linkvertise to get the bypassed link!
var bypassedLink;
fetch("https://publisher.linkvertise.com/api/v1/redirect/link" + linkvertiseURL.path + "/target?serial=" + serial, {
method: "POST"
}).then(r=>r.json()).then(j=>{
bypassedLink = j.data.target;
console.log(bypassedLink)
})
- Please note that logging links to console is only for demonstration purposes.