Skip to content

Commit

Permalink
set up the main method
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Osman committed Feb 11, 2018
1 parent 04bb711 commit 8c76f62
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,15 @@ const main = async () => {
bot.setBlockchainAPI(new SteemAPI())
await bot.setDatabase(new sqlDatabase(local))
// bot.scrape()
bot.comment()
bot.vote()


// every minute scrape, vote, and comment
setInterval(() => {
bot.scrape()
bot.vote()
bot.comment()
}, 1000 * 60)

// bot.scrape()
// setInterval(() => bot.scrape(), 1000 * 60) // every minute
// const payout = await bot.payout(1.425)
// console.log(payout)
}
Expand Down

0 comments on commit 8c76f62

Please sign in to comment.