I made a bot that interfaces with the Tinder API where it auto-likes potential matches and periodically sends initial messages to new uncontacted matches. I mainly did this as a thought experiment and as a way to get more familiar with node.js. I in no way intend to use this code for monetary gain, but just as a time-saving personal enterprise.
I want to thank the people responsible for tinderjs, tinderauth, and underscore-node. Their projects have saved me countless hours getting this operational.
Tinder needs your Facebook credentials which this code obtains in a programmatic way. Know that this might violate both Tinder's and Facebook's terms of service. In fact the node module I use to achieve this (tinderauth) warns it's users about this possiblity.
You will need the following on your system:
- Node.js
- Npm
Once the system dependencies are installed go into the root of the project and run:
npm install
You will also need to setup your Facebook login information as environmental variables in your .bashrc file which is described in the tinderauth README.
In order to run the messaging service successfully you will need to create a messages.json file in the root of the project which you can put in an array of messages which the bot will randomly select one to send to a new match. An example json file can be seen below:
{
"textChoices": [
"Hi ;)",
"Enjoying the weather?"
]
}
You can run the bot by issuing this command when you are in the root of the project:
node bot.js
This will run two services. The first service will request recommendations from the Tinder API and "like" the recs returned. There are console.logs in place where you can see the JSON payloads of the users found and when the bot has liked them. The second service will periodically request your user data and iterate through your past matches and send an initial message if no previous interaction has occured.
Everytime the bot is run will be logged into a runtimes.log file which will have the timestamp and process id. Also whenever the messaging service runs your account history will be saved out to a json file called userData.json. I plan on doing data analysis on my own account and thought others might want to do the same. If not you can just ignore/delete the file.
Running
node bot.js msg
Will just run the messaging service once and then terminate the bot.
I am open to contributors to this project and would love input on how to make it better. Please read through the existing issues before posting yours to avoid duplicates. Feel free to issue pull requests and I will be sure to review them promptly.