Mecene bot v0.0.2: more criteria to choose community to sponsor

in #utopian-io6 years ago

msn.png

mécène: French for sponsor, donator, patron. wiktionary

This is a bot to support communities on the steem blockchain. It automatically upvote the chosen communities tags.

Repository

https://github.com/cryptohazard/mecene

New Features

Minimum voting power

The bot has a minimum voting power at which it operates. Voting is halted if the power is below that minimum.
The API call to chekc the voting power is asynchronous so I placed it in the voter function. Then we can compare it with the minimum allowed:

 if (parseInt(response[0].voting_power) < minimum_power ){
      console.log("Voting power too low to proceed!")
      return;
}

Minimum/Maximum reputation

We can now specify the reputation of the steemians we want to support. You can now target minnows, newbies, or wise old steemians.

Whitelist power

The whitelisted accounts get automatic upvotes on all the articles they publish. You can now choose the voting power percentage in the configuration.

Blacklist tags

Running this bot, I noticed a lot of tag abuse/spam. I already implemented a blacklist and filled it. I noticed some abusers were using the same tags. The idea for the bot is to avoid the tags I am not interested in.

//tags blacklisted
config.blacklist_tags.forEach(function(blacklistTag){
      if (metaJSON.tags.includes(blacklistTag)){
            console.log("Tag blacklisted: ", blacklistTag," for article " + operation.permlink);
      }
});

default values documentation

OptionDefinitionDefault Values
minimum_powerthe minimum voting power at which the bot operates10 %
minimum_reputationthe minimum reputation of authors25
maximum_reputationthe maximum reputation of authors70
voting_weightvote weight (in percent) to apply on every vote70 %
voting_delaywaiting time in minutes before the actual vote30 minutes
whitelist_powervoting weigth for whitelisted authors70 %

small fixes

  • configuration: the bot can run with non essential fields missing thanks to the default values
  • bug on vote re-trials: I forgot to call voter with retry set to 0(was set to undefined).

Next features

  • tests suite
  • criteria per tags

GitHub Account

https://github.com/cryptohazard

Sort:  

Wow, a competitor to tagbot :)

you are the reference :-D. I even made suggestions to tagbot last time.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.

Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Hey @cryptohazard
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

very good friends to live a new life

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63964.02
ETH 2592.87
USDT 1.00
SBD 2.75