An open API service indexing awesome lists of open source software.

https://github.com/cryptohazard/mecene

mecene bot to support communities on the steem blockchain
https://github.com/cryptohazard/mecene

Last synced: 10 months ago
JSON representation

mecene bot to support communities on the steem blockchain

Awesome Lists containing this project

README

          

![Mecene](https://user-images.githubusercontent.com/34451833/38692703-514dcf9a-3e8d-11e8-8b92-95f8870642c0.png)
# mecene
*mécène: French for sponsor, donator, patron. [wiktionary](https://en.wiktionary.org/wiki/m%C3%A9c%C3%A8ne)*

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

You can find a similar service here: [tagbot](https://github.com/emre/tagbot).

## Install nodejs & npm
You can skip this part if you have already installed nodejs/nmp.
```
$ sudo apt-get update
$ curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ sudo apt-get install npm
$ sudo apt-get install nodejs-legacy
```
## Setup & Installation
Clone the project repository and install using NPM:

```
$ git clone https://github.com/cryptohazard/mecene.git
$ cd mecene
$ npm install
```
Update the configuration file ```config.json``` with your account and the posting private key (See description).

### Run in Docker
If you are using Docker, you can use the following commands:

```
docker build -t mecene .
docker run -itd --rm --name mecene mecene

Check the status with docker logs
docker logs mecene
```

### Run in background with PM2
You can use the PM2 software to manage and run your nodejs programs in background:
```
$ npm install pm2 -g
$ pm2 start app.js --name mecene
$ pm2 logs mecene
```

## Bot Configuration

Configuration is stored in the JSON ```config.json```.

| Option | Definition | Default Values |
|:-------------------:|------------------------------------------------------|-----------------|
| rpc_node | a steem node to connect |steemit API node |
| account | bot account | |
| posting_key | the private posting key of the bot account | |
| minimum_power | the minimum voting power at which the bot operates | 10 % |
| minimum_reputation | the minimum reputation of authors | 25 |
| maximum_reputation | the maximum reputation of authors | 70 |
| voting_weight | vote weight (in percent) to apply on every vote | 70 % |
| voting_delay | waiting time in minutes before the actual vote | 30 minutes |
| tags | communities tags to upvote posts like #fr, #art,... | |
| whitelist | list of authors to automatically sponsor | |
| whitelist_power | voting weigth for whitelisted authors | 70 % |
| blacklist | A list of authors to ignore | |
| blacklist_tags | A list of authors to ignore | |

## TODO
* vote weight per sponsored tags/authors
* additional criteria per tag:
* reputation
* author name
* additional tags required
* voting power recovery:
* vote at X% power
* until power at Y%
* then recover until Z% power
* blacklist downvote (I am not keen on that one)

## Logo
*Thanks @radudangratian for the cool logo!*