Apparently, this user likes to keep an air of mystery about themselves.

  • 4 Posts
  • 14 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle



  • Busier weekend than anticipated, but I didn’t want to push it till next one, so here it is, pretty unpolished. https://gitgud.io/chokora/lemmysaucenao

    I imagine the fastest way to throw it onto a server would be to dotnet publish it as a self-contained bin. Could also be put into a container but it has that weird thing where all of the inputs and outputs are files next to the executable still, which would make that annoying anyways.

    The general gist of the way it works seems to be that you can have it as a bot user, and communities can “opt-in” to it by adding the bot user as a moderator on their communities.



  • I got it working (and ran it on my own account against my own posts.) I meant to do it last weekend, but I got caught up in some other open source work. The main issues for me were some dotnet 6.0 compatibility issues (i ran it on Linux): I had to adjust project references, move the saucenao bot code into a subdirectory to avoid .net assembly issues, and i made it so the PersonId of the bot is no longer hardcoded. I’ll make a fork of the original bot and post it somewhere. It’ll run with the stock dotnet command. We can then look into writing something less awful…


  • I agree that I should definitely just write something from scratch, but if we could get this working as a stop-gap solution, it would be useful in the interim before we’re able to develop a nicer and cleaner solution. I’ll take a look at what’s out there. Having to write my own bindings is not too much of a concern as long as the API isn’t batshit insane. (I know ActivityPub stuff tends to use JSON-LD but that’s not too bad.)