DimensionSoftware / mcafee-bot

buy coins based on @officialmcafee tweets
63 stars 32 forks source link

yarn start and test with dummy account #5

Closed senzacionale closed 6 years ago

senzacionale commented 6 years ago

One problem

I set dummy account


this.mcafeeId = '961445378'

    this.follow = [
      // @officialmcafee
      '961445378'
      // @mbb777_ (dummy account for testing tweets)
      ,'xxxx'
    ]

start it with yarn start

and then I post

Coin of the day: Power Ledger (POW)

but in console is nothing:

just this:

$ yarn start yarn run v1.3.2 $ node index.js connect

Mwisho commented 6 years ago

Powerleder is POWR, not POW

beppu commented 6 years ago

The way things are now, it only trusts tweets from @officialmcafee when it tries to determine whether a tweet is a Coin of the Day.

https://github.com/DimensionSoftware/mcafee-bot/blob/master/lib/bot.js#L80

If you wanted the tweets from the testing account to trigger a sell, you'd also have to change mcafeeId to the id of your test account.

https://github.com/DimensionSoftware/mcafee-bot/blob/master/lib/bot.js#L29

You can do this on your own for testing purposes, but I'm not going to check something like this in, because only developers need something like this.