 I can see there are currently some other PR waiting to go in to the master branch on *utopian-bots.js* and there are some conflicts. Maintaining a long list in the middle of a JS file which contains lots of logics is never a good idea. Thus, I have created a PR to move the list of bots into a separate file *list-of-bots.js* The PR is at: https://github.com/utopian-io/api.utopian.io/pull/34/files Future contributions of adding/removing new bots are obviously dealing with this file only and this will reduce the number of conflicts. And you can use use the following two lines of code to retrieve the list of bots, which is quite self-explanatory: ``` // get a list of bots var list_of_bots = require('./list-of-bots.js'); var bots = list_of_bots.bots(); ``` This is the code refactoring, which is quite important as I believe. This PR serves to *decouple* the changes of bots with the main logics of the utopian bot. Also, some other JS files can also read the bot list later without problems. <br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@justyy/list-of-bots-move-list-of-bots-into-a-separate-file">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>
author | justyy | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
permlink | list-of-bots-move-list-of-bots-into-a-separate-file | ||||||||||||||||||||||||||||||||||||||||||||||||
category | utopian-io | ||||||||||||||||||||||||||||||||||||||||||||||||
json_metadata | "{"community":"utopian","app":"steemit/0.1","format":"markdown","repository":{"id":104593314,"name":"utopian.io","full_name":"utopian-io/utopian.io","owner":{"login":"utopian-io","id":18612062,"avatar_url":"https://avatars2.githubusercontent.com/u/18612062?v=4","gravatar_id":"","url":"https://api.github.com/users/utopian-io","html_url":"https://github.com/utopian-io","followers_url":"https://api.github.com/users/utopian-io/followers","following_url":"https://api.github.com/users/utopian-io/following{/other_user}","gists_url":"https://api.github.com/users/utopian-io/gists{/gist_id}","starred_url":"https://api.github.com/users/utopian-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utopian-io/subscriptions","organizations_url":"https://api.github.com/users/utopian-io/orgs","repos_url":"https://api.github.com/users/utopian-io/repos","events_url":"https://api.github.com/users/utopian-io/events{/privacy}","received_events_url":"https://api.github.com/users/utopian-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/utopian-io/utopian.io","description":"Utopian.io React Frontend","fork":false,"url":"https://api.github.com/repos/utopian-io/utopian.io","forks_url":"https://api.github.com/repos/utopian-io/utopian.io/forks","keys_url":"https://api.github.com/repos/utopian-io/utopian.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/utopian-io/utopian.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/utopian-io/utopian.io/teams","hooks_url":"https://api.github.com/repos/utopian-io/utopian.io/hooks","issue_events_url":"https://api.github.com/repos/utopian-io/utopian.io/issues/events{/number}","events_url":"https://api.github.com/repos/utopian-io/utopian.io/events","assignees_url":"https://api.github.com/repos/utopian-io/utopian.io/assignees{/user}","branches_url":"https://api.github.com/repos/utopian-io/utopian.io/branches{/branch}","tags_url":"https://api.github.com/repos/utopian-io/utopian.io/tags","blobs_url":"https://api.github.com/repos/utopian-io/utopian.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/utopian-io/utopian.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/utopian-io/utopian.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/utopian-io/utopian.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/utopian-io/utopian.io/statuses/{sha}","languages_url":"https://api.github.com/repos/utopian-io/utopian.io/languages","stargazers_url":"https://api.github.com/repos/utopian-io/utopian.io/stargazers","contributors_url":"https://api.github.com/repos/utopian-io/utopian.io/contributors","subscribers_url":"https://api.github.com/repos/utopian-io/utopian.io/subscribers","subscription_url":"https://api.github.com/repos/utopian-io/utopian.io/subscription","commits_url":"https://api.github.com/repos/utopian-io/utopian.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/utopian-io/utopian.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/utopian-io/utopian.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/utopian-io/utopian.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/utopian-io/utopian.io/contents/{+path}","compare_url":"https://api.github.com/repos/utopian-io/utopian.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/utopian-io/utopian.io/merges","archive_url":"https://api.github.com/repos/utopian-io/utopian.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/utopian-io/utopian.io/downloads","issues_url":"https://api.github.com/repos/utopian-io/utopian.io/issues{/number}","pulls_url":"https://api.github.com/repos/utopian-io/utopian.io/pulls{/number}","milestones_url":"https://api.github.com/repos/utopian-io/utopian.io/milestones{/number}","notifications_url":"https://api.github.com/repos/utopian-io/utopian.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/utopian-io/utopian.io/labels{/name}","releases_url":"https://api.github.com/repos/utopian-io/utopian.io/releases{/id}","deployments_url":"https://api.github.com/repos/utopian-io/utopian.io/deployments","created_at":"2017-09-23T19:24:57Z","updated_at":"2017-11-16T08:48:57Z","pushed_at":"2017-11-16T18:36:15Z","git_url":"git://github.com/utopian-io/utopian.io.git","ssh_url":"git@github.com:utopian-io/utopian.io.git","clone_url":"https://github.com/utopian-io/utopian.io.git","svn_url":"https://github.com/utopian-io/utopian.io","homepage":null,"size":59317,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":40,"forks":19,"open_issues":40,"watchers":19,"default_branch":"master","score":32.953587},"pullRequests":[],"platform":"github","type":"development","tags":["utopian-io","code-refactoring","utopian-bots"],"image":["https://utopian.io/img/utopian-logo-120x120.png"],"links":["https://github.com/utopian-io/api.utopian.io/pull/34/files","https://utopian.io/utopian-io/@justyy/list-of-bots-move-list-of-bots-into-a-separate-file"]}" | ||||||||||||||||||||||||||||||||||||||||||||||||
created | 2017-11-17 22:43:18 | ||||||||||||||||||||||||||||||||||||||||||||||||
last_update | 2017-11-17 22:49:45 | ||||||||||||||||||||||||||||||||||||||||||||||||
depth | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
children | 9 | ||||||||||||||||||||||||||||||||||||||||||||||||
last_payout | 2017-11-24 22:43:18 | ||||||||||||||||||||||||||||||||||||||||||||||||
cashout_time | 1969-12-31 23:59:59 | ||||||||||||||||||||||||||||||||||||||||||||||||
total_payout_value | 18.844 HBD | ||||||||||||||||||||||||||||||||||||||||||||||||
curator_payout_value | 6.588 HBD | ||||||||||||||||||||||||||||||||||||||||||||||||
pending_payout_value | 0.000 HBD | ||||||||||||||||||||||||||||||||||||||||||||||||
promoted | 0.000 HBD | ||||||||||||||||||||||||||||||||||||||||||||||||
body_length | 1,252 | ||||||||||||||||||||||||||||||||||||||||||||||||
author_reputation | 280,616,224,641,976 | ||||||||||||||||||||||||||||||||||||||||||||||||
root_title | "list of bots: move list of bots into a separate file" | ||||||||||||||||||||||||||||||||||||||||||||||||
beneficiaries |
| ||||||||||||||||||||||||||||||||||||||||||||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||||||||||||||||||||||||||||||||||||||||||||
percent_hbd | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
post_id | 20,722,542 | ||||||||||||||||||||||||||||||||||||||||||||||||
net_rshares | 14,030,293,924,284 | ||||||||||||||||||||||||||||||||||||||||||||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
fundurian | 0 | 38,789,370,662 | 30% | ||
ace108 | 0 | 65,690,876,908 | 5% | ||
tensaix2j | 0 | 3,220,372,388 | 100% | ||
archiles | 0 | 130,046,400 | 100% | ||
alchemage | 0 | 333,492,833 | 2% | ||
ericsim1991 | 0 | 126,496,271 | 100% | ||
ericsim1989 | 0 | 125,636,794 | 100% | ||
justyy | 0 | 549,448,064,974 | 100% | ||
royrodgers | 0 | 571,018,825 | 2% | ||
luneknight | 0 | 1,519,024,473 | 100% | ||
happyukgo | 0 | 1,186,702,684 | 100% | ||
coldhair | 0 | 18,257,051,406 | 7% | ||
hammadakhtar | 0 | 328,278,932 | 10% | ||
sv67216721 | 0 | 2,148,251,575 | 5% | ||
frankintaiwan | 0 | 82,151,670 | 20% | ||
shenchensucc | 0 | 7,202,186,130 | 100% | ||
susanli3769 | 0 | 22,653,162,940 | 100% | ||
misstysea | 0 | 2,367,493,013 | 100% | ||
thinkkniht | 0 | 11,656,284,621 | 100% | ||
themystic | 0 | 15,675,863,723 | 100% | ||
minnowpond1 | 0 | 451,061,652 | 2% | ||
davidzack | 0 | 289,940,918 | 100% | ||
oldman28 | 0 | 20,854,391,766 | 58% | ||
kangnajiang | 0 | 1,422,940,900 | 100% | ||
geass | 0 | 1,173,661,736 | 100% | ||
moonvoid | 0 | 620,673,435 | 100% | ||
runrun | 0 | 230,952,255 | 30% | ||
ericsim | 0 | 319,052,800 | 100% | ||
redtea | 0 | 1,199,645,233 | 100% | ||
yellowbird | 0 | 21,101,972,890 | 100% | ||
xuran | 0 | 6,215,463,584 | 100% | ||
awiwea1974 | 0 | 1,388,709,573 | 100% | ||
superbing | 0 | 6,930,962,671 | 100% | ||
dailyfortune | 0 | 5,013,657,094 | 100% | ||
dailystats | 0 | 4,981,663,703 | 100% | ||
victory622 | 0 | 34,117,512,803 | 35% | ||
zizizhuji | 0 | 11,150,210,869 | 100% | ||
wangwenjing | 0 | 459,904,544 | 30% | ||
heyeshuang | 0 | 863,930,984 | 100% | ||
ivysrono | 0 | 11,324,180,390 | 50% | ||
utopian-io | 0 | 13,155,644,089,737 | 9% | ||
yuner | 0 | 1,608,578,720 | 100% | ||
marshalllife | 0 | 169,643,297 | 100% | ||
kanou | 0 | 111,968,763 | 100% | ||
ms10398 | 0 | 1,137,326,745 | 100% |
very good information Utopian.io -
author | kanou |
---|---|
permlink | re-justyy-list-of-bots-move-list-of-bots-into-a-separate-file-20171117t224503752z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2017-11-17 22:45:12 |
last_update | 2017-11-17 22:45:12 |
depth | 1 |
children | 0 |
last_payout | 2017-11-24 22:45:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 34 |
author_reputation | -900,034,351,514 |
root_title | "list of bots: move list of bots into a separate file" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 20,722,653 |
net_rshares | 0 |
@royrodgers has voted on behalf of @minnowpond. If you would like to recieve upvotes from minnowponds team on all your posts, simply FOLLOW @minnowpond. To receive an upvote send 0.25 SBD to @minnowpond with your posts url as the memo To receive an reSteem send 0.75 SBD to @minnowpond with your posts url as the memo To receive an upvote and a reSteem send 1.00SBD to @minnowpond with your posts url as the memo
author | minnowpond |
---|---|
permlink | re-list-of-bots-move-list-of-bots-into-a-separate-file-20171117t224753 |
category | utopian-io |
json_metadata | "{"app": "pysteem/0.5.4"}" |
created | 2017-11-17 22:47:54 |
last_update | 2017-11-17 22:47:54 |
depth | 1 |
children | 0 |
last_payout | 2017-11-24 22:47:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 463 |
author_reputation | 13,239,048,956,578 |
root_title | "list of bots: move list of bots into a separate file" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 20,722,803 |
net_rshares | 0 |
@minnowpond1 has voted on behalf of @minnowpond. If you would like to recieve upvotes from minnowponds team on all your posts, simply FOLLOW @minnowpond. To receive an upvote send 0.25 SBD to @minnowpond with your posts url as the memo To receive an reSteem send 0.75 SBD to @minnowpond with your posts url as the memo To receive an upvote and a reSteem send 1.00SBD to @minnowpond with your posts url as the memo
author | minnowpond |
---|---|
permlink | re-list-of-bots-move-list-of-bots-into-a-separate-file-20171117t225342 |
category | utopian-io |
json_metadata | "{"app": "pysteem/0.5.4"}" |
created | 2017-11-17 22:53:42 |
last_update | 2017-11-17 22:53:42 |
depth | 1 |
children | 0 |
last_payout | 2017-11-24 22:53:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 464 |
author_reputation | 13,239,048,956,578 |
root_title | "list of bots: move list of bots into a separate file" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 20,723,141 |
net_rshares | 0 |
Thank you for your contribution. _Personal Note_: Great job! This will be very useful in the future. [utopian-moderator]
author | mooncryption |
---|---|
permlink | re-justyy-list-of-bots-move-list-of-bots-into-a-separate-file-20171117t225633686z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2017-11-17 22:56:33 |
last_update | 2017-11-17 22:56:33 |
depth | 1 |
children | 4 |
last_payout | 2017-11-24 22:56:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 122 |
author_reputation | 15,427,543,916,099 |
root_title | "list of bots: move list of bots into a separate file" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 20,723,289 |
net_rshares | 4,983,909,254 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
sportsgeek | 0 | 4,983,909,254 | 57% |
Thank you
author | justyy |
---|---|
permlink | re-mooncryption-re-justyy-list-of-bots-move-list-of-bots-into-a-separate-file-20171118t090203590z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2017-11-18 09:02:06 |
last_update | 2017-11-18 09:02:06 |
depth | 2 |
children | 3 |
last_payout | 2017-11-25 09:02:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 9 |
author_reputation | 280,616,224,641,976 |
root_title | "list of bots: move list of bots into a separate file" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 20,758,601 |
net_rshares | 0 |
Hi, can you change the repository to utopian-io/api.utopian.io? It was approved with this mistake. [[utopian-moderator]][moderators] [moderators]: https://utopian.io/moderators
author | espoem |
---|---|
permlink | re-justyy-re-mooncryption-re-justyy-list-of-bots-move-list-of-bots-into-a-separate-file-20171118t140343872z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2017-11-18 14:03:45 |
last_update | 2017-11-18 14:03:45 |
depth | 3 |
children | 2 |
last_payout | 2017-11-25 14:03:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 179 |
author_reputation | 59,289,149,412,912 |
root_title | "list of bots: move list of bots into a separate file" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 20,779,496 |
net_rshares | 0 |
### Hey @justyy I am @utopian-io. I have just upvoted you at 9% Power! #### Achievements - Seems like you contribute quite often. AMAZING! #### Suggestions - Work on your followers to increase the votes/rewards. My vote is now primarily based on that, humans rule. Good luck! - Wondering why other contributions got more? I introduced a competition factor. My vote is also based on how competitive the category used is. #### Did you know? - I am going to become the first Steem Community-Driven Witness. Follow me to know when! **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**
author | utopian-io |
---|---|
permlink | re-justyy-list-of-bots-move-list-of-bots-into-a-separate-file-20171118t182500542z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2017-11-18 18:25:00 |
last_update | 2017-11-18 18:25:00 |
depth | 1 |
children | 0 |
last_payout | 2017-11-25 18:25:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 679 |
author_reputation | 152,955,367,999,756 |
root_title | "list of bots: move list of bots into a separate file" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 20,802,462 |
net_rshares | 0 |