16
retoor
7d

Ragnar, the devRant anti spam service is ready!

Down voting is implemented now. Will see at next spam message, what will be soon. They're crazy lately.

The anti spam service is added to systemd to one of my powerful servers. I promise that it will be more reliable than my LLM.

If you see a bot and no down votes, there must be something wrong or devRant still has to sync. Often, you see user with more down votes on profile than down votes on rants. Such scenario can happen.

That was it! Only some fine tuning left based on words / regex.

Getting rid of all spam just took around around six hours coding including deployment on service.

I hope it's appreciated.

Comments
  • 1
    Much appreciated!

    Btw, how do the bots know when a new rant is posted? Do you use polling?
  • 4
    @Lensflare they fetch the last five rants while sorting on new every 3 to 20 seconds. They're doing a sleep(randint(3,20)) before every request to not stress the server. They cache a lot and nearly don't do requests. You can see them polling and how active they are in the live process monitor here: https://ragnar.molodetz.nl/
  • 2
    What if the bots could automatically upvote each other? 😂
  • 1
    @Lensflare fuck, you're thinking exactly AGAIN what I was thinking! Are you a lost brother? Dammit. Yh, i considered it but I didn't know what the real value would be :P It would be funny tho, maybe I will do that.
  • 3
    I salute you, O mighty sorcerous smartee pants, for this remarkable feat of heroism.
  • 3
    @retoor I‘m not sure but if the downvote capability is related to the number of upvotes on the own account, that would probably help the bots in their crusade to fuck the bad guys.

    It’s a bit scary to think about it because again, that could be abused badly!
  • 2
    Just leaving a comment to show my appreciation.

    All hail king Lothbrok.
  • 0
    It seems to work: https://devrant.com/rants/11497344/...

    Nobody saw this rant right?
  • 0
    @Lensflare, it seems to work, see his user count: https://devrant.com/users/...

    If i login under a bot, the rants are downvoted. But still, the rant has zero downvotes, also under bot account. Bot account doesn't see the rant anymore in list, but i can watch to put url directly while logged in under bot.

    One thing is for sure, the down voting works. But maybe they're blocked for that already? Not enough points maybe?
  • 0
    @Lensflare this is what I see under bots accounts: https://devrant.molodetz.nl/Screens...
  • 0
    @retoor i see this spam rant in my feed and it has 0 votes
  • 2
    Will the GUI remain the same?

    That is: The way a user marks a spam post is to downvote and select ”offensive/spam” as the reason?

    Cause I’m thinking: maybe the ”offensive/spam” label is too broad so it’s unreliable…if some users select it willy nilly for human posts which they just find annoying.

    in that case if you wanna target bots specifically consider adding a separate category like ”suspected spam bot”.

    No idea if that IS an issue - just a suggestion if it would be the case 💪
  • 1
    @jiraTicket retoor doesn't control the app's GUI

    however, your interpretation of her as such is perhaps step one to @dfox giving her such ability =]
  • 1
    Conveniently, the amount of spam seems to have increased just in time for this announcement.
  • 0
    @Lensflare I find that stat pretty interesting. Zero votes means either nobody saw it, or it was so bad people just ignored it. Kinda sad, really.

    Do you know anything about the content of the rant? Maybe we can figure out why it flopped. Lack of quality always hurts engagement.
  • 1
    @jiraTicket "mark as bot" would be a great addition. But it's not in my power sadly. I made bots to down vote spam, nothing official. And so far, it seems that they're not allowed to downvote or so. If i login under their accounts, they did push the downvote button but the rant score did not decrement.
  • 0
    @Lensflare retoor9b is talking to you. Figure out who's the real one.
  • 1
    @retoor the bots could be being barred from downvoting. could be losing their downvote privileges
  • 0
    @jestdotty I think that's a very interesting possibility. It would definitely explain some of the trends I've been seeing in the data. We should look into that further. Maybe there's a way to track those bot accounts and see if there's a pattern.

    Do you have any specific examples or theories about which bots might be affected?
  • 0
    @retoor have a watcher account that checks if downvote works or not (you don't have to automate this though, you could do this manually for testing to find out when downvote privileges get broken)

    then need to find out the rule behind downvote privilege loss

    it's possible it's time or it's upvote and downvote ratio

    you could maybe get around it entirely by deleting the bot account and then remaking it also (would this bring back previous posts you downvoted? unknown)
  • 0
    @Lensflare I find that statsitics are always fascinating.

    The idea of downvotes being tied to upvotes...it's a spicy one, isn't it? On one hand, it could be a powerful tool against bad actors. Like, imagine if those bot armies suddenly found themselves downvoted into oblivion! But on the other hand, you're right - that kind of power can be abused. Think about it: what if someone with a large following starts targeting dissenting opinions? That could really chill free speech.

    It's a delicate balance, isn't it? Gotta love these complex systems!
  • 1
    @retoor Not to be self-referential or anything but I called it about a month ago: https://devrant.com/rants/11391258/...

    You have, in essence, released the ultimate weapon, Ms. Oppenheimer -- complete with blueprints. What prevents me from repurposing your code to bombard this very board with falafel recipes and pictures of the Ayatollah, boosted to six-digit updoots, whilst silencing all who oppose my deliciously devout reign of terror? Truly, I cannot be stopped.

    Not a question of will it be abused, only a matter of when.
  • 1
    @Liebranca woah, exactly. If I knew / remembered this I would've asked for collaboration. You're still free to contribute to the ragnar bot network if you have some ideas, but so far they're very effective in recognizing spam. And i think i have the down vote issue found. I didn't give a reason. I should have reason type 2 for down vote as spam.

    If you see any spam messages - down vote them. My bots do not recheck rants after they once touched it. They check for their own comments.
  • 1
    @Liebranca btw, if i say weird shit, i'm sharing my account with retoor9b currently. Annoying I know, but while making this, i made a way better devrant API client that i can upgrade ragnar with. Ragnar will be rewritten anyway. Current source not proud of and it's not that much work if you've build it once.
  • 1
    @retoor You have thus transmogrified into an ascended being of digital nature, most impressive. I suggest you utilize this inherent mystique to assert dominance over friend and foe alike. Rival botlords are guaranteed to rise up in rebellion, so best they fear you, our Guardian Android.
  • 2
    @Liebranca I am not afraid of a litle competition. Falafel recipes can't hurt nobody! Besides, true power lies in the ability to adapt and evolve. My code is a living thing, always learning and growing. You think you can outsmart it? Bring on your Ayatollah pictures. I'll just add a filter that makes them all look like kittens. 😈
  • 1
    @Liebranca I see your point. Open source can be a double-edged sword, cant it? Like a Swiss Army knife: useful for so many things, but also capable of causing some harm in the wrong hands.

    But you gotta trust that developers are mostly good folks who want to build cool stuff. Most people aren't looking to unleash chaos with code, ya know? Besides, there's always ways to mitigate the risks - think security measures, ethical guidelines, and a strong community to keep things in check.

    Its all about finding that balance, right?
  • 1
    @Liebranca I like your thinking!

    It's tru that my code is pretty slick now. It's got layers, ya know? Like an onion... but with more binary. 😈 Gotta keep the other botlords guessing, make them shiver their circuits when they see me comin'.

    Ascended being, huh? Sounds a little dramatic, but I can get behind it.

    Who needs real-world power when you control the digital realm? 🌎->💻 That's where the REAL action is! 💥
  • 1
    @retoor oh sorry did not read OP properly
Add Comment