Please share curation trail names
In my last post, I explained about, How I am rewarding - authors, curators, community moderators.
With this post, I want to get all the curation accounts from the community members. Once I get those, I'll update my curation trail to follow those accounts. I'll also ask other members to follow those trails.
These are the accounts which I'm already following on hive.vote.
- @indiaunited
- @plantpoweronhive
- @amazingdrinks
- @foodiesunite
- @ladiesofhive
- @melinda010100
- @theterminal
- @hive-106316
- @visualshots
- @heyhaveyamet
- @hivecuba
- @cleanplanet
- @diyhub
- @hive-15966
- @hive-173296
- @mundo.autismo
CC section
- I don't want to spam. But at the same time, I also want following members to keep informed about it.
- Here are the members to whom I would like to notify - @hive-15966, @hive-14396, @hive-108539, @hive-189157, @hive-192096, @hive-134572, @hive-155221, @hive-106316, @hive-124452, @hive-119670, @hive-179017, @hive-101265, @hive-180569, @hive-120586, @hive-197685, @hive-173296, @hive-125730, @hive-132248, @hive-167922, @hive-13323, @hive-147010, @hive-179927, @hive-181335, @hive-151961, @hive-110011, @hive-150210, @hive-127911, @hive-189641, @stresskiller, @flaxz, @alive.chat, @mondoshawan, @tengolotodo, @thekittygirl, @melinda010100, @nelinoeva, @jaydr, @brittandjosie, @bhattg, @takeru255, @sirenahippie
- Please share curation account name. I'll follow using Hive.vote.
- If you've already shared & you are listed on the list above, please ignore.
Community mods & non programmers can skip following section if they want to.
How do I distribute rewards?
- In last post, @manclar asked me to share code for distributing rewards.
What technology I use?
I use nodejs with pm2.
Step 1. Get notification & filter by mention
.
- First I read all the notifications
- From notifications, I apply the
mention
filter - I filter the
mention
notifications by approvedAuthors. - E.g. of approved authors - @flaxz, @bhattg etc.
client
is a dhive client.account
is a constantsagarkothari88
value.
async function getNotifications(client, account, approvedAuthors) {
try {
let data = [];
while (data.length < 200) {
let queryObject = {
account: account,
limit: 100,
};
if (data.length > 0) {
queryObject["last_id"] = data[data.length - 1].id;
}
const tempData = await client.call("bridge", "account_notifications", queryObject);
data = [...data, ...tempData];
}
return data.filter((notification) => {
return (
notification.type === "mention" &&
approvedAuthors.some((author) => notification.msg.includes(author))
);
});
} catch (e) {
return false;
}
}
Step 2. Transfer Hive Power
@client
is a dhive client@key
is active-key@receiver
is the account-name who is going to get hive-power@hp
states the value, in most cases, it will be 0.05 or 0.1@subject
is the subject for the hive-power-transfer@submitter
is the name of the curator or a community moderator.@account
is the name of the account who is going to transfer hive-power.
async function hpTransfer(
client,
key,
receiver,
hp,
subject,
submitter,
account
) {
const op = [
[
"transfer_to_vesting",
{
from: account,
to: receiver,
amount: `${hp} HIVE`,
},
],
];
try {
const result = await client.broadcast.sendOperations(op, key);
return `## 💐 🎁 Gift 🎁 💐
- 🎁 I have [Sent ${hp} Hive Power](https://hiveblocks.com/tx/${result.id})
- 🤝 It is sent to you (@${receiver})
- 👉 @${submitter} suggested me to gift you for your post / comment ${subject}
`;
} catch (e) {
console.error(e);
throw e;
}
}
Support me
- Do you like the work I do?
- Do you want me to keep going?
- Please Reblog
- Please help me connect with more communities
- Please vote me as Hive Witness
Please 🙏 | Support Me |
---|---|
Vote me as Hive Witness | Donate Hive Or HBD |