Improved commenting, and voting awareness and filtering

in #utopian-io6 years ago (edited)

Pull Request (link)

Bug Fixes

A huge issue this week with the nowplaying bot was there were many people tagging #nowplaying but not actually participating in the nowplaying community. The first fix made was changing the filtering from post.tags.includes(communityName) to post.category === communityName.

The results were better, but now there are some community members posting under music or another category and using nowplaying as a tag. The solution here is to begin approving authors. The post table in the database now includes a is_approved flag. Any author who has been approved in the past is automatically approved.There is a blacklist that will filter out people from unrelated topics or people abusing the bot.

This still leaves the new members who have legitimate posts and spammers using this tag. Anybody who follows a certain criteria can be automatically approved. For example: the #nowplaying bot posts weekly to start off the week. Any user who likes that post can be automatically approved. This leaves all community members and filters out unrelated content.

New Features

Commenting and Voting are now separate functions than the scrape function, and they are more aware. The did_comment and did_vote boolean columns in the database are used to keep track of which posts have been voted/commented on and which haven't. These can be run independently now, so you can have the bot comment on all posts (including spam) and only upvote approved content.

Now Playing

image.png

Check out the #nowplaying community and bot in action here



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

@walnut1, Contribution to open source project, I like you and upvote.

Thank you friend!

Thank you for the contribution. It has been approved.

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

Hey @walnut1 I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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

@walnut1, Thanks for your contribution you just fix an error that was not so visible to most users

good you post

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.029
BTC 67831.26
ETH 3460.55
USDT 1.00
SBD 2.72