This project allows you to host your own bot on your discord server, and receive notifications for your favorite vinted searches.
It's a feature that is truly missed in the Vinted app, you will never miss a good deal again!
Warning
Vinted uses Cloudflare to protect its API from scraping. A single IP is only allowed a limited number of calls before being blocked for 24h. If you want to have this bot running 24/7 you should consider adding rotating proxies.
- Ability to have as many searches as you wish in as little or as many discord channels as wanted (it's possible to have multiple searches in a single channel)
- Each search has its own schedule! you just have to configure how frequently it needs to be refreshed
- Ability to block certain words from the title of your search results, to make your searches even more precise!
- Checkout the 'autobuy' branch for to setup the autobuy feature.
- Need to be able to run JS code, preferably on a machine that is up 24/7 ( I use npm and node on a small raspberry pi, other options could be renting a VPS, or using services like Heroku)
- Have a discord server you can invite the bot on
- Go to the Discord Developer Portal.
- Click on "New Application" and give your bot a name.
- Go to the "Bot" tab and click on "Add Bot".
- Copy the "Token" to put in the configuration file in the next steps.
- Give intent permissions to the bot by going to the "Bot" tab and enabling the "Presence Intent", "Server Members Intent" and "Content Message Intent".
- Invite the bot with admin permissions to your server by going to the "OAuth2" tab and selecting the "bot" and "application.commands" scope and the "Administrator" permission.
- Copy the generated URL and paste it into your browser to invite the bot to your server. (credits:@teddy-vltn for the tutorial)
If you want to use autobuy you will need to clone this branch, then add your session tokens to autobuy.json
. You will also need to add your home address latitude and longitude for the automatic selection of the pickup point. Google your User Agent and paste it in the config too.
{
"user_agent": "Mozilla....",
"access_token": "eyJ...",
"refresh_token": "eyJ...",
"latitude":1.1313,
"longitude":1.1313
}
You need to get the tokens from your browser storage, AFTER having logged-in with the account you want to use for your purchases
Don't hesitate to contact me on discord (@thewwk) or open an issue here if you have any concerns or requests!