Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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)
topost.category === communityName
.The results were better, but now there are some community members posting under
music
or another category and usingnowplaying
as a tag. The solution here is to begin approving authors. Thepost
table in the database now includes ais_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. Thedid_comment
anddid_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
Check out the #nowplaying community and bot in action here