Git Product home page Git Product logo

mcafee-bot's Introduction

mcafee-bot

When @officialmcafee posts his coin of the day, buy it ASAP.

How it works

  • Read @officialmcafee's tweets in real time.
  • Determine whether the tweet is a coin of the day announcement.
  • If so, determine what coin it is.
  • If it's on bittrex, buy it.

IT DOES NOT SELL!

That is left as an exercise for you.

Installation

Prerequisites

Before you even try to install this, you need to have the following things installed:

# OSX
brew install tesseract --with-all-languages

# Linux (Ubuntu)
apt-get install libtesseract-dev tesseract-ocr

I don't know what to tell you Windows people. Perhaps consider running Ubuntu under VirtualBox.

Cloning

git clone [email protected]:DimensionSoftware/mcafee-bot.git
cd mcafee-bot
yarn

API Keys

You have to go to both twitter and bittrex to get your own API keys. Once acquired, I recommend putting them in secrets.env.

Usage

source secrets.env  # You have to get your own API keys from twitter and bittrex!
bin/repl

This will drop you into a node.js repl with an instantiated bot you can command interactively.

// The bot.
bot

// How much BTC are you willing to spend per purchase?
bot.btcSpend = 0.25

// To get ahead of the pump, 
// what multiplier do you want to add to the current price when putting in the buy order?
// bid == price + (price * bot.adjustment)
bot.adjustment = 0.20

// If you want to see it read tweets:
bot.verbose = true

// If you want it to shut up (which is the default):
bot.verbose = false

// Make the bot connect to twitter and monitor tweets.  VERY IMPORTANT!
bot.init()

It is now waiting for @officialmcafee to tweet his coin of the day.

Tweets

mcafee-bot's People

Contributors

khoerling avatar

Watchers

 avatar

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.