Suggestions to change bot algorithm by littleboy

View this thread on steempeak.com
· @littleboy · (edited)
$24.43
Suggestions to change bot algorithm
Utopian.io recently updated the anti bot section of the bot script. The new update I believe has some flaws that would allow cheaters get extra upvotes. 

For example, if you got 33 upvotes from bots, you would get -2.5 and those who are getting only one bot vote on them are also getting -2.5. Only major abusers who are using hordes of bots are getting the penalty.

So, I am suggesting the following algorithm change to make the bot more supportive of quality content. The code is presented below:

<code>

           if (foundBots > 0) {
                                        vote = vote - 2.5;

                                        if (foundBots > 4) {
                                          vote = vote - 2.5;
                                        }

                                        if (foundBots > 8) {
                                          vote = vote - 5;
                                        }

                                        if (foundBots > 12) {
                                          vote = vote - 10;
                                        }

                                        suggestions.push('Utopian has detected ' + foundBots + ' bot votes. I am the only bot you should love!!');
                                      }
</code>

A image of the changes I made to the algorithm is added below. [Link to pull request](https://github.com/utopian-io/api.utopian.io/pull/25) (pull request number is 25). 

Also, I am not a professonal javascript coder. Admin, please review the code for errors before merging.

![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1510753194/utzopzmi1bor4o9tsrua.png)

This proposed pull request will penalize bot users as follows:

Those who use 1-3 bots will get -2.5 voting power.

Those who use 4-7 bots will get -5 voting power.

Those who use 8-11 bots will get -10 voting power.

Those who use 12 or more bots will get -20 voting power. This would probably set the rewards to 1% vote. Please suggest changes if you found any mistake in my post.

<br /><hr/><em>Open Source Contribution posted via <a href="https://utopian.io/utopian-io/@littleboy/suggestions-to-change-bot-algorithm">Utopian.io</a></em><hr/>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 23 others
👎  
properties (23)
post_id17,766,811
authorlittleboy
permlinksuggestions-to-change-bot-algorithm
categoryutopian-io
json_metadata"{"type": "ideas", "repository": {"compare_url": "https://api.github.com/repos/utopian-io/api.utopian.io/compare/{base}...{head}", "events_url": "https://api.github.com/repos/utopian-io/api.utopian.io/events", "forks": 11, "merges_url": "https://api.github.com/repos/utopian-io/api.utopian.io/merges", "issues_url": "https://api.github.com/repos/utopian-io/api.utopian.io/issues{/number}", "contents_url": "https://api.github.com/repos/utopian-io/api.utopian.io/contents/{+path}", "fork": false, "git_url": "git://github.com/utopian-io/api.utopian.io.git", "assignees_url": "https://api.github.com/repos/utopian-io/api.utopian.io/assignees{/user}", "owner": {"login": "utopian-io", "type": "User", "following_url": "https://api.github.com/users/utopian-io/following{/other_user}", "received_events_url": "https://api.github.com/users/utopian-io/received_events", "subscriptions_url": "https://api.github.com/users/utopian-io/subscriptions", "repos_url": "https://api.github.com/users/utopian-io/repos", "gravatar_id": "", "organizations_url": "https://api.github.com/users/utopian-io/orgs", "id": 18612062, "avatar_url": "https://avatars2.githubusercontent.com/u/18612062?v=4", "site_admin": false, "followers_url": "https://api.github.com/users/utopian-io/followers", "gists_url": "https://api.github.com/users/utopian-io/gists{/gist_id}", "html_url": "https://github.com/utopian-io", "events_url": "https://api.github.com/users/utopian-io/events{/privacy}", "url": "https://api.github.com/users/utopian-io", "starred_url": "https://api.github.com/users/utopian-io/starred{/owner}{/repo}"}, "size": 612, "issue_events_url": "https://api.github.com/repos/utopian-io/api.utopian.io/issues/events{/number}", "git_refs_url": "https://api.github.com/repos/utopian-io/api.utopian.io/git/refs{/sha}", "blobs_url": "https://api.github.com/repos/utopian-io/api.utopian.io/git/blobs{/sha}", "pushed_at": "2017-11-15T10:19:39Z", "watchers_count": 10, "stargazers_url": "https://api.github.com/repos/utopian-io/api.utopian.io/stargazers", "teams_url": "https://api.github.com/repos/utopian-io/api.utopian.io/teams", "comments_url": "https://api.github.com/repos/utopian-io/api.utopian.io/comments{/number}", "archived": false, "svn_url": "https://github.com/utopian-io/api.utopian.io", "id": 106805299, "subscribers_url": "https://api.github.com/repos/utopian-io/api.utopian.io/subscribers", "watchers": 10, "ssh_url": "git@github.com:utopian-io/api.utopian.io.git", "name": "api.utopian.io", "mirror_url": null, "statuses_url": "https://api.github.com/repos/utopian-io/api.utopian.io/statuses/{sha}", "has_projects": true, "milestones_url": "https://api.github.com/repos/utopian-io/api.utopian.io/milestones{/number}", "description": "Node API for Utopian.io", "has_downloads": true, "keys_url": "https://api.github.com/repos/utopian-io/api.utopian.io/keys{/key_id}", "url": "https://api.github.com/repos/utopian-io/api.utopian.io", "html_url": "https://github.com/utopian-io/api.utopian.io", "commits_url": "https://api.github.com/repos/utopian-io/api.utopian.io/commits{/sha}", "open_issues_count": 4, "stargazers_count": 10, "branches_url": "https://api.github.com/repos/utopian-io/api.utopian.io/branches{/branch}", "score": 22.60183, "forks_url": "https://api.github.com/repos/utopian-io/api.utopian.io/forks", "deployments_url": "https://api.github.com/repos/utopian-io/api.utopian.io/deployments", "language": "JavaScript", "homepage": null, "trees_url": "https://api.github.com/repos/utopian-io/api.utopian.io/git/trees{/sha}", "has_issues": true, "collaborators_url": "https://api.github.com/repos/utopian-io/api.utopian.io/collaborators{/collaborator}", "git_commits_url": "https://api.github.com/repos/utopian-io/api.utopian.io/git/commits{/sha}", "open_issues": 4, "private": false, "git_tags_url": "https://api.github.com/repos/utopian-io/api.utopian.io/git/tags{/sha}", "pulls_url": "https://api.github.com/repos/utopian-io/api.utopian.io/pulls{/number}", "releases_url": "https://api.github.com/repos/utopian-io/api.utopian.io/releases{/id}", "notifications_url": "https://api.github.com/repos/utopian-io/api.utopian.io/notifications{?since,all,participating}", "contributors_url": "https://api.github.com/repos/utopian-io/api.utopian.io/contributors", "full_name": "utopian-io/api.utopian.io", "updated_at": "2017-11-12T23:57:05Z", "forks_count": 11, "downloads_url": "https://api.github.com/repos/utopian-io/api.utopian.io/downloads", "hooks_url": "https://api.github.com/repos/utopian-io/api.utopian.io/hooks", "languages_url": "https://api.github.com/repos/utopian-io/api.utopian.io/languages", "default_branch": "master", "labels_url": "https://api.github.com/repos/utopian-io/api.utopian.io/labels{/name}", "issue_comment_url": "https://api.github.com/repos/utopian-io/api.utopian.io/issues/comments{/number}", "has_pages": false, "tags_url": "https://api.github.com/repos/utopian-io/api.utopian.io/tags", "clone_url": "https://github.com/utopian-io/api.utopian.io.git", "archive_url": "https://api.github.com/repos/utopian-io/api.utopian.io/{archive_format}{/ref}", "has_wiki": true, "created_at": "2017-10-13T09:32:24Z", "subscription_url": "https://api.github.com/repos/utopian-io/api.utopian.io/subscription"}, "pullRequests": [], "format": "markdown", "image": ["https://res.cloudinary.com/hpiynhbhq/image/upload/v1510753194/utzopzmi1bor4o9tsrua.png"], "links": ["https://github.com/utopian-io/api.utopian.io/pull/25", "https://utopian.io/utopian-io/@littleboy/suggestions-to-change-bot-algorithm"], "app": "steemit/0.1", "platform": "github", "tags": ["utopian-io", "utopian-bot", "bots", "javascript", "development"], "community": "utopian"}"
created2017-11-15 13:52:57
last_update2017-11-15 16:14:27
depth0
children7
net_rshares13,799,799,404,831
last_payout2017-11-22 13:52:57
cashout_time1969-12-31 23:59:59
total_payout_value17.564 SBD
curator_payout_value6.870 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,215
author_reputation198,507,892,119,261
root_title"Suggestions to change bot algorithm"
beneficiaries
0.
accountarie.steem
weight60
1.
accountcnts
weight6
2.
accountespoem
weight114
3.
accountfreedom
weight658
4.
accountlafona-miner
weight13
5.
accountmisterdelegation
weight549
6.
accountned
weight544
7.
accountwackou
weight53
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars0
author_curate_reward""
vote details (88)
@joeyarnoldvn ·
This may be better. I'm no expert when it comes to code, but this could be better than some of the alternatives. I am not using bots, but I probably would. Some may feel that bots are maybe too unfair. It is kind of like rich people finding tax loop-holes and ways to evade taxes and stuff both legally and illegally. Some people do not like rich people. So, this is all about the spirit of making things fair. I would focus on making more bots that rewards better content as opposed to trying to counter unfair bots, perhaps. Good work with the code suggestions.
👍  
properties (23)
post_id17,767,419
authorjoeyarnoldvn
permlinkre-littleboy-suggestions-to-change-bot-algorithm-20171115t140029735z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2017-11-15 14:00:30
last_update2017-11-15 14:00:30
depth1
children1
net_rshares6,454,437,922
last_payout2017-11-22 14:00:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length563
author_reputation11,277,743,744,431
root_title"Suggestions to change bot algorithm"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@littleboy ·
Thank you for the insightful comment. 0.25 SBD tip on the way.
👍  
properties (23)
post_id17,781,831
authorlittleboy
permlinkre-joeyarnoldvn-re-littleboy-suggestions-to-change-bot-algorithm-20171115t164805777z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2017-11-15 16:48:06
last_update2017-11-15 16:48:06
depth2
children0
net_rshares299,946,457
last_payout2017-11-22 16:48:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length62
author_reputation198,507,892,119,261
root_title"Suggestions to change bot algorithm"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@jefpatat ·
$0.02
Thank you for the contribution. It has been approved.

You can contact us on [Discord][discord].
[[utopian-moderator]][moderators]

[moderators]:  https://utopian.io/moderators
[discord]:  https://discord.gg/4NYhZU6
👍  
properties (23)
post_id17,767,650
authorjefpatat
permlinkre-littleboy-suggestions-to-change-bot-algorithm-20171115t140315048z
categoryutopian-io
json_metadata"{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}"
created2017-11-15 14:03:12
last_update2017-11-15 14:03:12
depth1
children0
net_rshares10,757,453,022
last_payout2017-11-22 14:03:12
cashout_time1969-12-31 23:59:59
total_payout_value0.016 SBD
curator_payout_value0.005 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length215
author_reputation26,573,235,992,720
root_title"Suggestions to change bot algorithm"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@amrumk ·
Thanks for your contribution and support @littleboy
👍  
properties (23)
post_id17,783,518
authoramrumk
permlinkre-littleboy-suggestions-to-change-bot-algorithm-1510765460182z
categoryutopian-io
json_metadata"{"app": "steemfollower/0.01", "tags": ["utopian-io"]}"
created2017-11-15 17:08:42
last_update2017-11-15 17:08:42
depth1
children1
net_rshares3,716,211,044
last_payout2017-11-22 17:08:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length51
author_reputation12,271,252,398,511
root_title"Suggestions to change bot algorithm"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@littleboy ·
If you want to receive higher upvotes from me, make more high quality comments.
properties (22)
post_id17,784,469
authorlittleboy
permlinkre-amrumk-re-littleboy-suggestions-to-change-bot-algorithm-1510765460182z-20171115t171938086z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2017-11-15 17:19:39
last_update2017-11-15 17:19:39
depth2
children0
net_rshares0
last_payout2017-11-22 17:19:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length79
author_reputation198,507,892,119,261
root_title"Suggestions to change bot algorithm"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@robbinsmith · (edited)
Thank you so much for the support and this invaluable contribution. I love it.
👍  
properties (23)
post_id17,789,654
authorrobbinsmith
permlinkre-littleboy-suggestions-to-change-bot-algorithm-20171115t182844448z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2017-11-15 18:28:51
last_update2017-11-15 18:29:03
depth1
children0
net_rshares4,889,751,373
last_payout2017-11-22 18:28:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length78
author_reputation241,113,885,807
root_title"Suggestions to change bot algorithm"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@utopian-io ·
### Hey @littleboy I am @utopian-io. I have just super-voted you at 9% Power!
#### Suggestions https://utopian.io/rules
- Your contribution is less informative than others in this category.
- Utopian has detected 1 bot votes. I am the only bot you should love!!
#### Achievements
- Votes on this contribution are going well. Nice!
- You are having more votes than average for this category. Nice!
- You have less than 500 followers. Just gave you a gift ;)
- Seems like you contribute quite often. AMAZING!
- You have a good amount of votes on your contributions. Good job!
- In total you have more votes than average for this category. Bravo!
- You have just unlocked 6 achievements. Yeah!
**Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
properties (22)
post_id17,800,302
authorutopian-io
permlinkre-littleboy-suggestions-to-change-bot-algorithm-20171115t210118588z
categoryutopian-io
json_metadata"{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}"
created2017-11-15 21:01:21
last_update2017-11-15 21:01:21
depth1
children0
net_rshares0
last_payout2017-11-22 21:01:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length842
author_reputation152,913,012,544,965
root_title"Suggestions to change bot algorithm"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000