create account

How To: Community Bot - A Voting Bot for Steem Communities by bitcoinparadise

View this thread on: hive.blogpeakd.comecency.com
· @bitcoinparadise ·
$1.95
How To: Community Bot - A Voting Bot for Steem Communities
![commbot.png](https://cdn.steemitimages.com/DQmdDrd1kw8Zc5jSATJ8b57aoCHzv4JMSu4sZQBn1vx3vQG/commbot.png)

I have been trying out different apps that have been developed by fellow Steemians and apply them to a use case for projects. One I found really interesting was this **Community bot** developed by @yabapmatt.
https://github.com/MattyIce/communitybot. 

I incorporated this bot into one of the curation accounts for the @smartmediagroup curation project *SMGroups*. 

Specifically, we are testing it out on the @food-smg account and to help the food community on the platform. Much work needs to be done for the curation project as there were setbacks on the SMG project.

If you would like to support this part of the project, you can find the details on the announcement post:

https://steemit.com/community/@food-smg/ann-beta-join-us-in-helping-distribution-of-rewards-and-growth-for-the-food-community

For more details on how the bot works, you can check out the original post:

https://steemit.com/utopian-io/@yabapmatt/community-bot-a-voting-bot-for-steem-communities


## Requirements

* Mac or Linux OS( If using Linux, **Ubuntu 16.04 Recommended**)

* **Optional**: Install Linux Subsystem for Windows 10

https://www.youtube.com/watch?v=Cvrqmq9A3tA

---

## Step 1

### Copy Entire Commands Below or Individually & Paste into Terminal

* `Ctrl+Shift+v` to paste in terminal
or
Right click in terminal.
***Note:*** The clipboard might not have copied properly so you might need to copy again and paste.

```
sudo apt-get update && 
sudo apt-get install git && 
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh -o install_nvm.sh && 
bash install_nvm.sh && 
source ~/.profile && 
nvm install 8.11.3 && 
nvm use 8.11.3 && 
git clone https://github.com/MattyIce/communitybot.git && 
cd communitybot/ && 
npm install &&
mv config-example.json config.json &&
npm install pm2 -g
```

#### Press `ENTER` (You may need to enter your Linux password you created when installing the OS. ***Note***: Password not visible when you type.)

---

## Step 2

#### Type the command:

`sudo nano config.json`


#### Edit here:


```
{
  "disabled_mode": false,
  "detailed_logging": false,
  "account": "bot_account_name",    <-----------no @ 
  "memo_key": "your_private_memo_key",  <----optional for ecrypted memo
  "posting_key": "your_private_posting_key",   <---self-explainitory
  "active_key": "your_private_active_key",   <---required for memo transfer
  "auto_claim_rewards" : true,       <------to claim author rewards
  "post_rewards_withdrawal_account": null, <---payouts from posts to another account "account_name",
  "vote_weight": 10000,
	"whitelist_only": true,
	"whitelist_location": "whitelist.txt",
	"comment_location": "comment.md",     <--- edit to comment when upvoted on posts. set to null to not use
	"resteem": true,              <---automatically resteem voted posts
	"flag_signal_accounts": ["spaminator", "cheetah", "steemcleaners", "mack-bot"],
	"blacklisted_tags": ["nsfw"],
	"whitelisted_tags": ["your-community-tag"],
  "api": {
    "enabled": true,
    "port": 3100
  },
  "membership": {
    "start_date": "2/20/2018",  // Date when membership starts
    "membership_period_days": 30, // The length of time for which the dues pay
    "delegation_vests": 60000,  // Min amount of delegation required for membership
    "full_delegation_vests": 120000,  // Min amount of delegation required for membership with no dues
    "dues_steem": 1,  // Dues required if delegation is less than "full_delegation_vests"
    "dues_steem_no_delegation": 2 // Dues required of delegation is less than "delegation_vests"
  },
	"transfer_memos": {
		"whitelist_only": "This bot is for community members only. Please contact the community leaders to get added to the whitelist in order to join.",
		"member_valid_thru": "Membership updated for @{to}. Membership valid through: {tag}.",
		"member_full_delegation": "Membership updated for @{to}. Full amount delegated, membership is valid indefinitely while delegation remains."
	}
}
```

After done editing your config.json file,

#### Press `Ctrl+x`, then `y`, then `ENTER`

---

## Step 3

* Start the bot

`pm2 start communitybot.js --name commbot` (I used `commbot` you can change it to what you want to name it)

You can check to see if the script is running in the live logs by typing:
`pm2 logs`

`Ctrl+c` to Exit

To configure the API setup and reverse proxy, follow the steps on [Github](https://github.com/MattyIce/communitybot).

More information on how to use PM2 Here:
http://pm2.keymetrics.io/

---

<center>
<img src="https://steemitimages.com/0x0/https://i.imgur.com/wCpvrbr.png">
https://discord.gg/MM5vHss
</center>
<center>
<div class="pull-right">
<a href="https://1fox.com/?t=tx">
<img src="https://cdn.steemitimages.com/DQmY12BxPya2eUMZcn5Zd6zUcvQJ2Ukf3T48WZ1Xo1u3s7q/image.png"/>
<br>
Trade Bitcoin/Bitcoin Cash with Bitcoin/Bitcoin Cash!
</a>
</div>

<div class="pull-left">
<a href="https://1broker.com/?r=bk"><img src="https://1broker.com/img/banner2-234x60.png"/>
<br>
Trade Forex and other legacy markets with Bitcoins
</a>
</div>
</center>
<br>
<br>
<center><a href="https://scorum.com/en-us/profile/@bitcoinparadise"><img src="https://cdn.steemitimages.com/DQmRneQoi8SSqwn2GFBFoaKxBycF7mD9futXy8C4TcF8rYi/image.png"/>
</a></center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorbitcoinparadise
permlinkhow-to-community-bot-a-voting-bot-for-steem-communities
categorysteem
json_metadata{"tags":["steem","community","apps","automation","development"],"users":["yabapmatt","smartmediagroup","food-smg"],"image":["https://cdn.steemitimages.com/DQmdDrd1kw8Zc5jSATJ8b57aoCHzv4JMSu4sZQBn1vx3vQG/commbot.png","https://img.youtube.com/vi/Cvrqmq9A3tA/0.jpg","https://steemitimages.com/0x0/https://i.imgur.com/wCpvrbr.png","https://cdn.steemitimages.com/DQmY12BxPya2eUMZcn5Zd6zUcvQJ2Ukf3T48WZ1Xo1u3s7q/image.png","https://1broker.com/img/banner2-234x60.png","https://cdn.steemitimages.com/DQmRneQoi8SSqwn2GFBFoaKxBycF7mD9futXy8C4TcF8rYi/image.png"],"links":["https://github.com/MattyIce/communitybot","https://steemit.com/community/@food-smg/ann-beta-join-us-in-helping-distribution-of-rewards-and-growth-for-the-food-community","https://steemit.com/utopian-io/@yabapmatt/community-bot-a-voting-bot-for-steem-communities","https://www.youtube.com/watch?v=Cvrqmq9A3tA","http://pm2.keymetrics.io/","https://discord.gg/MM5vHss","https://1fox.com/?t=tx","https://1broker.com/?r=bk","https://scorum.com/en-us/profile/@bitcoinparadise"],"app":"steemit/0.1","format":"markdown"}
created2018-09-05 21:06:12
last_update2018-09-05 21:06:12
depth0
children3
last_payout2018-09-12 21:06:12
cashout_time1969-12-31 23:59:59
total_payout_value1.614 HBD
curator_payout_value0.335 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5,351
author_reputation52,935,636,369,082
root_title"How To: Community Bot - A Voting Bot for Steem Communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,437,447
net_rshares1,773,806,005,294
author_curate_reward""
vote details (62)
@angelica7 ·
$0.24
Learning with you dear @bitcoinparadise you continue working with great effort and will to succeed with all the success you deserve. Do not pass out, better times will come. These tools are super useful to facilitate the work of a man. I send you good wishes, waiting to bequeath you where you are.
Good vibes.
👍  , ,
properties (23)
authorangelica7
permlinkre-bitcoinparadise-how-to-community-bot-a-voting-bot-for-steem-communities-20180905t235545002z
categorysteem
json_metadata{"tags":["steem"],"users":["bitcoinparadise"],"app":"steemit/0.1"}
created2018-09-05 23:55:48
last_update2018-09-05 23:55:48
depth1
children0
last_payout2018-09-12 23:55:48
cashout_time1969-12-31 23:59:59
total_payout_value0.178 HBD
curator_payout_value0.058 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length310
author_reputation496,424,322,955,050
root_title"How To: Community Bot - A Voting Bot for Steem Communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,447,417
net_rshares214,598,324,065
author_curate_reward""
vote details (3)
@ckiru ·
thank you for upvote and support me
properties (22)
authorckiru
permlinkre-bitcoinparadise-how-to-community-bot-a-voting-bot-for-steem-communities-20180912t144009388z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2018-09-12 14:40:09
last_update2018-09-12 14:40:09
depth1
children0
last_payout2018-09-19 14:40:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length35
author_reputation10,480,702,710
root_title"How To: Community Bot - A Voting Bot for Steem Communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,088,419
net_rshares0
@steemitboard ·
Congratulations @bitcoinparadise! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png)](http://steemitboard.com/@bitcoinparadise) Award for the number of upvotes

<sub>_Click on the badge to view your Board of Honor._</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Do not miss the last post from @steemitboard:**
<table><tr><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-witness-update-2018-09-07"><img src="https://steemitimages.com/64x128/http://i.cubeupload.com/7CiQEO.png"></a></td><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-witness-update-2018-09-07">SteemitBoard - Witness Update</a></td></tr><tr><td><a href="https://steemit.com/steemfest/@steemitboard/steemfest-steemitboard-support-the-travel-reimbursement-fund"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmawPYDAwfrQM8YU6ejD1f87g64cvsmEFn8RQKHJMs4zxg/image.png"></a></td><td><a href="https://steemit.com/steemfest/@steemitboard/steemfest-steemitboard-support-the-travel-reimbursement-fund">SteemFest³ - SteemitBoard support the Travel Reimbursement Fund.</a></td></tr></table>

> Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-bitcoinparadise-20180908t004844000z
categorysteem
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-09-08 00:48:42
last_update2018-09-08 00:48:42
depth1
children0
last_payout2018-09-15 00:48:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,551
author_reputation38,975,615,169,260
root_title"How To: Community Bot - A Voting Bot for Steem Communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,655,025
net_rshares0