• 3 posts
  • 10 comments
Joined 3 years ago
Cake day: August 4th, 2023

I’m writing a bot. I just created a Backrooms community (!backrooms@lemmy.world) and I want a bot to post links (as the user @backroomsbot@lemmy.world) to Backrooms-related content from the Backrooms wikis on a regular basis. (My current thought is daily, but I could be persuaded otherwise.) I might also add other features in the future like checking Kane Pixels’ YouTube channel and automatically posting links to his new videos, but that’s probably a later (if ever) kind of feature. I don’t have any specific plans to add any kind of automod or mod tools capabilities at this point. (In fact, I don’t have plans to make the bot account a mod in the community.) But I guess there might be a future when that happens.

I’ve read the Bot Usage and Guidelines section of the TOS and I’ve read this thread. It’s all straightforward and I’m following all the rules and guidelines. My plan is not to put it on a cron for a while. I’ll just run it manually every day for a while (until it proves itself) so that I can inspect what it does and if it misbehaves (not that I expect it to, but out of an abundance of caution) fix issues quickly to not impact users on Lemmy. I have also tested it on a locally-running Lemmy instance to ferret out any bugs or bad behaviors. It doesn’t accept any commands from other users (well, except command-line arguments from me when I run it on my computer from a Bash prompt, but it doesn’t take any actions in response to being @'d or DMed or anything). It DMs my user account when it encounters an error. I’ve been a professional software engineer for decades, so I like to think I know a little bit about what I’m doing. (Not that that means I’m incapable of producing bugs, but yeah.) And I cannot express in strong enough terms how cold and dead I will be in the ground before I put even a single solitary god-damned line of GenAI-generated code in any coding project I write. This is not some vibe-coded monstrosity. I wrought every single line using my brain, Go documentation, and Vim as God intended.

Oh, and I’ll publish my bot’s code on Codeberg or something under AGPL one of these days once it has demonstrated real-world success at doing what it does for a while.

All that to justify my use of “friendly” in the title of this post. Heh.

Anyway! To my question. My bot is being blocked by Cloudflare’s CAPTCHA verification. You know, the thing specifically intended to repel bot traffic. Bots do seem to be explicitly allowed by .world’s rules, so long as they follow all the rules. And I’ve definitely seen other bot accounts successfully posting. So my guess is that there’s some good way to get my bot posting properly without being intercepted by Cloudflare. All that said, my searching hasn’t revealed anything specific about how exactly that could be made to work. I’m hoping someone here can give me a lead or two, or just tell me why I’m wrong-headed about some basic assumption I’m making.

Thanks in advance!

Update: I got it working! Mostly the problem was that I wasn’t caching my JWT token. Thanks again to MrKaplan.

  • My experience is that the performance of videos depends a lot on how much of the screen the video takes up. More so than on the quality setting (480p, 720p, 1080p). Usually when I want to watch a video, I limit it to about 1/4 of the area of my 1920x1080 screen. But YouTube is pretty watchable. I don’t think even when you select something like 720p@60fps or whatever that it ever actually gets up to 60fps, and sometimes the parts that don’t compress as well drop a few frames (strobing in particular does that), but it’s really not bad if you’re ok with not doing full-screen.

    Also, it depends where the video is hosted. If the JS is really light on the page, it’s way more performant. If the JS is really heavy, I sometimes have to wait tens of seconds for it to render the first frame.

    But also, this Raspberry Pi is mostly my Lemmy box. Not my main box.

  • It’s like a koan. I keep expecting “and then he was enlightened” at the end.

    You’ve figured it out. Take as much advantage of your employer as you can. Try not to make life harder on your coworkers. People matter. Heartless corporations don’t. Eek out as much fulfillment as you can within that context. There’s nothing better. At least not within capitalism.

  • Applying liberally to the orifice.

    Not that orifice. Get your mind out of the gutter.

    I meant a camera lens. uwu

    To hide the wheels on the rig of your sci-fi hovering speeder, of course.

    In that movie where that guy kisses his sister. 👉👈