Community Bot - Whitelist, Membership Notifications, and More!

in #utopian-io6 years ago (edited)

It's been about a month since I first released the Community Bot software (which you can read about here) and I'm really happy to see a number of people using it to help support all sorts of various different communities already!

I've gotten a lot of great feature suggestions since then and I've finally gotten some time to implement them - plus also some much needed bug fixes.

Membership Whitelist

This was definitely the most obvious feature that really should have been implemented right from the start, but nevertheless you can now specify a whitelist for the members who can join and receive upvotes from the bot. You can set this using the following settings:

"whitelist_only": true,
"whitelist_location": "whitelist.txt",

If "whitelist_only" is set to true, then only accounts listed in the whitelist will be allowed to join. The "whitelist_location" property should point to either a file location or URL containing a list of Steem account names of the whitelisted members with one name per line.

If anyone tries to join who is not on the whitelist by sending a STEEM payment, their payment will be refunded with a message indicating that they must be on the whitelist to join. If someone tries to join via delegation who is not on the whitelist, the bot software cannot return that, but it will send a 0.001 STEEM transfer with the same message.

The message can be changed using the "whitelist_only" property in the "transfer_memos" object in the config.json file.

Membership Notification Transfer Memos

In addition to the transfer memo mentioned above if people try to join who are not on the whitelist, when someone successfully joins or updates their membership they can now receive a 0.001 STEEM transfer memo confirming their membership status.

These messages can also be set in the "transfer_memos" object in config.json. There is one for members paying with STEEM which includes the date through which their membership is valid, and a separate one for members paying with an SP delegation:

"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."

Comment and Resteem options for posts upvoted by the bot

You can now set the bot to automatically post a comment and/or resteem any post it upvotes. There are two new settings in the config.json file for this:

"comment_location": "comment.md",
"resteem": true,

The "comment_location" property points to a file containing the comment message text and if "resteem" is set to "true" then the bot will resteem posts it upvotes. Not much more I can say about that!

Flag Signal Accounts and Blacklisted Tags

These are features which were ported over from the Post Promoter voting bot software. You can set them using the following new settings in config.json:

"flag_signal_accounts": ["spaminator", "cheetah", "steemcleaners", "mack-bot"],
"blacklisted_tags": ["nsfw"],

The bot will check if any of the accounts listed in the "flag_signal_accounts" array have flagged/downvoted the post. If they have that indicates that the post is some type of spam or plagiarism and the bot will not upvote it and will move on to the next member in the list.

The bot will also check if the post contains any tags listed in the "blacklisted_tags" array and, if so, it will not upvote the post and move on to the next one by that member.

Whitelisted Tags

Last, but not least, the opposite of the "blacklisted_tags" setting above, there is now also a "whitelisted_tags" setting! This is useful for communities who only want the bot to upvote posts that are using the tag for that community (or whatever other tags they want). You can set the list of whitelisted tags as follows:

"whitelisted_tags": ["your-community-tag"],

If one or more whitelisted tags are specified, then the bot will check each post to make sure it contains at least one of the whitelisted tags before it votes on it. If a post does not contain any whitelisted tags then it will move on to the next post made by that member.

Want to run a bot for your community?

If you would like some help hosting/running/modifying the bot to meet the specific needs of your community, feel free to reach out to me on Discord or Steem.Chat and hopefully we can work something out!

Links to relevant commits:



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

How can we contribute to the code?

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

Hey @helo - thanks for reviewing the post! The code is a relatively simple NodeJS application so if you have any ideas for new features or find any bugs you can implement or fix them and submit a pull request to the repo. Then I can review it and merge it in. Also you can check the issues list in GitHub for the project to see what features were requested, or bugs were reported, by others who are using the software.

Hi @yabapmatt
Do you have any discord channel or steem chat that I can contact you?
I want to ask more information to become a BB on ST.
Thank you in advance!

You can find me on the PALnet discord here: https://discord.gg/9vVv9q9, @Yabapmatt#2259

I could not find you @Yabapmatt#2259 there. Can you send me a ms to angelinafx#0337 ?
Trying to leave you a ms so you can read later whenever you have your free time.
Thank you in advance!

I found you there! Just left you a message!
Thank you so much!

Excellent work @yabapmatt. Very helpful for many communities!! Amazing!! It would be interesting to add different levels, like @qurator does (tiers) :)

Thanks for the update and issue fixes @yabapmatt! As always you're doing amazing work and making Steemit that much better off because of it.

You are definitely one of the best contributing Steem witnesses out there @yabapmatt! Keep up the great work that you do. You have our vote and support.

You got a 30.00% Upvote and Resteem from @ebargains, as well as upvotes from our curation trail followers! Thank you for using the @ebargains UPVOTES and RESTEEMS service.

If you are looking to earn a passive no hassle return on your Steem Power, delegate your SP to @ebargains by clicking on one of the ready to delegate links:
50SP | 100SP | 250SP | 500SP | 1000SP | 5000SP | Custom Amount

You will earn 80% of the voting service's earnings based on your delegated SP's prorated share of the service's SP pool daily! That is up to 38.5% APR! You can also undelegate at anytime.

We are also a very profitable curation trail leader on https://steemauto.com/. Follow @ebargains today and earn more on curation rewards!

Great update @yabapmatt, makes this tool even more valuable! Thank you so much for sharing..my witnesses vote Done for you 😊Screenshot_2018-04-10-09-30-54.png

Another bot and that too for the community...tell us wbat it can do....i know it is gonna be aaesome because the projects you work kn are always cool...

Thank you for your contribution and information. I really like it and it has been approved.

the question is, how do i start it to contribute.

please further instructions? ....

This bot is not upvoting and is listed in steembottracker.com
https://steemit.com/@booster
Read complaints of all the steemians here...https://steemit.com/frontrunner-guild/@booster/earn-curation-rewards-like-a-pro-join-frontrunner
I have transferred $1 to the bot and did not get any upvotes, nor refund.
I think this bot has scammed or kindly please check and refund our money. @yabapmatt
What should I do to get the refund of $1, please tell me.

great work community brother...

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.033
BTC 62891.03
ETH 3103.58
USDT 1.00
SBD 3.89