Coder Social home page Coder Social logo

flamebot's Introduction

FlameBot

###Introduction

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.

###Acknowledgements

I want to thank the people responsible for tinderjs, tinderauth, and underscore-node. Their projects have saved me countless hours getting this operational.

###Caveats

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.

###System Dependencies

You will need the following on your system:

  • Node.js
  • Npm

###Setup

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?"
   ]
}

###Running the Bot

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.

CLI Options

Running

node bot.js msg

Will just run the messaging service once and then terminate the bot.

###Contributing

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.