Start daily rank from User Activity Rating Club.
Hi all!
So, we have the first applicants for User Activity Rating from the User Activity Rating Club.
Each of them receives a welcome bonus of 2 STEEM from the User Activity Rating Club.
Thank you for joining the rankings. I invite you to join: https://steemit.com/hive-153018/@alexmove.witness/i-invity-you-to-join-user-activity-rating-club
Instructions for setting User Activity Rating..
git clone https://github.com/Alexmovelove/User-Activity-Rank.git
Config
nanoconfig.js
add:
exports.num_day = 0;
exports.wifkey = "xxxxxx";
exports.account = "xxxxxxxx";
var d = new Date(); //Today!
d.setDate(d.getDate()-exports.num_day); // Yesterday!
d = d.toJSON().split("T")[0];
d = d.replace(/-/gi, '');
exports.bd_name = "xxxxx";
exports.user_mysql = "xxxx";
exports.password_mysql = "xxxx";
Mysql
CREATE DATABASE club;
CREATE USER 'remote6'@'xxxx' IDENTIFIED BY 'xxxx';
grant all privileges on . to 'remote6'@'xxxx' with grant option;
FLUSH PRIVILEGES;
Install
node create.js
node create_spisok.js
node addpost.js
node create_day.js
nodesortcom.js
nodesortcom.js
node sortpost.js
node sortpost.js
nodesum.js
nodelistcom.js
node listpost.js
node fulllist.js
Crontab
/root/rank/club/User-Activity-Rank/addcom.js
4 5 * * * node /root/rank/club/User-Activity-Rank/addpost.js
5 5 * * * node /root/rank/club/User-Activity-Rank/create_day.js
6 5 * * * node /root/rank/club/User-Activity-Rank/sortcom.js
7 5 * * * node /root/rank/club/User-Activity-Rank/sortcom.js
8 5 * * * node /root/rank/club/User-Activity-Rank/sortpost.js
9 5 * * * node /root/rank/club/User-Activity-Rank/sortpost.js
10 5 * * * node /root/rank/club/User-Activity-Rank/sum.js
11 5 * * * node /root/rank/club/User-Activity-Rank/listcom.js
12 5 * * * node /root/rank/club/User-Activity-Rank/listpost.js
13 5 * * * node /root/rank/club/User-Activity-Rank/fulllist.js
14 5 * * * node /root/rank/club/User-Activity-Rank/fulllistpost.js
Thank you!
I invite you to join: https://steemit.com/hive-153018/@alexmove.witness/i-invity-you-to-join-user-activity-rating-club
Thanks a lot
Thank you too.
Thanks a lot.